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

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

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

revision 3177 by schoenebeck, Thu May 11 20:59:46 2017 UTC revision 3409 by schoenebeck, Tue Jan 23 16:30:56 2018 UTC
# Line 26  Line 26 
26  # include <gig.h>  # include <gig.h>
27  #endif  #endif
28    
29    #include "compat.h"
30    
31  #include <cairomm/context.h>  #include <cairomm/context.h>
32  #include <gtkmm/box.h>  #include <gtkmm/box.h>
33  #include <gtkmm/drawingarea.h>  #include <gtkmm/drawingarea.h>
34  #include <gtkmm/entry.h>  #include <gtkmm/entry.h>
35  #include <gtkmm/label.h>  #include <gtkmm/label.h>
36  #include <gtkmm/notebook.h>  #include <gtkmm/notebook.h>
37  #include <gtkmm/table.h>  #if USE_GTKMM_GRID
38    # include <gtkmm/grid.h>
39    #else
40    # include <gtkmm/table.h>
41    #endif
42    
43  #include <set>  #include <set>
44    
# Line 75  private: Line 81  private:
81                          bool sensitive);                          bool sensitive);
82  };  };
83    
84    class EGStateOptions : public HBox {
85    public:
86        Gtk::Label label;
87        BoolBox checkBoxAttack;
88        BoolBox checkBoxAttackHold;
89        BoolBox checkBoxDecay1;
90        BoolBox checkBoxDecay2;
91        BoolBox checkBoxRelease;
92    
93        EGStateOptions();
94        void on_show_tooltips_changed();
95    };
96    
97  class DimRegionEdit : public Gtk::Notebook  class DimRegionEdit : public Gtk::Notebook
98  {  {
99  public:  public:
# Line 118  protected: Line 137  protected:
137      Gtk::Tooltips tooltips;      Gtk::Tooltips tooltips;
138  #endif  #endif
139    
140    #if USE_GTKMM_GRID
141        Gtk::Grid* table[7];
142    #else
143      Gtk::Table* table[7];      Gtk::Table* table[7];
144    #endif
145    
146      Gtk::Label* lSample;      Gtk::Label* lSample;
147    
# Line 140  protected: Line 163  protected:
163      NumEntryTemp<uint8_t> eEG1ControllerAttackInfluence;      NumEntryTemp<uint8_t> eEG1ControllerAttackInfluence;
164      NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence;      NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence;
165      NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence;      NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence;
166        EGStateOptions eEG1StateOptions;
167      NumEntryTemp<double> eLFO1Frequency;      NumEntryTemp<double> eLFO1Frequency;
168      NumEntryTemp<uint16_t> eLFO1InternalDepth;      NumEntryTemp<uint16_t> eLFO1InternalDepth;
169      NumEntryTemp<uint16_t> eLFO1ControlDepth;      NumEntryTemp<uint16_t> eLFO1ControlDepth;
# Line 158  protected: Line 182  protected:
182      NumEntryTemp<uint8_t> eEG2ControllerAttackInfluence;      NumEntryTemp<uint8_t> eEG2ControllerAttackInfluence;
183      NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence;      NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence;
184      NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence;      NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence;
185        EGStateOptions eEG2StateOptions;
186      NumEntryTemp<double> eLFO2Frequency;      NumEntryTemp<double> eLFO2Frequency;
187      NumEntryTemp<uint16_t> eLFO2InternalDepth;      NumEntryTemp<uint16_t> eLFO2InternalDepth;
188      NumEntryTemp<uint16_t> eLFO2ControlDepth;      NumEntryTemp<uint16_t> eLFO2ControlDepth;
# Line 232  protected: Line 257  protected:
257      void addProp(BoolEntry& boolentry);      void addProp(BoolEntry& boolentry);
258      void addProp(BoolEntryPlus6& boolentry);      void addProp(BoolEntryPlus6& boolentry);
259      void addProp(LabelWidget& labelwidget);      void addProp(LabelWidget& labelwidget);
260        void addLine(HBox& line);
261      void addString(const char* labelText, Gtk::Label*& label,      void addString(const char* labelText, Gtk::Label*& label,
262                     Gtk::Entry*& widget);                     Gtk::Entry*& widget);
263      void addString(const char* labelText, Gtk::Label*& label,      void addString(const char* labelText, Gtk::Label*& label,
# Line 260  protected: Line 286  protected:
286      void loop_length_changed();      void loop_length_changed();
287      void loop_infinite_toggled();      void loop_infinite_toggled();
288      void nullOutSampleReference();      void nullOutSampleReference();
289        void on_show_tooltips_changed();
290    
291      int update_model;      int update_model;
292    
293        /**
294         * Workaround for the circumstance that C++ does not allow to cast to
295         * member pointers.
296         */
297        template<typename classT, typename memberT>
298        union ClassMemberPtr {
299            memberT classT::*pmember;
300            void* pvoid;
301    
302            ClassMemberPtr(size_t s) : pvoid((void*)s) {}
303            ClassMemberPtr(void* p) : pvoid(p) {}
304        };
305    
306      // connect a widget to a setter function in DimRegionEdit      // connect a widget to a setter function in DimRegionEdit
307      template<typename C, typename T>      template<typename C, typename T>
308      void connect(C& widget,      void connect(C& widget,

Legend:
Removed from v.3177  
changed lines
  Added in v.3409

  ViewVC Help
Powered by ViewVC