22 #ifndef SRC_HEADERS_TUNERSWITCHER_H_
23 #define SRC_HEADERS_TUNERSWITCHER_H_
33 enum SwitcherActions {
43 sigc::signal<void,const Glib::ustring&,const Glib::ustring&> display;
44 sigc::signal<void,SwitcherState> set_state;
45 sigc::signal<void, bool> selection_done;
46 sigc::connection switcher_conn;
47 sigc::connection timeout_conn;
52 bool old_tuner_active;
53 bool new_tuner_active;
57 bool on_note_timeout();
58 bool on_state_timeout();
59 void on_tuner_freq_changed();
60 void try_load_preset();
61 bool display_bank_key(
int idx);
62 bool display_preset_key(
int idx);
66 bool get_active() {
return switcher_conn.connected(); }
69 void toggle(
bool tuner_active);
70 sigc::signal<void,const Glib::ustring&,const Glib::ustring&>&
signal_display() {
return display; }
75 #endif // SRC_HEADERS_TUNERSWITCHER_H_