2019-01-20 04:49:48 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-03-06 12:52:41 +01:00
|
|
|
#include <AK/Function.h>
|
2020-01-10 19:06:00 +03:00
|
|
|
#include <AK/String.h>
|
2019-05-24 17:11:42 +02:00
|
|
|
#include <LibGUI/GAbstractButton.h>
|
2019-01-20 04:49:48 +01:00
|
|
|
|
2019-05-24 17:11:42 +02:00
|
|
|
class GCheckBox : public GAbstractButton {
|
2019-07-25 19:49:28 +02:00
|
|
|
C_OBJECT(GCheckBox)
|
2019-01-20 04:49:48 +01:00
|
|
|
public:
|
|
|
|
virtual ~GCheckBox() override;
|
|
|
|
|
2019-05-24 17:11:42 +02:00
|
|
|
virtual void click() override;
|
2019-03-06 12:52:41 +01:00
|
|
|
|
2019-01-20 04:49:48 +01:00
|
|
|
private:
|
2019-09-21 18:58:48 +02:00
|
|
|
GCheckBox(const StringView&, GWidget* parent);
|
|
|
|
explicit GCheckBox(GWidget* parent);
|
|
|
|
|
2019-07-13 10:27:19 +02: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-21 00:46:08 +01:00
|
|
|
virtual void paint_event(GPaintEvent&) override;
|
2019-01-20 04:49:48 +01:00
|
|
|
};
|