mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
Tweak UI for Faderport2/2018
This commit is contained in:
parent
b30cd5f657
commit
cc2324e763
4 changed files with 18 additions and 0 deletions
|
|
@ -757,9 +757,11 @@ FaderPort8::get_state ()
|
||||||
child->add_child_nocopy (boost::shared_ptr<ARDOUR::Port>(_output_port)->get_state());
|
child->add_child_nocopy (boost::shared_ptr<ARDOUR::Port>(_output_port)->get_state());
|
||||||
node.add_child_nocopy (*child);
|
node.add_child_nocopy (*child);
|
||||||
|
|
||||||
|
#ifndef FADERPORT2
|
||||||
node.set_property (X_("clock-mode"), _clock_mode);
|
node.set_property (X_("clock-mode"), _clock_mode);
|
||||||
node.set_property (X_("scribble-mode"), _scribble_mode);
|
node.set_property (X_("scribble-mode"), _scribble_mode);
|
||||||
node.set_property (X_("two-line-text"), _two_line_text);
|
node.set_property (X_("two-line-text"), _two_line_text);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (UserActionMap::const_iterator i = _user_action_map.begin (); i != _user_action_map.end (); ++i) {
|
for (UserActionMap::const_iterator i = _user_action_map.begin (); i != _user_action_map.end (); ++i) {
|
||||||
if (i->second.empty()) {
|
if (i->second.empty()) {
|
||||||
|
|
|
||||||
|
|
@ -213,6 +213,13 @@ FP8Controls::FP8Controls (FP8Base& b)
|
||||||
_user_enum_to_str[ID] = #ID; \
|
_user_enum_to_str[ID] = #ID; \
|
||||||
_user_buttons[ID] = NAME;
|
_user_buttons[ID] = NAME;
|
||||||
|
|
||||||
|
#ifdef FADERPORT2
|
||||||
|
REGISTER_ENUM (BtnF1 , "F1");
|
||||||
|
REGISTER_ENUM (BtnF2 , "F2");
|
||||||
|
REGISTER_ENUM (BtnF3 , "F3");
|
||||||
|
REGISTER_ENUM (BtnF4 , "F4");
|
||||||
|
REGISTER_ENUM (BtnFootswitch, "Footswitch");
|
||||||
|
#else
|
||||||
REGISTER_ENUM (BtnFootswitch, "Footswitch");
|
REGISTER_ENUM (BtnFootswitch, "Footswitch");
|
||||||
REGISTER_ENUM (BtnUser1 , "User 1");
|
REGISTER_ENUM (BtnUser1 , "User 1");
|
||||||
REGISTER_ENUM (BtnUser2 , "User 2");
|
REGISTER_ENUM (BtnUser2 , "User 2");
|
||||||
|
|
@ -225,6 +232,8 @@ FP8Controls::FP8Controls (FP8Base& b)
|
||||||
REGISTER_ENUM (BtnF6 , "F6");
|
REGISTER_ENUM (BtnF6 , "F6");
|
||||||
REGISTER_ENUM (BtnF7 , "F7");
|
REGISTER_ENUM (BtnF7 , "F7");
|
||||||
REGISTER_ENUM (BtnF8 , "F8");
|
REGISTER_ENUM (BtnF8 , "F8");
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef REGISTER_ENUM
|
#undef REGISTER_ENUM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,9 @@ public:
|
||||||
BtnUser2,
|
BtnUser2,
|
||||||
BtnUser3,
|
BtnUser3,
|
||||||
|
|
||||||
|
#ifndef FADERPORT2
|
||||||
BtnFootswitch,
|
BtnFootswitch,
|
||||||
|
#endif
|
||||||
|
|
||||||
// Pan/Param encoder press
|
// Pan/Param encoder press
|
||||||
BtnParam,
|
BtnParam,
|
||||||
|
|
@ -77,6 +79,9 @@ public:
|
||||||
|
|
||||||
BtnF1, BtnF2, BtnF3, BtnF4,
|
BtnF1, BtnF2, BtnF3, BtnF4,
|
||||||
BtnF5, BtnF6, BtnF7, BtnF8,
|
BtnF5, BtnF6, BtnF7, BtnF8,
|
||||||
|
#ifdef FADERPORT2
|
||||||
|
BtnFootswitch,
|
||||||
|
#endif
|
||||||
|
|
||||||
// FaderMode
|
// FaderMode
|
||||||
BtnTrack,
|
BtnTrack,
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,7 @@ FP8GUI::FP8GUI (FaderPort8& p)
|
||||||
|
|
||||||
row += 4;
|
row += 4;
|
||||||
|
|
||||||
|
#ifndef FADERPORT2
|
||||||
hsep = manage(new Gtk::HSeparator);
|
hsep = manage(new Gtk::HSeparator);
|
||||||
table.attach (*hsep, 0, 8, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions(0), 0, 6);
|
table.attach (*hsep, 0, 8, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions(0), 0, 6);
|
||||||
row++;
|
row++;
|
||||||
|
|
@ -200,6 +201,7 @@ FP8GUI::FP8GUI (FaderPort8& p)
|
||||||
|
|
||||||
table.attach (auto_pluginui_cb, 4, 8, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions(0), 0, 0);
|
table.attach (auto_pluginui_cb, 4, 8, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions(0), 0, 0);
|
||||||
row++;
|
row++;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* update the port connection combos */
|
/* update the port connection combos */
|
||||||
update_port_combos ();
|
update_port_combos ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue