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 |
19 |
|
|
20 |
#include <cstring> |
#include <cstring> |
21 |
|
|
22 |
|
#include <glibmmconfig.h> |
23 |
|
// threads.h must be included first to be able to build with |
24 |
|
// G_DISABLE_DEPRECATED |
25 |
|
#if (GLIBMM_MAJOR_VERSION == 2 && GLIBMM_MINOR_VERSION == 31 && GLIBMM_MICRO_VERSION >= 2) || \ |
26 |
|
(GLIBMM_MAJOR_VERSION == 2 && GLIBMM_MINOR_VERSION > 31) || GLIBMM_MAJOR_VERSION > 2 |
27 |
|
#include <glibmm/threads.h> |
28 |
|
#endif |
29 |
|
|
30 |
#include "paramedit.h" |
#include "paramedit.h" |
31 |
|
|
32 |
#include "global.h" |
#include "global.h" |
169 |
widget.set_sensitive(sensitive); |
widget.set_sensitive(sensitive); |
170 |
} |
} |
171 |
|
|
172 |
|
ReadOnlyLabelWidget::ReadOnlyLabelWidget(const char* leftHandText) |
173 |
|
: LabelWidget(leftHandText, text) |
174 |
|
{ |
175 |
|
text.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START); |
176 |
|
} |
177 |
|
|
178 |
|
ReadOnlyLabelWidget::ReadOnlyLabelWidget(const char* leftHandText, const char* rightHandText) |
179 |
|
: LabelWidget(leftHandText, text) |
180 |
|
{ |
181 |
|
text.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START); |
182 |
|
text.set_text(rightHandText); |
183 |
|
} |
184 |
|
|
185 |
NumEntry::NumEntry(const char* labelText, double lower, double upper, |
NumEntry::NumEntry(const char* labelText, double lower, double upper, |
186 |
int decimals) : |
int decimals) : |
187 |
LabelWidget(labelText, box), |
LabelWidget(labelText, box), |