summaryrefslogtreecommitdiff
path: root/client/widgets/checkbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/checkbox.cc')
-rw-r--r--client/widgets/checkbox.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/widgets/checkbox.cc b/client/widgets/checkbox.cc
index 4fbdad1..e550289 100644
--- a/client/widgets/checkbox.cc
+++ b/client/widgets/checkbox.cc
@@ -119,3 +119,18 @@ bool CheckBox::setKeyboardFocus()
setFocus();
return true;
}
+
+void CheckBox::enable()
+{
+ setEnabled(true);
+}
+
+void CheckBox::disable()
+{
+ setEnabled(false);
+}
+
+bool CheckBox::isDisabled()
+{
+ return isEnabled() == false;
+}