/[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 3472 by persson, Sat Feb 16 19:56:56 2019 UTC revision 3637 by schoenebeck, Thu Oct 24 13:12:52 2019 UTC
# Line 71  Line 71 
71    
72  class MainWindow;  class MainWindow;
73    
74  class PropDialog : public ManagedWindow,  class FilePropDialog : public ManagedWindow,
75                     public PropEditor<DLS::Info> {                         public PropEditor<DLS::Info> {
76  public:  public:
77      PropDialog();      FilePropDialog();
78      void set_file(gig::File* file);      void set_file(gig::File* file);
79    
80      // implementation for abstract methods of interface class "ManagedWindow"      // implementation for abstract methods of interface class "ManagedWindow"
# Line 135  protected: Line 135  protected:
135      void set_MIDIProgram(uint32_t value);      void set_MIDIProgram(uint32_t value);
136    
137      sigc::signal<void> sig_name_changed;      sigc::signal<void> sig_name_changed;
138      VBox vbox;      Gtk::Notebook tabs;
139        VBox vbox[3];
140      HButtonBox buttonBox;      HButtonBox buttonBox;
141      Gtk::Button quitButton;      Gtk::Button quitButton;
142    
143        // tab 1
144      Table table;      Table table;
145      StringEntry eName;      StringEntry eName;
146      BoolEntry eIsDrum;      BoolEntry eIsDrum;
# Line 151  protected: Line 154  protected:
154      BoolEntry ePianoReleaseMode;      BoolEntry ePianoReleaseMode;
155      NoteEntry eDimensionKeyRangeLow;      NoteEntry eDimensionKeyRangeLow;
156      NoteEntry eDimensionKeyRangeHigh;      NoteEntry eDimensionKeyRangeHigh;
157    
158        // tab 2
159        Table table2;
160        StringEntry eName2;
161        StringEntry eCreationDate;
162        StringEntryMultiLine eComments;
163        StringEntry eProduct;
164        StringEntry eCopyright;
165        StringEntry eArtists;
166        StringEntry eGenre;
167        StringEntry eKeywords;
168        StringEntry eEngineer;
169        StringEntry eTechnician;
170        StringEntry eSoftware;
171        StringEntry eMedium;
172        StringEntry eSource;
173        StringEntry eSourceForm;
174        StringEntry eCommissioned;
175        StringEntry eSubject;
176    };
177    
178    class SampleProps : public ManagedWindow,
179                        public PropEditor<gig::Sample> {
180    public:
181        SampleProps();
182        void set_sample(gig::Sample* sample);
183        gig::Sample* get_sample() { return m; }
184        void update_name();
185        sigc::signal<void>& signal_name_changed() {
186            return sig_name_changed;
187        }
188    
189        // implementation for abstract methods of interface class "ManagedWindow"
190        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->samplePropsWindowX; }
191        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->samplePropsWindowY; }
192        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->samplePropsWindowW; }
193        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->samplePropsWindowH; }
194    
195    protected:
196        void set_Name(const gig::String& name);
197    
198        sigc::signal<void> sig_name_changed;
199        Gtk::Notebook tabs;
200        VBox vbox[3];
201        HButtonBox buttonBox;
202        Gtk::Button quitButton;
203    
204        // tab 1
205        Table table;
206        StringEntry eName;
207        NoteEntry eUnityNote;
208        ReadOnlyLabelWidget eSampleGroup;
209        ReadOnlyLabelWidget eSampleFormatInfo;
210        ReadOnlyLabelWidget eSampleID;
211        ReadOnlyLabelWidget eChecksum;
212        NumEntryTemp<uint32_t> eLoopsCount;
213        NumEntryTemp<uint32_t> eLoopStart;
214        NumEntryTemp<uint32_t> eLoopLength;
215        ChoiceEntry<gig::loop_type_t> eLoopType;
216        NumEntryTemp<uint32_t> eLoopPlayCount;
217        // tab 2
218        Table table2;
219        StringEntry eName2;
220        StringEntry eCreationDate;
221        StringEntryMultiLine eComments;
222        StringEntry eProduct;
223        StringEntry eCopyright;
224        StringEntry eArtists;
225        StringEntry eGenre;
226        StringEntry eKeywords;
227        StringEntry eEngineer;
228        StringEntry eTechnician;
229        StringEntry eSoftware;
230        StringEntry eMedium;
231        StringEntry eSource;
232        StringEntry eSourceForm;
233        StringEntry eCommissioned;
234        StringEntry eSubject;
235  };  };
236    
237  class ProgressDialog : public Gtk::Dialog {  class ProgressDialog : public Gtk::Dialog {
# Line 291  protected: Line 372  protected:
372      RegionChooser m_RegionChooser;      RegionChooser m_RegionChooser;
373      DimRegionChooser m_DimRegionChooser;      DimRegionChooser m_DimRegionChooser;
374    
375      PropDialog propDialog;      FilePropDialog fileProps;
376      InstrumentProps instrumentProps;      InstrumentProps instrumentProps;
377        SampleProps sampleProps;
378      MidiRules midiRules;      MidiRules midiRules;
379    
380      /**      /**
# Line 486  protected: Line 568  protected:
568      void on_action_quit();      void on_action_quit();
569      void show_instr_props();      void show_instr_props();
570      bool instr_props_set_instrument();      bool instr_props_set_instrument();
571        void show_sample_props();
572        bool sample_props_set_sample();
573        void sample_name_changed_by_sample_props(Gtk::TreeModel::iterator& it);
574      void show_midi_rules();      void show_midi_rules();
575      void show_script_slots();      void show_script_slots();
576      void on_action_view_status_bar();      void on_action_view_status_bar();

Legend:
Removed from v.3472  
changed lines
  Added in v.3637

  ViewVC Help
Powered by ViewVC