25 Slider(Glib::ustring str,
double min,
double max,
double val);
55 Glib::RefPtr<Gtk::Adjustment>
p_adj;
98 void append_slider(Glib::ustring lbl,
double min = -1,
double max = +1,
double val = 0);
A class for host control widget.
Definition: HostControl.h:84
bool get_values(float *buf, size_t len)
Get the values of the sliders.
std::vector< Slider * > sliders
Vector of pointers to Slider object.
Definition: HostControl.h:116
void update()
Update the widget appearance.
void append_slider(Glib::ustring lbl, double min=-1, double max=+1, double val=0)
Append a slider.
HostControl()
Constructor.
Gtk::Grid grid
Gtk::Grid object for the sliders.
Definition: HostControl.h:114
unsigned int nanVal
NaN variable, see NAN_VAL.
Definition: HostControl.h:124
A class for slider with Gtk::Label, Gtk::SpinButton and Gtk::ToggleButton.
Definition: HostControl.h:16
void on_enable_button_toggled()
Callback of enable button.
Gtk::Box hminbox
Gtk::Box object for the horizontal box of the minimum value.
Definition: HostControl.h:49
bool get_active()
Get the slider active.
Slider(Glib::ustring str, double min, double max, double val)
Constructor.
Gtk::SpinButton maxEntry
Gtk::SpinButton object for the maximum value entry.
Definition: HostControl.h:52
Gtk::SpinButton minEntry
Gtk::SpinButton object for the minimum value entry.
Definition: HostControl.h:51
Glib::RefPtr< Gtk::Adjustment > p_minadj
Gtk::Adjustment pointer for the minimum value entry.
Definition: HostControl.h:56
Gtk::Scale scrollbar
Gtk::Scale object for the scrollbar.
Definition: HostControl.h:46
void set_active(bool is_active=true)
Enable/disable the slider.
Gtk::Box vbox
Gtk::Box object for a vertical box.
Definition: HostControl.h:48
void on_minadj_changed()
Callback of minimum value entry.
Gtk::Label minLabel
Gtk::Label object for the minimum value label.
Definition: HostControl.h:53
Glib::RefPtr< Gtk::Adjustment > p_maxadj
Gtk::Adjustment pointer for the minimum value entry.
Definition: HostControl.h:57
Glib::RefPtr< Gtk::Adjustment > p_adj
Gtk::Adjustment pointer for the scrollbar.
Definition: HostControl.h:55
double get_value()
Get the slider value.
Gtk::Box hmaxbox
Gtk::Box object for the horizontal box of the maximum value.
Definition: HostControl.h:50
Gtk::Label maxLabel
Gtk::Label object for the maximum value label.
Definition: HostControl.h:54
void on_maxadj_changed()
Callback of maximum value entry.
Gtk::ToggleButton button
Gtk::Button object for the enable button.
Definition: HostControl.h:47
A configuration file for the source code.
#define NAN_VAL
NaN val sent when controls not enabled.
Definition: config.h:75