summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-09-28 15:30:02 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-09-28 15:30:02 +0200
commit1c9341fbe0b27fd7457aecedf4d98fb6d02c236a (patch)
tree6adc93a550497dcaefd66a6910b786b5ebce7b89 /plugingui/checkbox.h
parent9f01114c286cc2a19683ff69efc0381fc9b4be90 (diff)
Use new style guide on already refactored files.
Diffstat (limited to 'plugingui/checkbox.h')
-rw-r--r--plugingui/checkbox.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugingui/checkbox.h b/plugingui/checkbox.h
index 8dd3821..4cfeef0 100644
--- a/plugingui/checkbox.h
+++ b/plugingui/checkbox.h
@@ -34,36 +34,36 @@ namespace GUI {
class CheckBox : public Widget {
public:
- CheckBox(Widget *parent);
+ CheckBox(Widget *parent);
- void setText(std::string text);
+ void setText(std::string text);
- bool isFocusable() override { return true; }
+ bool isFocusable() override { return true; }
- bool checked();
- void setChecked(bool checked);
+ bool checked();
+ void setChecked(bool checked);
- Notifier<bool> stateChangedNotifier;
+ Notifier<bool> stateChangedNotifier;
protected:
- virtual void clicked() {}
+ virtual void clicked() {}
- // From Widget:
- virtual void repaintEvent(RepaintEvent *e) override;
- virtual void buttonEvent(ButtonEvent *e) override;
- virtual void keyEvent(KeyEvent *e) override;
+ // From Widget:
+ virtual void repaintEvent(RepaintEvent *e) override;
+ virtual void buttonEvent(ButtonEvent *e) override;
+ virtual void keyEvent(KeyEvent *e) override;
private:
- void internalSetChecked(bool checked);
+ void internalSetChecked(bool checked);
- Image bg_on;
- Image bg_off;
- Image knob;
+ Image bg_on;
+ Image bg_off;
+ Image knob;
- bool state;
- bool middle;
+ bool state;
+ bool middle;
- std::string _text;
+ std::string _text;
};
} // GUI::