mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
[Summary] Added support of SpinButton
[Review] GZharun
This commit is contained in:
parent
d5f09cc78a
commit
2c31cdbe87
2 changed files with 15 additions and 1 deletions
|
|
@ -93,7 +93,9 @@ WavesUI::create_widget (const XMLNode& definition, const XMLNodeMap& styles)
|
|||
child = manage (new Gtk::Label (text));
|
||||
} else if (widget_type == "ENTRY") {
|
||||
child = manage (new Gtk::Entry ());
|
||||
} else if (widget_type == "LAYOUT") {
|
||||
} else if (widget_type == "SPINBUTTON") {
|
||||
child = manage (new Gtk::SpinButton ());
|
||||
} else if (widget_type == "LAYOUT") {
|
||||
child = manage (new Gtk::Layout);
|
||||
} else if (widget_type == "CANVAS") {
|
||||
std::map<std::string, ArdourCanvas::Item*> named_items;
|
||||
|
|
@ -562,6 +564,17 @@ WavesUI::get_entry(const char* id)
|
|||
return *child;
|
||||
}
|
||||
|
||||
Gtk::SpinButton&
|
||||
WavesUI::get_spin_button(const char* id)
|
||||
{
|
||||
Gtk::SpinButton* child = dynamic_cast<Gtk::SpinButton*> (get_object(id));
|
||||
if (child == NULL ) {
|
||||
dbg_msg (std::string("Gtk::SpinButton ") + id + " not found !");
|
||||
throw std::exception();
|
||||
}
|
||||
return *child;
|
||||
}
|
||||
|
||||
WavesButton&
|
||||
WavesUI::get_waves_button (const char* id)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ class WavesUI : public std::map<std::string, Gtk::Object*> {
|
|||
Gtk::Image& get_image (const char* id);
|
||||
Gtk::ComboBoxText& get_combo_box_text (const char* id);
|
||||
Gtk::Entry& get_entry(const char* id);
|
||||
Gtk::SpinButton& get_spin_button(const char* id);
|
||||
WavesButton& get_waves_button (const char* id);
|
||||
Gtkmm2ext::Fader& get_fader (const char* id);
|
||||
const XMLTree* xml_tree() { return _xml_tree; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue