1 |
/* |
/* |
2 |
* Copyright (C) 2006-2014 Andreas Persson |
* Copyright (C) 2006-2015 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
161 |
widget.set_sensitive(sensitive); |
widget.set_sensitive(sensitive); |
162 |
} |
} |
163 |
|
|
164 |
|
ReadOnlyLabelWidget::ReadOnlyLabelWidget(const char* leftHandText) |
165 |
|
: LabelWidget(leftHandText, text) |
166 |
|
{ |
167 |
|
text.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START); |
168 |
|
} |
169 |
|
|
170 |
|
ReadOnlyLabelWidget::ReadOnlyLabelWidget(const char* leftHandText, const char* rightHandText) |
171 |
|
: LabelWidget(leftHandText, text) |
172 |
|
{ |
173 |
|
text.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START); |
174 |
|
text.set_text(rightHandText); |
175 |
|
} |
176 |
|
|
177 |
NumEntry::NumEntry(const char* labelText, double lower, double upper, |
NumEntry::NumEntry(const char* labelText, double lower, double upper, |
178 |
int decimals) : |
int decimals) : |
179 |
LabelWidget(labelText, box), |
LabelWidget(labelText, box), |