23 |
#include <gtkmm/stock.h> |
#include <gtkmm/stock.h> |
24 |
#include <gtkmm/messagedialog.h> |
#include <gtkmm/messagedialog.h> |
25 |
#include <gtkmm/label.h> |
#include <gtkmm/label.h> |
26 |
|
#include <gtk/gtkwidget.h> // for gtk_widget_modify_*() |
27 |
|
|
28 |
Glib::ustring dimTypeAsString(gig::dimension_t d); |
Glib::ustring dimTypeAsString(gig::dimension_t d); |
29 |
|
|
886 |
{ |
{ |
887 |
Gdk::Color white; |
Gdk::Color white; |
888 |
white.set("#ffffff"); |
white.set("#ffffff"); |
889 |
m_iconView.modify_base(Gtk::STATE_SELECTED, white); |
GtkWidget* widget = (GtkWidget*) m_iconView.gobj(); |
890 |
m_iconView.modify_base(Gtk::STATE_ACTIVE, white); |
gtk_widget_modify_base(widget, GTK_STATE_SELECTED, white.gobj()); |
891 |
m_iconView.modify_bg(Gtk::STATE_SELECTED, white); |
gtk_widget_modify_base(widget, GTK_STATE_ACTIVE, white.gobj()); |
892 |
m_iconView.modify_bg(Gtk::STATE_ACTIVE, white); |
gtk_widget_modify_bg(widget, GTK_STATE_SELECTED, white.gobj()); |
893 |
|
gtk_widget_modify_bg(widget, GTK_STATE_ACTIVE, white.gobj()); |
894 |
} |
} |
895 |
|
|
896 |
m_labelOrder.set_text(_("Order of the instruments to be combined:")); |
m_labelOrder.set_text(_("Order of the instruments to be combined:")); |
944 |
Gtk::MessageDialog msg(*this, txt, false, Gtk::MESSAGE_WARNING); |
Gtk::MessageDialog msg(*this, txt, false, Gtk::MESSAGE_WARNING); |
945 |
msg.run(); |
msg.run(); |
946 |
} |
} |
947 |
|
|
948 |
|
// OK button should have focus by default for quick combining with Return key |
949 |
|
m_OKButton.grab_focus(); |
950 |
} |
} |
951 |
|
|
952 |
void CombineInstrumentsDialog::on_order_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context) |
void CombineInstrumentsDialog::on_order_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context) |
1072 |
if (instrumentIndeces.count(index)) |
if (instrumentIndeces.count(index)) |
1073 |
m_treeView.get_selection()->select(iter); |
m_treeView.get_selection()->select(iter); |
1074 |
} |
} |
1075 |
|
// hack: OK button lost focus after doing the above, it should have focus by default for quick combining with Return key |
1076 |
|
m_OKButton.grab_focus(); |
1077 |
} |
} |
1078 |
|
|
1079 |
void CombineInstrumentsDialog::combineSelectedInstruments() { |
void CombineInstrumentsDialog::combineSelectedInstruments() { |