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

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

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

revision 1053 by persson, Sat Mar 3 12:20:01 2007 UTC revision 1088 by persson, Sat Mar 10 08:16:38 2007 UTC
# Line 43  Line 43 
43  #include <gtkmm/treeview.h>  #include <gtkmm/treeview.h>
44  #include <gtkmm/uimanager.h>  #include <gtkmm/uimanager.h>
45  #include <gtkmm/window.h>  #include <gtkmm/window.h>
46    #include <gtkmm/menuitem.h>
47    
48    #include <sstream>
49    
50  #include "regionchooser.h"  #include "regionchooser.h"
51  #include "dimregionchooser.h"  #include "dimregionchooser.h"
# Line 468  protected: Line 471  protected:
471      PropDialog propDialog;      PropDialog propDialog;
472      InstrumentProps instrumentProps;      InstrumentProps instrumentProps;
473    
474        void on_instrument_selection_change(int index);
475      void on_sel_change();      void on_sel_change();
476      void region_changed();      void region_changed();
477      void dimreg_changed();      void dimreg_changed();
# Line 484  protected: Line 488  protected:
488    
489          Gtk::TreeModelColumn<Glib::ustring> m_col_name;          Gtk::TreeModelColumn<Glib::ustring> m_col_name;
490          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;
491      };      } m_Columns;
   
     ModelColumns m_Columns;  
492    
493      Gtk::VBox m_VBox;      Gtk::VBox m_VBox;
494      Gtk::HPaned m_HPaned;      Gtk::HPaned m_HPaned;
# Line 495  protected: Line 497  protected:
497      Gtk::TreeView m_TreeView;      Gtk::TreeView m_TreeView;
498      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;      Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
499    
500        class SamplesModel : public Gtk::TreeModel::ColumnRecord {
501        public:
502            SamplesModel() {
503                add(m_col_name);
504                add(m_col_sample);
505                add(m_col_group);
506            }
507    
508            Gtk::TreeModelColumn<Glib::ustring> m_col_name;
509            Gtk::TreeModelColumn<gig::Sample*> m_col_sample;
510            Gtk::TreeModelColumn<gig::Group*> m_col_group;
511        } m_SamplesModel;
512    
513        Gtk::ScrolledWindow m_ScrolledWindowSamples;
514        Gtk::TreeView m_TreeViewSamples;
515        Glib::RefPtr<Gtk::TreeStore> m_refSamplesTreeModel;
516    
517      Gtk::Notebook m_Notebook;      Gtk::Notebook m_Notebook;
518        Gtk::Notebook m_TreeViewNotebook;
519    
520      Gtk::Table* table[5];      Gtk::Table* table[5];
521    
# Line 504  protected: Line 524  protected:
524      Gtk::Label* lSample;      Gtk::Label* lSample;
525      Gtk::Entry* wSample;      Gtk::Entry* wSample;
526    
527        struct SampleImportItem {
528            gig::Sample*  gig_sample;  // pointer to the gig::Sample to which the sample data should be imported to
529            Glib::ustring sample_path; // file name of the sample to be imported
530        };
531        std::list<SampleImportItem> m_SampleImportQueue;
532    
533      void VCFEnabled_toggled();      void VCFEnabled_toggled();
534      void VCFCutoffController_changed();      void VCFCutoffController_changed();
535      void VCFResonanceController_changed();      void VCFResonanceController_changed();
# Line 527  protected: Line 553  protected:
553      void on_action_file_properties();      void on_action_file_properties();
554      void on_action_help_about();      void on_action_help_about();
555    
556        // sample right-click popup actions
557        void on_sample_treeview_button_release(GdkEventButton* button);
558        void on_action_sample_properties();
559        void on_action_add_group();
560        void on_action_add_sample();
561        void on_action_remove_sample();
562    
563      LoadDialog* load_dialog;      LoadDialog* load_dialog;
564      Loader* loader;      Loader* loader;
565      void load_gig(gig::File* gig, const char* filename);      void load_gig(gig::File* gig, const char* filename);
# Line 535  protected: Line 568  protected:
568    
569      void on_button_release(GdkEventButton* button);      void on_button_release(GdkEventButton* button);
570    
571        void __import_queued_samples();
572    
573    Gtk::Menu* popup_menu;    Gtk::Menu* popup_menu;
574  };  };
575    

Legend:
Removed from v.1053  
changed lines
  Added in v.1088

  ViewVC Help
Powered by ViewVC