/[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 3197 by schoenebeck, Sat May 20 17:15:36 2017 UTC revision 3342 by schoenebeck, Mon Jul 31 11:32:49 2017 UTC
# Line 39  Line 39 
39  #include <gtkmm/radiomenuitem.h>  #include <gtkmm/radiomenuitem.h>
40  #include <gtkmm/scrolledwindow.h>  #include <gtkmm/scrolledwindow.h>
41  #include <gtkmm/treestore.h>  #include <gtkmm/treestore.h>
42    #include <gtkmm/treemodelfilter.h>
43  #include <gtkmm/uimanager.h>  #include <gtkmm/uimanager.h>
44  #include <gtkmm/window.h>  #include <gtkmm/window.h>
45  #include <gtkmm/statusbar.h>  #include <gtkmm/statusbar.h>
46  #include <gtkmm/image.h>  #include <gtkmm/image.h>
47    #include <gtkmm/entry.h>
48    #include <gtkmm/notebook.h>
49    
50  #include <sstream>  #include <sstream>
51    
# Line 292  protected: Line 295  protected:
295      void onMacrosSetupChanged(const std::vector<Serialization::Archive>& macros);      void onMacrosSetupChanged(const std::vector<Serialization::Archive>& macros);
296      void applyMacro(Serialization::Archive& macro);      void applyMacro(Serialization::Archive& macro);
297      void onScriptSlotsModified(gig::Instrument* pInstrument);      void onScriptSlotsModified(gig::Instrument* pInstrument);
298        void bringToFront();
299    
300      void dimreg_all_dimregs_toggled();      void dimreg_all_dimregs_toggled();
301      gig::Instrument* get_instrument();      gig::Instrument* get_instrument();
# Line 320  protected: Line 324  protected:
324    
325      Gtk::TreeView m_TreeView;      Gtk::TreeView m_TreeView;
326      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
327        Glib::RefPtr<Gtk::TreeModelFilter> m_refTreeModelFilter; //FIXME: I really would love to get rid of TreeModelFilter, because it causes behavior conflicts with get_model() all over the place (see the respective comments regarding get_model()), however I found no other way to filter a treeview effectively.
328    
329      Gtk::Menu* instrument_menu;      Gtk::Menu* instrument_menu;
330        Gtk::Menu* assign_scripts_menu;
331    
332      std::map<gig::Sample*,int> sample_ref_count;      std::map<gig::Sample*,int> sample_ref_count;
333    
# Line 400  protected: Line 406  protected:
406      Gtk::Label labelSomeLoops;      Gtk::Label labelSomeLoops;
407      DimRegionEdit dimreg_edit;      DimRegionEdit dimreg_edit;
408    
409        Gtk::VBox m_left_vbox;
410      Gtk::Notebook m_TreeViewNotebook;      Gtk::Notebook m_TreeViewNotebook;
411        Gtk::HBox m_searchField;
412        Gtk::Label m_searchLabel;
413        Gtk::Entry m_searchText;
414    
415      struct SampleImportItem {      struct SampleImportItem {
416          gig::Sample*  gig_sample;  // pointer to the gig::Sample to          gig::Sample*  gig_sample;  // pointer to the gig::Sample to
# Line 431  protected: Line 441  protected:
441      void on_action_move_root_note_with_region_moved();      void on_action_move_root_note_with_region_moved();
442      void on_action_help_about();      void on_action_help_about();
443    
444        void on_notebook_tab_switched(GtkNotebookPage* page, guint page_num);
445    
446      // sample right-click popup actions      // sample right-click popup actions
447      void on_sample_treeview_button_release(GdkEventButton* button);      void on_sample_treeview_button_release(GdkEventButton* button);
448      void on_action_sample_properties();      void on_action_sample_properties();
# Line 456  protected: Line 468  protected:
468      void show_intruments_tab();      void show_intruments_tab();
469      void show_scripts_tab();      void show_scripts_tab();
470    
471        void select_prev_instrument();
472        void select_next_instrument();
473        void select_instrument_by_dir(int dir);
474    
475      void select_prev_region();      void select_prev_region();
476      void select_next_region();      void select_next_region();
477    
# Line 532  protected: Line 548  protected:
548      void instrument_name_changed(const Gtk::TreeModel::Path& path,      void instrument_name_changed(const Gtk::TreeModel::Path& path,
549                                   const Gtk::TreeModel::iterator& iter);                                   const Gtk::TreeModel::iterator& iter);
550      void instr_name_changed_by_instr_props(Gtk::TreeModel::iterator& it);      void instr_name_changed_by_instr_props(Gtk::TreeModel::iterator& it);
551        bool instrument_row_visible(const Gtk::TreeModel::const_iterator& iter);
552      sigc::connection instrument_name_connection;      sigc::connection instrument_name_connection;
553    
554      void on_action_combine_instruments();      void on_action_combine_instruments();
# Line 548  protected: Line 565  protected:
565      void __import_queued_samples();      void __import_queued_samples();
566      void __clear();      void __clear();
567      void __refreshEntireGUI();      void __refreshEntireGUI();
568        void updateScriptListOfMenu();
569        void assignScript(gig::Script* pScript);
570    
571      bool close_confirmation_dialog();      bool close_confirmation_dialog();
572      bool leaving_shared_mode_dialog();      bool leaving_shared_mode_dialog();

Legend:
Removed from v.3197  
changed lines
  Added in v.3342

  ViewVC Help
Powered by ViewVC