2019-01-20 01:49:48 -02:00
|
|
|
#pragma once
|
|
|
|
|
|
2019-09-06 10:34:26 -03:00
|
|
|
#include <AK/String.h>
|
2019-03-06 08:52:41 -03:00
|
|
|
#include <AK/Function.h>
|
2019-05-24 12:11:42 -03:00
|
|
|
#include <LibGUI/GAbstractButton.h>
|
2019-01-20 01:49:48 -02:00
|
|
|
|
2019-05-24 12:11:42 -03:00
|
|
|
class GCheckBox : public GAbstractButton {
|
2019-07-25 14:49:28 -03:00
|
|
|
C_OBJECT(GCheckBox)
|
2019-01-20 01:49:48 -02:00
|
|
|
public:
|
|
|
|
|
virtual ~GCheckBox() override;
|
|
|
|
|
|
2019-05-24 12:11:42 -03:00
|
|
|
virtual void click() override;
|
2019-03-06 08:52:41 -03:00
|
|
|
|
2019-01-20 01:49:48 -02:00
|
|
|
private:
|
2019-09-21 13:58:48 -03:00
|
|
|
GCheckBox(const StringView&, GWidget* parent);
|
|
|
|
|
explicit GCheckBox(GWidget* parent);
|
|
|
|
|
|
2019-07-13 05:27:19 -03:00
|
|
|
// These don't make sense for a check box, so hide them.
|
|
|
|
|
using GAbstractButton::auto_repeat_interval;
|
|
|
|
|
using GAbstractButton::set_auto_repeat_interval;
|
|
|
|
|
|
2019-01-20 21:46:08 -02:00
|
|
|
virtual void paint_event(GPaintEvent&) override;
|
2019-01-20 01:49:48 -02:00
|
|
|
};
|