19 |
#include <gtkmm/dialog.h> |
#include <gtkmm/dialog.h> |
20 |
#include <gtkmm/treeview.h> |
#include <gtkmm/treeview.h> |
21 |
#include <gtkmm/liststore.h> |
#include <gtkmm/liststore.h> |
22 |
|
#include <gtkmm/iconview.h> |
23 |
#include <gtkmm/table.h> |
#include <gtkmm/table.h> |
24 |
#include <gtkmm/comboboxtext.h> |
#include <gtkmm/comboboxtext.h> |
25 |
#include <gtkmm/scrolledwindow.h> |
#include <gtkmm/scrolledwindow.h> |
60 |
Gtk::HButtonBox m_buttonBox; |
Gtk::HButtonBox m_buttonBox; |
61 |
Gtk::ScrolledWindow m_scrolledWindow; |
Gtk::ScrolledWindow m_scrolledWindow; |
62 |
Gtk::TreeView m_treeView; |
Gtk::TreeView m_treeView; |
63 |
|
Gtk::IconView m_iconView; |
64 |
Gtk::Button m_cancelButton; |
Gtk::Button m_cancelButton; |
65 |
Gtk::Button m_OKButton; |
Gtk::Button m_OKButton; |
66 |
#if GTKMM_MAJOR_VERSION < 3 |
#if GTKMM_MAJOR_VERSION < 3 |
71 |
Gtk::Table m_tableDimCombo; |
Gtk::Table m_tableDimCombo; |
72 |
Gtk::ComboBox m_comboDimType; |
Gtk::ComboBox m_comboDimType; |
73 |
Gtk::Label m_labelDimType; |
Gtk::Label m_labelDimType; |
74 |
|
Gtk::Label m_labelOrder; |
75 |
|
|
76 |
class ComboDimsModel : public Gtk::TreeModel::ColumnRecord { |
class ComboDimsModel : public Gtk::TreeModel::ColumnRecord { |
77 |
public: |
public: |
97 |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
98 |
} m_columns; |
} m_columns; |
99 |
|
|
100 |
|
class OrderListModel : public Gtk::TreeModel::ColumnRecord { |
101 |
|
public: |
102 |
|
OrderListModel() { |
103 |
|
add(m_col_name); |
104 |
|
add(m_col_markup); |
105 |
|
add(m_col_instr); |
106 |
|
} |
107 |
|
|
108 |
|
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
109 |
|
Gtk::TreeModelColumn<Glib::ustring> m_col_markup; |
110 |
|
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
111 |
|
} m_orderColumns; |
112 |
|
|
113 |
Glib::RefPtr<Gtk::ListStore> m_refTreeModel; |
Glib::RefPtr<Gtk::ListStore> m_refTreeModel; |
114 |
|
Glib::RefPtr<Gtk::ListStore> m_refOrderModel; |
115 |
|
bool first_call_to_drag_data_get; |
116 |
|
|
117 |
void combineSelectedInstruments(); |
void combineSelectedInstruments(); |
118 |
void onSelectionChanged(); |
void onSelectionChanged(); |
119 |
|
void on_order_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context); |
120 |
|
void on_order_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, |
121 |
|
Gtk::SelectionData& selection_data, guint, guint); |
122 |
|
void on_order_drop_drag_data_received( |
123 |
|
const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, |
124 |
|
const Gtk::SelectionData& selection_data, guint, guint time |
125 |
|
); |
126 |
}; |
}; |
127 |
|
|
128 |
#endif // GIGEDIT_COMBINEINSTRUMENTSDIALOG |
#endif // GIGEDIT_COMBINEINSTRUMENTSDIALOG |