/[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 3636 by schoenebeck, Thu Oct 24 12:06:18 2019 UTC revision 3637 by schoenebeck, Thu Oct 24 13:12:52 2019 UTC
# Line 175  protected: Line 175  protected:
175      StringEntry eSubject;      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 {
238  public:  public:
239      ProgressDialog(const Glib::ustring& title, Gtk::Window& parent);      ProgressDialog(const Glib::ustring& title, Gtk::Window& parent);
# Line 315  protected: Line 374  protected:
374    
375      FilePropDialog fileProps;      FilePropDialog fileProps;
376      InstrumentProps instrumentProps;      InstrumentProps instrumentProps;
377        SampleProps sampleProps;
378      MidiRules midiRules;      MidiRules midiRules;
379    
380      /**      /**
# Line 508  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.3636  
changed lines
  Added in v.3637

  ViewVC Help
Powered by ViewVC