/[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 1069 by schoenebeck, Sun Mar 4 22:00:46 2007 UTC revision 1097 by schoenebeck, Wed Mar 14 23:19:26 2007 UTC
# Line 44  Line 44 
44  #include <gtkmm/uimanager.h>  #include <gtkmm/uimanager.h>
45  #include <gtkmm/window.h>  #include <gtkmm/window.h>
46  #include <gtkmm/menuitem.h>  #include <gtkmm/menuitem.h>
47    #include <gtkmm/treemodel.h>
48    
49    #include <sstream>
50    
51  #include "regionchooser.h"  #include "regionchooser.h"
52  #include "dimregionchooser.h"  #include "dimregionchooser.h"
# Line 371  protected: Line 374  protected:
374      int pageno;      int pageno;
375      int firstRowInBlock;      int firstRowInBlock;
376    
     NumEntryTemp<uint8_t> eVelocityUpperLimit;  
377      NumEntryPermille eEG1PreAttack;      NumEntryPermille eEG1PreAttack;
378      NumEntryTemp<double> eEG1Attack;      NumEntryTemp<double> eEG1Attack;
379      NumEntryTemp<double> eEG1Decay1;      NumEntryTemp<double> eEG1Decay1;
# Line 486  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 497  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        class SamplesTreeStore : public Gtk::TreeStore {
514        public:
515            static Glib::RefPtr<SamplesTreeStore> create(const SamplesModel& columns) {
516                return Glib::RefPtr<SamplesTreeStore>( new SamplesTreeStore(columns) );
517            }
518        protected:
519            SamplesTreeStore(const SamplesModel& columns) : Gtk::TreeStore(columns) {}
520        };
521    
522        Gtk::ScrolledWindow m_ScrolledWindowSamples;
523        Gtk::TreeView m_TreeViewSamples;
524        Glib::RefPtr<SamplesTreeStore> m_refSamplesTreeModel;
525    
526      Gtk::Notebook m_Notebook;      Gtk::Notebook m_Notebook;
527        Gtk::Notebook m_TreeViewNotebook;
528    
529      Gtk::Table* table[5];      Gtk::Table* table[5];
530    
# Line 506  protected: Line 533  protected:
533      Gtk::Label* lSample;      Gtk::Label* lSample;
534      Gtk::Entry* wSample;      Gtk::Entry* wSample;
535    
536        struct SampleImportItem {
537            gig::Sample*  gig_sample;  // pointer to the gig::Sample to which the sample data should be imported to
538            Glib::ustring sample_path; // file name of the sample to be imported
539        };
540        std::list<SampleImportItem> m_SampleImportQueue;
541    
542      void VCFEnabled_toggled();      void VCFEnabled_toggled();
543      void VCFCutoffController_changed();      void VCFCutoffController_changed();
544      void VCFResonanceController_changed();      void VCFResonanceController_changed();
# Line 529  protected: Line 562  protected:
562      void on_action_file_properties();      void on_action_file_properties();
563      void on_action_help_about();      void on_action_help_about();
564    
565        // sample right-click popup actions
566        void on_sample_treeview_button_release(GdkEventButton* button);
567        void on_action_sample_properties();
568        void on_action_add_group();
569        void on_action_add_sample();
570        void on_action_remove_sample();
571    
572      LoadDialog* load_dialog;      LoadDialog* load_dialog;
573      Loader* loader;      Loader* loader;
574      void load_gig(gig::File* gig, const char* filename);      void load_gig(gig::File* gig, const char* filename);
# Line 536  protected: Line 576  protected:
576      gig::File* file;      gig::File* file;
577    
578      void on_button_release(GdkEventButton* button);      void on_button_release(GdkEventButton* button);
579        void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&, Gtk::SelectionData& selection_data, guint, guint);
580        void on_sample_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int, int, const Gtk::SelectionData& selection_data, guint, guint time);
581        void sample_name_changed(const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter);
582        void instrument_name_changed(const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter);
583    
584        void __import_queued_samples();
585    
586    Gtk::Menu* popup_menu;    Gtk::Menu* popup_menu;
587  };  };

Legend:
Removed from v.1069  
changed lines
  Added in v.1097

  ViewVC Help
Powered by ViewVC