projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix LTC slave latency compensation typo
[ardour.git]
/
gtk2_ardour
/
midi_channel_selector.h
diff --git
a/gtk2_ardour/midi_channel_selector.h
b/gtk2_ardour/midi_channel_selector.h
index de20b4db8e14ce2745a0a4c784df6504d7d51653..5764a8d813d76c4c2d85a9af46ce9e37129b4b28 100644
(file)
--- a/
gtk2_ardour/midi_channel_selector.h
+++ b/
gtk2_ardour/midi_channel_selector.h
@@
-23,12
+23,13
@@
#include <set>
#include "boost/shared_ptr.hpp"
#include "sigc++/trackable.h"
#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 "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
{
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;
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]);
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;
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];
Gtkmm2ext::StatefulToggleButton _buttons[4][4];
- int _recursion_counter;
- bool was_clicked (GdkEventButton*);
+ int _recursion_counter;
+
+ bool was_clicked (GdkEventButton*);
};
class SingleMidiChannelSelector : public MidiChannelSelector
};
class SingleMidiChannelSelector : public MidiChannelSelector
@@
-74,7
+75,14
@@
public:
virtual ~MidiMultipleChannelSelector();
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);
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.
/**
* @return each bit in the returned word represents a midi channel, eg.