00001 /* 00002 ClanGUI, copyrights by various people. Have a look in the CREDITS file. 00003 00004 This sourcecode is distributed using the Library GNU Public Licence, 00005 version 2 or (at your option) any later version. Please read LICENSE 00006 for details. 00007 */ 00008 00010 00011 #ifndef header_checkbox 00012 #define header_checkbox 00013 00014 #include "button.h" 00015 00016 class CL_CheckBox : public CL_Button 00017 //: CheckBox component 00018 { 00020 public: 00021 CL_CheckBox( 00022 const CL_ComponentOptions &options, 00023 CL_Component *parent, 00024 CL_StyleManager *style = NULL); 00025 00026 CL_CheckBox( 00027 const CL_Point &pos, 00028 const std::string &text, 00029 CL_Component *parent, 00030 CL_StyleManager *style = NULL); 00031 00032 virtual ~CL_CheckBox(); 00033 00035 public: 00036 bool is_checked() const; 00037 //: Returns true if the checkbox is checked, or false if it is not checked. 00038 00040 public: 00041 void set_checked(bool check); 00042 //: Checks the checkbox if check is true, or unchecks it if check is false. 00043 00045 private: 00046 // TODO:Fix this copy constructor: 00047 CL_CheckBox(const CL_CheckBox ©);// : CL_Button(NULL, NULL, NULL) { return; } // disallow copy construction. 00048 class CL_CheckBox_Generic *impl; 00049 }; 00050 00051 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001