[Summary] Implemented channel control mechanism

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 461673]
This commit is contained in:
Grygorii Zharun 2014-05-19 18:04:58 -05:00
parent 5f65b603ad
commit dfc0b58d14
18 changed files with 685 additions and 105 deletions

View file

@ -33,18 +33,20 @@ class DeviceConnectionControl : public Gtk::Layout
NoNumber = 0
};
DeviceConnectionControl (std::string device_capture_name, bool active, uint16_t capture_number, std::string track_name);
DeviceConnectionControl (std::string device_playback_name, bool active, uint16_t playback_number);
DeviceConnectionControl (std::string midi_capture_name, bool active);
DeviceConnectionControl (const std::string& device_capture_name, bool active, uint16_t capture_number, const std::string& track_name);
DeviceConnectionControl (const std::string& device_playback_name, bool active, uint16_t playback_number);
DeviceConnectionControl (const std::string& midi_capture_name, bool active);
DeviceConnectionControl (bool active);
bool build_layout (std::string file_name);
bool build_layout (const std::string& file_name);
void set_number (uint16_t number);
void set_active (bool active);
void set_track_name (const std::string& new_track_name);
std::string get_name ();
sigc::signal2<void, DeviceConnectionControl*, bool> signal_active_changed;
private:
void init(std::string name, bool active, uint16_t number, std::string track_name="");
void init(const std::string& name, bool active, uint16_t number, const std::string& track_name="");
void on_active_on(WavesButton*);
void on_active_off(WavesButton*);