fix LTC slave latency compensation typo
[ardour.git] / gtk2_ardour / midi_channel_selector.h
index de20b4db8e14ce2745a0a4c784df6504d7d51653..5764a8d813d76c4c2d85a9af46ce9e37129b4b28 100644 (file)
 #include <set>
 #include "boost/shared_ptr.hpp"
 #include "sigc++/trackable.h"
+
 #include "gtkmm/table.h"
 #include "gtkmm/button.h"
 #include "gtkmm/label.h"
 #include "gtkmm2ext/stateful_button.h"
-#include "ardour/types.h"
 
+#include "ardour/types.h"
 
 class MidiChannelSelector : public Gtk::Table
 {
@@ -36,7 +37,6 @@ public:
        MidiChannelSelector(int n_rows = 4, int n_columns = 4, int start_row = 0, int start_column = 0);
        virtual ~MidiChannelSelector() = 0;
 
-       sigc::signal<void, ARDOUR::ChannelMode, uint16_t> mode_changed;
        sigc::signal<void> clicked;
 
        void set_channel_colors(const uint32_t new_channel_colors[16]);
@@ -44,10 +44,11 @@ public:
 
 protected:
        virtual void button_toggled(Gtk::ToggleButton* button, uint8_t button_nr) = 0;
-       Gtk::Label        _button_labels[4][4];
+       Gtk::Label                      _button_labels[4][4];
        Gtkmm2ext::StatefulToggleButton _buttons[4][4];
-       int               _recursion_counter;
-        bool              was_clicked (GdkEventButton*);
+       int                             _recursion_counter;
+
+       bool              was_clicked (GdkEventButton*);
 };
 
 class SingleMidiChannelSelector : public MidiChannelSelector
@@ -74,7 +75,14 @@ public:
 
        virtual ~MidiMultipleChannelSelector();
 
+       /** The channel mode or selected channel(s) has changed.
+        *  First parameter is the new channel mode, second parameter is a bitmask
+        *  of the currently selected channels.
+        */
+       sigc::signal<void, ARDOUR::ChannelMode, uint16_t> mode_changed;
+
        void set_channel_mode(ARDOUR::ChannelMode mode, uint16_t mask);
+       ARDOUR::ChannelMode get_channel_mode () const { return _channel_mode; }
 
        /**
         * @return each bit in the returned word represents a midi channel, eg.