summaryrefslogtreecommitdiff
path: root/plugingui/labeledcontrol.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-01-03 11:50:41 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2021-01-03 11:50:41 +0100
commit756da05c384e3d9258fc07cf9441d899238503f1 (patch)
treeb3385216148d51a2378a2bed5dfc3f0a27d4f1ec /plugingui/labeledcontrol.h
parent645250e1cd8ce9bc1faea599df7a1b05836bfeb8 (diff)
Add dggui namespace to libdggui components.
Diffstat (limited to 'plugingui/labeledcontrol.h')
-rw-r--r--plugingui/labeledcontrol.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugingui/labeledcontrol.h b/plugingui/labeledcontrol.h
index 1972072..693f582 100644
--- a/plugingui/labeledcontrol.h
+++ b/plugingui/labeledcontrol.h
@@ -37,34 +37,34 @@ namespace GUI
{
class LabeledControl
- : public Widget
+ : public dggui::Widget
{
public:
using ValueTransformationFunction =
std::function<std::string(float, float, float)>;
- LabeledControl(Widget* parent, const std::string& name)
- : Widget(parent)
+ LabeledControl(dggui::Widget* parent, const std::string& name)
+ : dggui::Widget(parent)
{
layout.setResizeChildren(false);
- layout.setHAlignment(HAlignment::center);
+ layout.setHAlignment(dggui::HAlignment::center);
layout.setSpacing(2);
caption.setText(name);
caption.resize(100, 20);
- caption.setAlignment(TextAlignment::center);
+ caption.setAlignment(dggui::TextAlignment::center);
layout.addItem(&caption);
}
- void setControl(Knob* control)
+ void setControl(dggui::Knob* control)
{
layout.addItem(control);
CONNECT(control, valueChangedNotifier, this, &LabeledControl::setValue);
setValue(control->value());
value.resize(100, 20);
- value.setAlignment(TextAlignment::center);
+ value.setAlignment(dggui::TextAlignment::center);
layout.addItem(&value);
}
@@ -77,9 +77,9 @@ public:
float scale{1.0f};
private:
- VBoxLayout layout{this};
- Label caption{this};
- Label value{this};
+ dggui::VBoxLayout layout{this};
+ dggui::Label caption{this};
+ dggui::Label value{this};
ValueTransformationFunction value_transformation_func;