summaryrefslogtreecommitdiff
path: root/Applications/Piano/KnobsWidget.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 15:07:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:33 +0100
commitc5bd9d4ed1d80ac91d46146565127b0c185f1b43 (patch)
treeb4ee9ba5999778450f8eb4006df89110617b4a10 /Applications/Piano/KnobsWidget.h
parent2d39da5405a4527e91e853ddb1e56a539c96c6c1 (diff)
downloadserenity-c5bd9d4ed1d80ac91d46146565127b0c185f1b43.zip
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
Diffstat (limited to 'Applications/Piano/KnobsWidget.h')
-rw-r--r--Applications/Piano/KnobsWidget.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/Applications/Piano/KnobsWidget.h b/Applications/Piano/KnobsWidget.h
index a2f6f2f0e6..715074dbe4 100644
--- a/Applications/Piano/KnobsWidget.h
+++ b/Applications/Piano/KnobsWidget.h
@@ -29,12 +29,15 @@
#include <LibGUI/GFrame.h>
-class GSlider;
-class GLabel;
+namespace GUI {
+class Label;
+class Slider;
+}
+
class AudioEngine;
class MainWidget;
-class KnobsWidget final : public GFrame {
+class KnobsWidget final : public GUI::Frame {
C_OBJECT(KnobsWidget)
public:
virtual ~KnobsWidget() override;
@@ -42,28 +45,28 @@ public:
void update_knobs();
private:
- KnobsWidget(GWidget* parent, AudioEngine&, MainWidget&);
+ KnobsWidget(GUI::Widget* parent, AudioEngine&, MainWidget&);
AudioEngine& m_audio_engine;
MainWidget& m_main_widget;
- RefPtr<GWidget> m_labels_container;
- RefPtr<GLabel> m_octave_label;
- RefPtr<GLabel> m_wave_label;
- RefPtr<GLabel> m_decay_label;
- RefPtr<GLabel> m_delay_label;
+ RefPtr<GUI::Widget> m_labels_container;
+ RefPtr<GUI::Label> m_octave_label;
+ RefPtr<GUI::Label> m_wave_label;
+ RefPtr<GUI::Label> m_decay_label;
+ RefPtr<GUI::Label> m_delay_label;
- RefPtr<GWidget> m_values_container;
- RefPtr<GLabel> m_octave_value;
- RefPtr<GLabel> m_wave_value;
- RefPtr<GLabel> m_decay_value;
- RefPtr<GLabel> m_delay_value;
+ RefPtr<GUI::Widget> m_values_container;
+ RefPtr<GUI::Label> m_octave_value;
+ RefPtr<GUI::Label> m_wave_value;
+ RefPtr<GUI::Label> m_decay_value;
+ RefPtr<GUI::Label> m_delay_value;
- RefPtr<GWidget> m_knobs_container;
- RefPtr<GSlider> m_octave_knob;
- RefPtr<GSlider> m_wave_knob;
- RefPtr<GSlider> m_decay_knob;
- RefPtr<GSlider> m_delay_knob;
+ RefPtr<GUI::Widget> m_knobs_container;
+ RefPtr<GUI::Slider> m_octave_knob;
+ RefPtr<GUI::Slider> m_wave_knob;
+ RefPtr<GUI::Slider> m_decay_knob;
+ RefPtr<GUI::Slider> m_delay_knob;
bool m_change_octave { true };
};