/[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 2893 by schoenebeck, Fri Apr 29 14:19:53 2016 UTC revision 2894 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC
# Line 51  Line 51 
51    
52  class MainWindow;  class MainWindow;
53    
54  class PropDialog : public Gtk::Window,  class PropDialog : public ManagedWindow,
55                     public PropEditor<DLS::Info> {                     public PropEditor<DLS::Info> {
56  public:  public:
57      PropDialog();      PropDialog();
58      void set_info(DLS::Info* info);      void set_info(DLS::Info* info);
59      void set_file(gig::File* file);      void set_file(gig::File* file);
60    
61        // implementation for abstract methods of interface class "ManagedWindow"
62        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->filePropsWindowX; }
63        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->filePropsWindowY; }
64        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->filePropsWindowW; }
65        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->filePropsWindowH; }
66    
67  protected:  protected:
68      ChoiceEntry<int> eFileFormat;      ChoiceEntry<int> eFileFormat;
69      StringEntry eName;      StringEntry eName;
# Line 85  protected: Line 92  protected:
92      void onFileFormatChanged();      void onFileFormatChanged();
93  };  };
94    
95  class InstrumentProps : public Gtk::Window,  class InstrumentProps : public ManagedWindow,
96                          public PropEditor<gig::Instrument> {                          public PropEditor<gig::Instrument> {
97  public:  public:
98      InstrumentProps();      InstrumentProps();
# Line 95  public: Line 102  public:
102      sigc::signal<void>& signal_name_changed() {      sigc::signal<void>& signal_name_changed() {
103          return sig_name_changed;          return sig_name_changed;
104      }      }
105    
106        // implementation for abstract methods of interface class "ManagedWindow"
107        virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->instrPropsWindowX; }
108        virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->instrPropsWindowY; }
109        virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->instrPropsWindowW; }
110        virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->instrPropsWindowH; }
111    
112  protected:  protected:
113      void set_Name(const gig::String& name);      void set_Name(const gig::String& name);
114      void set_IsDrum(bool value);      void set_IsDrum(bool value);

Legend:
Removed from v.2893  
changed lines
  Added in v.2894

  ViewVC Help
Powered by ViewVC