--- gigedit/trunk/src/gigedit/mainwindow.h 2013/04/10 09:11:37 2441 +++ gigedit/trunk/src/gigedit/mainwindow.h 2013/04/14 07:29:59 2442 @@ -26,8 +26,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -182,7 +184,7 @@ sigc::signal note_on_signal; sigc::signal note_off_signal; - void on_instrument_selection_change(int index); + void on_instrument_selection_change(Gtk::RadioMenuItem* item); void on_sel_change(); void region_changed(); void dimreg_changed(); @@ -212,6 +214,8 @@ Gtk::TreeView m_TreeView; Glib::RefPtr m_refTreeModel; + Gtk::Menu* instrument_menu; + class SamplesModel : public Gtk::TreeModel::ColumnRecord { public: SamplesModel() { @@ -280,6 +284,11 @@ void on_action_duplicate_instrument(); void on_action_remove_instrument(); + void add_instrument(gig::Instrument* instrument); + Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name, + int position = -1); + void remove_instrument_from_menu(int index); + LoadDialog* load_dialog; Loader* loader; void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false); @@ -311,6 +320,7 @@ const Gtk::TreeModel::iterator& iter); void instrument_name_changed(const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter); + sigc::connection instrument_name_connection; void __import_queued_samples(); void __clear();