26 |
#include "wrapLabel.hh" |
#include "wrapLabel.hh" |
27 |
#include "ManagedWindow.h" |
#include "ManagedWindow.h" |
28 |
|
|
29 |
|
#include <set> |
30 |
|
|
31 |
/** |
/** |
32 |
* @brief Modal dialog which allows to merge instruments. |
* @brief Modal dialog which allows to merge instruments. |
33 |
* |
* |
43 |
CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig); |
CombineInstrumentsDialog(Gtk::Window& parent, gig::File* gig); |
44 |
bool fileWasChanged() const; |
bool fileWasChanged() const; |
45 |
gig::Instrument* newCombinedInstrument() const; |
gig::Instrument* newCombinedInstrument() const; |
46 |
|
void setSelectedInstruments(const std::set<int>& instrumentIndeces); |
47 |
|
|
48 |
// implementation for abstract methods of interface class "ManagedDialog" |
// implementation for abstract methods of interface class "ManagedDialog" |
49 |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->combineInstrumentsWindowX; } |
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->combineInstrumentsWindowX; } |
84 |
class ListModel : public Gtk::TreeModel::ColumnRecord { |
class ListModel : public Gtk::TreeModel::ColumnRecord { |
85 |
public: |
public: |
86 |
ListModel() { |
ListModel() { |
87 |
|
add(m_col_index); |
88 |
add(m_col_name); |
add(m_col_name); |
89 |
add(m_col_instr); |
add(m_col_instr); |
90 |
} |
} |
91 |
|
|
92 |
|
Gtk::TreeModelColumn<int> m_col_index; |
93 |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
Gtk::TreeModelColumn<Glib::ustring> m_col_name; |
94 |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
Gtk::TreeModelColumn<gig::Instrument*> m_col_instr; |
95 |
} m_columns; |
} m_columns; |