/[svn]/gigedit/trunk/src/gigedit/mainwindow.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2423 by persson, Sun Feb 24 15:19:39 2013 UTC revision 2442 by persson, Sun Apr 14 07:29:59 2013 UTC
# Line 26  Line 26 
26  #include <gtkmm/buttonbox.h>  #include <gtkmm/buttonbox.h>
27  #include <gtkmm/dialog.h>  #include <gtkmm/dialog.h>
28  #include <gtkmm/liststore.h>  #include <gtkmm/liststore.h>
29    #include <gtkmm/menu.h>
30  #include <gtkmm/paned.h>  #include <gtkmm/paned.h>
31  #include <gtkmm/progressbar.h>  #include <gtkmm/progressbar.h>
32    #include <gtkmm/radiomenuitem.h>
33  #include <gtkmm/scrolledwindow.h>  #include <gtkmm/scrolledwindow.h>
34  #include <gtkmm/treestore.h>  #include <gtkmm/treestore.h>
35  #include <gtkmm/uimanager.h>  #include <gtkmm/uimanager.h>
# Line 182  protected: Line 184  protected:
184      sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal;      sigc::signal<void, int/*key*/, int/*velocity*/> note_on_signal;
185      sigc::signal<void, int/*key*/, int/*velocity*/> note_off_signal;      sigc::signal<void, int/*key*/, int/*velocity*/> note_off_signal;
186    
187      void on_instrument_selection_change(int index);      void on_instrument_selection_change(Gtk::RadioMenuItem* item);
188      void on_sel_change();      void on_sel_change();
189      void region_changed();      void region_changed();
190      void dimreg_changed();      void dimreg_changed();
# Line 212  protected: Line 214  protected:
214      Gtk::TreeView m_TreeView;      Gtk::TreeView m_TreeView;
215      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
216    
217        Gtk::Menu* instrument_menu;
218    
219      class SamplesModel : public Gtk::TreeModel::ColumnRecord {      class SamplesModel : public Gtk::TreeModel::ColumnRecord {
220      public:      public:
221          SamplesModel() {          SamplesModel() {
# Line 280  protected: Line 284  protected:
284      void on_action_duplicate_instrument();      void on_action_duplicate_instrument();
285      void on_action_remove_instrument();      void on_action_remove_instrument();
286    
287        void add_instrument(gig::Instrument* instrument);
288        Gtk::RadioMenuItem* add_instrument_to_menu(const Glib::ustring& name,
289                                                   int position = -1);
290        void remove_instrument_from_menu(int index);
291    
292      LoadDialog* load_dialog;      LoadDialog* load_dialog;
293      Loader* loader;      Loader* loader;
294      void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false);      void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false);
# Line 311  protected: Line 320  protected:
320                               const Gtk::TreeModel::iterator& iter);                               const Gtk::TreeModel::iterator& iter);
321      void instrument_name_changed(const Gtk::TreeModel::Path& path,      void instrument_name_changed(const Gtk::TreeModel::Path& path,
322                                   const Gtk::TreeModel::iterator& iter);                                   const Gtk::TreeModel::iterator& iter);
323        sigc::connection instrument_name_connection;
324    
325      void __import_queued_samples();      void __import_queued_samples();
326      void __clear();      void __clear();

Legend:
Removed from v.2423  
changed lines
  Added in v.2442

  ViewVC Help
Powered by ViewVC