diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 16:45:38 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 17:39:10 +0100 |
commit | e2982b5f760a862e091992dc0424b2f78c6b724b (patch) | |
tree | a18732fb244aab23317d311622f80902ae38a2da /src/PatchageModule.cpp | |
parent | 8889e2c2d03a414c9e917a598ebfb213c5a28503 (diff) | |
download | patchage-e2982b5f760a862e091992dc0424b2f78c6b724b.tar.gz patchage-e2982b5f760a862e091992dc0424b2f78c6b724b.tar.bz2 patchage-e2982b5f760a862e091992dc0424b2f78c6b724b.zip |
Rename ModuleType to SignalDirection
Diffstat (limited to 'src/PatchageModule.cpp')
-rw-r--r-- | src/PatchageModule.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index 63a268c..73dd3e8 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -22,7 +22,7 @@ PatchageModule::PatchageModule(Patchage* app, const std::string& name, - ModuleType type, + SignalDirection type, ClientID id, double x, double y) @@ -56,7 +56,7 @@ PatchageModule::update_menu() return; } - if (_type == ModuleType::input_output) { + if (_type == SignalDirection::duplex) { bool has_in = false; bool has_out = false; for (const_iterator p = begin(); p != end(); ++p) { @@ -79,7 +79,7 @@ PatchageModule::show_menu(GdkEventButton* ev) { _menu = new Gtk::Menu(); Gtk::Menu::MenuList& items = _menu->items(); - if (_type == ModuleType::input_output) { + if (_type == SignalDirection::duplex) { items.push_back(Gtk::Menu_Helpers::MenuElem( "_Split", sigc::mem_fun(this, &PatchageModule::split))); update_menu(); @@ -125,7 +125,7 @@ PatchageModule::store_location(double x, double y) void PatchageModule::split() { - assert(_type == ModuleType::input_output); + assert(_type == SignalDirection::duplex); _app->conf()->set_module_split(_name, true); _app->refresh(); } @@ -133,7 +133,7 @@ PatchageModule::split() void PatchageModule::join() { - assert(_type != ModuleType::input_output); + assert(_type != SignalDirection::duplex); _app->conf()->set_module_split(_name, false); _app->refresh(); } |