summaryrefslogtreecommitdiff
path: root/libs/surfaces/us2400
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-01-21 14:34:19 +0100
committerRobin Gareus <robin@gareus.org>2019-01-21 14:34:19 +0100
commit657e976a80f789c1746dd99f29ce2c79ffcf711c (patch)
treeef1daf8e44ca0887a4e14c4c7ec3dabc6676cecc /libs/surfaces/us2400
parentd97364736ca4054fba756215dade6894d082c105 (diff)
NO-OP: remove unused code
Diffstat (limited to 'libs/surfaces/us2400')
-rw-r--r--libs/surfaces/us2400/gui.cc109
1 files changed, 0 insertions, 109 deletions
diff --git a/libs/surfaces/us2400/gui.cc b/libs/surfaces/us2400/gui.cc
index 6a5a820045..688a3da86c 100644
--- a/libs/surfaces/us2400/gui.cc
+++ b/libs/surfaces/us2400/gui.cc
@@ -487,28 +487,6 @@ US2400ProtocolGUI::build_function_key_editor ()
col->add_attribute (renderer->property_text(), function_key_columns.shift);
function_key_editor.append_column (*col);
-/*
- * renderer = make_action_renderer (available_action_model, function_key_columns.control);
- col = manage (new TreeViewColumn (_("Control"), *renderer));
- col->add_attribute (renderer->property_text(), function_key_columns.control);
- function_key_editor.append_column (*col);
-
- renderer = make_action_renderer (available_action_model, function_key_columns.option);
- col = manage (new TreeViewColumn (_("Option"), *renderer));
- col->add_attribute (renderer->property_text(), function_key_columns.option);
- function_key_editor.append_column (*col);
-
- renderer = make_action_renderer (available_action_model, function_key_columns.cmdalt);
- col = manage (new TreeViewColumn (_("Cmd/Alt"), *renderer));
- col->add_attribute (renderer->property_text(), function_key_columns.cmdalt);
- function_key_editor.append_column (*col);
-
- renderer = make_action_renderer (available_action_model, function_key_columns.shiftcontrol);
- col = manage (new TreeViewColumn (_("Shift+Control"), *renderer));
- col->add_attribute (renderer->property_text(), function_key_columns.shiftcontrol);
- function_key_editor.append_column (*col);
-*/
-
function_key_model = ListStore::create (function_key_columns);
function_key_editor.set_model (function_key_model);
}
@@ -565,93 +543,6 @@ US2400ProtocolGUI::refresh_function_key_editor ()
}
}
}
-
- //~ /* We only allow plain bindings for Fn keys. All others are
- //~ * reserved for hard-coded actions.
- //~ */
-//~
- //~ if (bid >= US2400::Button::F1 && bid <= US2400::Button::F8) {
-//~
- //~ action = dp.get_button_action (bid, US2400Protocol::MODIFIER_SHIFT);
- //~ if (action.empty()) {
- //~ row[function_key_columns.shift] = defstring;
- //~ } else {
- //~ if (action.find ('/') == string::npos) {
- //~ /* Probably a key alias */
- //~ row[function_key_columns.shift] = action;
- //~ } else {
- //~ act = ActionManager::get_action (action.c_str());
- //~ if (act) {
- //~ row[function_key_columns.shift] = act->get_label();
- //~ } else {
- //~ row[function_key_columns.shift] = defstring;
- //~ }
- //~ }
- //~ }
- //~ }
-
- //~ action = dp.get_button_action (bid, US2400Protocol::MODIFIER_CONTROL);
- //~ if (action.empty()) {
- //~ row[function_key_columns.control] = defstring;
- //~ } else {
- //~ if (action.find ('/') == string::npos) {
- //~ /* Probably a key alias */
- //~ row[function_key_columns.control] = action;
- //~ } else {
- //~ act = ActionManager::get_action (action.c_str());
- //~ if (act) {
- //~ row[function_key_columns.control] = act->get_label();
- //~ } else {
- //~ row[function_key_columns.control] = defstring;
- //~ }
- //~ }
- //~ }
-//~
- //~ action = dp.get_button_action (bid, US2400Protocol::MODIFIER_OPTION);
- //~ if (action.empty()) {
- //~ row[function_key_columns.option] = defstring;
- //~ } else {
- //~ if (action.find ('/') == string::npos) {
- //~ /* Probably a key alias */
- //~ row[function_key_columns.option] = action;
- //~ } else {
- //~ act = ActionManager::get_action (action.c_str());
- //~ if (act) {
- //~ row[function_key_columns.option] = act->get_label();
- //~ } else {
- //~ row[function_key_columns.option] = defstring;
- //~ }
- //~ }
- //~ }
-//~
- //~ action = dp.get_button_action (bid, US2400Protocol::MODIFIER_CMDALT);
- //~ if (action.empty()) {
- //~ row[function_key_columns.cmdalt] = defstring;
- //~ } else {
- //~ if (action.find ('/') == string::npos) {
- //~ /* Probably a key alias */
- //~ row[function_key_columns.cmdalt] = action;
- //~ } else {
- //~ act = ActionManager::get_action (action.c_str());
- //~ if (act) {
- //~ row[function_key_columns.cmdalt] = act->get_label();
- //~ } else {
- //~ row[function_key_columns.cmdalt] = defstring;
- //~ }
- //~ }
- //~ }
-//~
- //~ action = dp.get_button_action (bid, (US2400Protocol::MODIFIER_SHIFT|US2400Protocol::MODIFIER_CONTROL));
- //~ if (action.empty()) {
- //~ row[function_key_columns.shiftcontrol] = defstring;
- //~ } else {
- //~ act = ActionManager::get_action (action.c_str());
- //~ if (act) {
- //~ row[function_key_columns.shiftcontrol] = act->get_label();
- //~ } else {
- //~ row[function_key_columns.shiftcontrol] = defstring;
- //~ }
- //~ }
}
function_key_editor.set_model (function_key_model);