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 |
{ |
{ |
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), |
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), |
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) |
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 |
{ |
{ |
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( |
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 |
{ |
{ |
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) |
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( |