/[svn]/gigedit/trunk/src/paramedit.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/paramedit.cpp

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

revision 1223 by persson, Fri Apr 13 17:57:26 2007 UTC revision 1224 by persson, Sun Jun 10 09:26:36 2007 UTC
# Line 59  namespace { Line 59  namespace {
59      };      };
60  }  }
61    
62  LabelWidget::LabelWidget(char* labelText, Gtk::Widget& widget) :  LabelWidget::LabelWidget(const char* labelText, Gtk::Widget& widget) :
63      label(Glib::ustring(labelText) + ":"),      label(Glib::ustring(labelText) + ":"),
64      widget(widget)      widget(widget)
65  {  {
# Line 72  void LabelWidget::set_sensitive(bool sen Line 72  void LabelWidget::set_sensitive(bool sen
72      widget.set_sensitive(sensitive);      widget.set_sensitive(sensitive);
73  }  }
74    
75  NumEntry::NumEntry(char* labelText, double lower, double upper,  NumEntry::NumEntry(const char* labelText, double lower, double upper,
76                     int decimals) :                     int decimals) :
77      adjust(lower, lower, upper, 1, 10),      adjust(lower, lower, upper, 1, 10),
78      scale(adjust),      scale(adjust),
# Line 85  NumEntry::NumEntry(char* labelText, doub Line 85  NumEntry::NumEntry(char* labelText, doub
85      box.add(scale);      box.add(scale);
86  }  }
87    
88  NumEntryGain::NumEntryGain(char* labelText,  NumEntryGain::NumEntryGain(const char* labelText,
89                             double lower, double upper,                             double lower, double upper,
90                             int decimals, double coeff) :                             int decimals, double coeff) :
91      NumEntry(labelText, lower, upper, decimals),      NumEntry(labelText, lower, upper, decimals),
# Line 112  void NumEntryGain::set_ptr(int32_t* ptr) Line 112  void NumEntryGain::set_ptr(int32_t* ptr)
112  }  }
113    
114    
115  BoolEntryPlus6::BoolEntryPlus6(char* labelText, NumEntryGain& eGain, int32_t plus6value) :  BoolEntryPlus6::BoolEntryPlus6(const char* labelText, NumEntryGain& eGain, int32_t plus6value) :
116      LabelWidget(labelText, checkbutton),      LabelWidget(labelText, checkbutton),
117      eGain(eGain),      eGain(eGain),
118      plus6value(plus6value)      plus6value(plus6value)
# Line 144  void BoolEntryPlus6::set_ptr(int32_t* pt Line 144  void BoolEntryPlus6::set_ptr(int32_t* pt
144      this->ptr = ptr;      this->ptr = ptr;
145  }  }
146    
147  NumEntryPermille::NumEntryPermille(char* labelText,  NumEntryPermille::NumEntryPermille(const char* labelText,
148                                     double lower, double upper, int decimals) :                                     double lower, double upper, int decimals) :
149      NumEntry(labelText, lower, upper, decimals)      NumEntry(labelText, lower, upper, decimals)
150  {  {
# Line 167  void NumEntryPermille::set_ptr(uint16_t* Line 167  void NumEntryPermille::set_ptr(uint16_t*
167  }  }
168    
169    
170  NoteEntry::NoteEntry(char* labelText) :  NoteEntry::NoteEntry(const char* labelText) :
171      NumEntryTemp<uint8_t>(labelText)      NumEntryTemp<uint8_t>(labelText)
172  {  {
173      spinbutton.signal_input().connect(      spinbutton.signal_input().connect(
# Line 211  bool NoteEntry::on_output() Line 211  bool NoteEntry::on_output()
211      return true;      return true;
212  }  }
213    
214  ChoiceEntryLeverageCtrl::ChoiceEntryLeverageCtrl(char* labelText) :  ChoiceEntryLeverageCtrl::ChoiceEntryLeverageCtrl(const char* labelText) :
215      align(0, 0, 0, 0),      align(0, 0, 0, 0),
216      LabelWidget(labelText, align)      LabelWidget(labelText, align)
217  {  {
# Line 295  void ChoiceEntryLeverageCtrl::set_ptr(gi Line 295  void ChoiceEntryLeverageCtrl::set_ptr(gi
295  }  }
296    
297    
298  BoolEntry::BoolEntry(char* labelText) :  BoolEntry::BoolEntry(const char* labelText) :
299      LabelWidget(labelText, checkbutton),      LabelWidget(labelText, checkbutton),
300      checkbutton(labelText),      checkbutton(labelText),
301      ptr(0)      ptr(0)
# Line 319  void BoolEntry::set_ptr(bool* ptr) Line 319  void BoolEntry::set_ptr(bool* ptr)
319  }  }
320    
321    
322  StringEntry::StringEntry(char* labelText) :  StringEntry::StringEntry(const char* labelText) :
323      LabelWidget(labelText, entry)      LabelWidget(labelText, entry)
324  {  {
325      entry.signal_changed().connect(      entry.signal_changed().connect(

Legend:
Removed from v.1223  
changed lines
  Added in v.1224

  ViewVC Help
Powered by ViewVC