mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
trigger_ui: add a color-picker button
This commit is contained in:
parent
d87b1053df
commit
7a53c4140d
3 changed files with 51 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ class TriggerUI : public Gtk::Table //, public sigc::trackable
|
|||
static std::string launch_style_to_string (ARDOUR::Trigger::LaunchStyle);
|
||||
|
||||
private:
|
||||
void choose_color ();
|
||||
void choose_sample ();
|
||||
void sample_chosen (int r);
|
||||
|
||||
|
|
@ -64,6 +65,8 @@ class TriggerUI : public Gtk::Table //, public sigc::trackable
|
|||
bool entry_button_press (GdkEventButton*);
|
||||
void disconnect_entry_signals ();
|
||||
|
||||
Gtk::ColorSelectionDialog _color_dialog;
|
||||
|
||||
ARDOUR::TriggerReference tref;
|
||||
ARDOUR::TriggerPtr trigger() const;
|
||||
|
||||
|
|
@ -74,6 +77,9 @@ class TriggerUI : public Gtk::Table //, public sigc::trackable
|
|||
Gtk::EventBox _namebox;
|
||||
ArdourWidgets::Frame _name_frame;
|
||||
|
||||
Glib::RefPtr<Gtk::SizeGroup> _follow_size_group;
|
||||
ArdourWidgets::ArdourButton _color_button;
|
||||
|
||||
sigc::connection _file_chooser_connection;
|
||||
Gtk::FileChooserDialog* _file_chooser;
|
||||
ArdourWidgets::ArdourButton _load_button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue