Logo
  • Main Page
  • Related Pages
  • Modules
  • Classes
  • Files

mmscheckboxwidgetclass.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005-2007 Stefan Schwarzer, Jens Schneider,             *
00003  *                           Matthias Hardt, Guido Madaus                  *
00004  *                                                                         *
00005  *   Copyright (C) 2007-2008 BerLinux Solutions GbR                        *
00006  *                           Stefan Schwarzer & Guido Madaus               *
00007  *                                                                         *
00008  *   Copyright (C) 2009-2013 BerLinux Solutions GmbH                       *
00009  *                                                                         *
00010  *   Authors:                                                              *
00011  *      Stefan Schwarzer   <stefan.schwarzer@diskohq.org>,                 *
00012  *      Matthias Hardt     <matthias.hardt@diskohq.org>,                   *
00013  *      Jens Schneider     <jens.schneider@diskohq.org>,                   *
00014  *      Guido Madaus       <guido.madaus@diskohq.org>,                     *
00015  *      Patrick Helterhoff <patrick.helterhoff@diskohq.org>,               *
00016  *      René Bählkow       <rene.baehlkow@diskohq.org>                     *
00017  *                                                                         *
00018  *   This library is free software; you can redistribute it and/or         *
00019  *   modify it under the terms of the GNU Lesser General Public            *
00020  *   License version 2.1 as published by the Free Software Foundation.     *
00021  *                                                                         *
00022  *   This library is distributed in the hope that it will be useful,       *
00023  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00024  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00025  *   Lesser General Public License for more details.                       *
00026  *                                                                         *
00027  *   You should have received a copy of the GNU Lesser General Public      *
00028  *   License along with this library; if not, write to the                 *
00029  *   Free Software Foundation, Inc.,                                       *
00030  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
00031  **************************************************************************/
00032 
00033 #ifndef MMSCHECKBOXWIDGETCLASS_H_
00034 #define MMSCHECKBOXWIDGETCLASS_H_
00035 
00036 #include "mmsgui/theme/mmswidgetclass.h"
00037 
00038 //! describe attributes for MMSCheckBoxWidget which are additional to the MMSWidgetClass
00039 namespace MMSGUI_CHECKBOXWIDGET_ATTR {
00040 
00041     #define MMSGUI_CHECKBOXWIDGET_ATTR_ATTRDESC \
00042     { "checked_bgcolor", TAFF_ATTRTYPE_COLOR }, \
00043     { "checked_bgcolor.a", TAFF_ATTRTYPE_UCHAR }, \
00044     { "checked_bgcolor.r", TAFF_ATTRTYPE_UCHAR }, \
00045     { "checked_bgcolor.g", TAFF_ATTRTYPE_UCHAR }, \
00046     { "checked_bgcolor.b", TAFF_ATTRTYPE_UCHAR }, \
00047     { "checked_selbgcolor", TAFF_ATTRTYPE_COLOR }, \
00048     { "checked_selbgcolor.a", TAFF_ATTRTYPE_UCHAR }, \
00049     { "checked_selbgcolor.r", TAFF_ATTRTYPE_UCHAR }, \
00050     { "checked_selbgcolor.g", TAFF_ATTRTYPE_UCHAR }, \
00051     { "checked_selbgcolor.b", TAFF_ATTRTYPE_UCHAR }, \
00052     { "checked_bgcolor_p", TAFF_ATTRTYPE_COLOR }, \
00053     { "checked_bgcolor_p.a", TAFF_ATTRTYPE_UCHAR }, \
00054     { "checked_bgcolor_p.r", TAFF_ATTRTYPE_UCHAR }, \
00055     { "checked_bgcolor_p.g", TAFF_ATTRTYPE_UCHAR }, \
00056     { "checked_bgcolor_p.b", TAFF_ATTRTYPE_UCHAR }, \
00057     { "checked_selbgcolor_p", TAFF_ATTRTYPE_COLOR }, \
00058     { "checked_selbgcolor_p.a", TAFF_ATTRTYPE_UCHAR }, \
00059     { "checked_selbgcolor_p.r", TAFF_ATTRTYPE_UCHAR }, \
00060     { "checked_selbgcolor_p.g", TAFF_ATTRTYPE_UCHAR }, \
00061     { "checked_selbgcolor_p.b", TAFF_ATTRTYPE_UCHAR }, \
00062     { "checked_bgcolor_i", TAFF_ATTRTYPE_COLOR }, \
00063     { "checked_bgcolor_i.a", TAFF_ATTRTYPE_UCHAR }, \
00064     { "checked_bgcolor_i.r", TAFF_ATTRTYPE_UCHAR }, \
00065     { "checked_bgcolor_i.g", TAFF_ATTRTYPE_UCHAR }, \
00066     { "checked_bgcolor_i.b", TAFF_ATTRTYPE_UCHAR }, \
00067     { "checked_selbgcolor_i", TAFF_ATTRTYPE_COLOR }, \
00068     { "checked_selbgcolor_i.a", TAFF_ATTRTYPE_UCHAR }, \
00069     { "checked_selbgcolor_i.r", TAFF_ATTRTYPE_UCHAR }, \
00070     { "checked_selbgcolor_i.g", TAFF_ATTRTYPE_UCHAR }, \
00071     { "checked_selbgcolor_i.b", TAFF_ATTRTYPE_UCHAR }, \
00072     { "checked_bgimage", TAFF_ATTRTYPE_STRING }, \
00073     { "checked_bgimage.path", TAFF_ATTRTYPE_STRING }, \
00074     { "checked_bgimage.name", TAFF_ATTRTYPE_STRING }, \
00075     { "checked_selbgimage", TAFF_ATTRTYPE_STRING }, \
00076     { "checked_selbgimage.path", TAFF_ATTRTYPE_STRING }, \
00077     { "checked_selbgimage.name", TAFF_ATTRTYPE_STRING }, \
00078     { "checked_bgimage_p", TAFF_ATTRTYPE_STRING }, \
00079     { "checked_bgimage_p.path", TAFF_ATTRTYPE_STRING }, \
00080     { "checked_bgimage_p.name", TAFF_ATTRTYPE_STRING }, \
00081     { "checked_selbgimage_p", TAFF_ATTRTYPE_STRING }, \
00082     { "checked_selbgimage_p.path", TAFF_ATTRTYPE_STRING }, \
00083     { "checked_selbgimage_p.name", TAFF_ATTRTYPE_STRING }, \
00084     { "checked_bgimage_i", TAFF_ATTRTYPE_STRING }, \
00085     { "checked_bgimage_i.path", TAFF_ATTRTYPE_STRING }, \
00086     { "checked_bgimage_i.name", TAFF_ATTRTYPE_STRING }, \
00087     { "checked_selbgimage_i", TAFF_ATTRTYPE_STRING }, \
00088     { "checked_selbgimage_i.path", TAFF_ATTRTYPE_STRING }, \
00089     { "checked_selbgimage_i.name", TAFF_ATTRTYPE_STRING }, \
00090     { "checked", TAFF_ATTRTYPE_BOOL }
00091 
00092     #define MMSGUI_CHECKBOXWIDGET_ATTR_IDS \
00093         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor, \
00094         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_a, \
00095         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_r, \
00096         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_g, \
00097         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_b, \
00098         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor, \
00099         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_a, \
00100         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_r, \
00101         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_g, \
00102         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_b, \
00103         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_p, \
00104         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_p_a, \
00105         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_p_r, \
00106         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_p_g, \
00107         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_p_b, \
00108         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_p, \
00109         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_p_a, \
00110         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_p_r, \
00111         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_p_g, \
00112         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_p_b, \
00113         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_i, \
00114         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_i_a, \
00115         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_i_r, \
00116         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_i_g, \
00117         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgcolor_i_b, \
00118         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_i, \
00119         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_i_a, \
00120         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_i_r, \
00121         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_i_g, \
00122         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgcolor_i_b, \
00123         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage, \
00124         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_path, \
00125         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_name, \
00126         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage, \
00127         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_path, \
00128         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_name, \
00129         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_p, \
00130         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_p_path, \
00131         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_p_name, \
00132         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_p, \
00133         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_p_path, \
00134         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_p_name, \
00135         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_i, \
00136         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_i_path, \
00137         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_bgimage_i_name, \
00138         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_i, \
00139         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_i_path, \
00140         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked_selbgimage_i_name, \
00141         MMSGUI_CHECKBOXWIDGET_ATTR_IDS_checked
00142 
00143     #define MMSGUI_CHECKBOXWIDGET_ATTR_INIT { \
00144         MMSGUI_BASE_ATTR_ATTRDESC, \
00145         MMSGUI_BORDER_ATTR_ATTRDESC, \
00146         MMSGUI_WIDGET_ATTR_ATTRDESC, \
00147         MMSGUI_CHECKBOXWIDGET_ATTR_ATTRDESC, \
00148         { NULL, TAFF_ATTRTYPE_NONE } \
00149     }
00150 
00151     typedef enum {
00152         MMSGUI_BASE_ATTR_IDS,
00153         MMSGUI_BORDER_ATTR_IDS,
00154         MMSGUI_WIDGET_ATTR_IDS,
00155         MMSGUI_CHECKBOXWIDGET_ATTR_IDS
00156     } ids;
00157 }
00158 
00159 extern TAFF_ATTRDESC MMSGUI_CHECKBOXWIDGET_ATTR_I[];
00160 
00161 
00162 //! A data access class for the checkbox widget.
00163 /*!
00164 This class is the base for the MMSCheckBoxWidget class.
00165 With this data store you have access to all changeable widget attributes.
00166 It is also one of the base classes for MMSThemeManager and MMSDialogManager
00167 which are main features of the MMSGUI.
00168 \note This class will be internally used by class MMSCheckBoxWidget.
00169 \author Jens Schneider
00170 */
00171 class MMSCheckBoxWidgetClass {
00172     private:
00173         //! name of the theme class
00174         string          className;
00175 
00176         struct {
00177             //! is checked_bgcolor set?
00178             bool            ischecked_bgcolor;
00179 
00180             //! background color if the widget is checked and not selected
00181             MMSFBColor      checked_bgcolor;
00182 
00183             //! is checked_selbgcolor set?
00184             bool            ischecked_selbgcolor;
00185 
00186             //! background color if the widget is checked and selected
00187             MMSFBColor      checked_selbgcolor;
00188 
00189             //! is pressed checked_bgcolor set?
00190             bool            ischecked_bgcolor_p;
00191 
00192             //! pressed background color if the widget is checked and not selected
00193             MMSFBColor      checked_bgcolor_p;
00194 
00195             //! is pressed selbgcolor set?
00196             bool            ischecked_selbgcolor_p;
00197 
00198             //! pressed background color if the widget is checked and selected
00199             MMSFBColor      checked_selbgcolor_p;
00200 
00201             //! is inactive checked_bgcolor set?
00202             bool            ischecked_bgcolor_i;
00203 
00204             //! inactive background color if the widget is checked and not selected
00205             MMSFBColor      checked_bgcolor_i;
00206 
00207             //! is inactive checked_selbgcolor set?
00208             bool            ischecked_selbgcolor_i;
00209 
00210             //! inactive background color if the widget is checked and selected
00211             MMSFBColor      checked_selbgcolor_i;
00212 
00213             //! is checked_bgimagepath set?
00214             bool            ischecked_bgimagepath;
00215 
00216             //! is checked_bgimagename set?
00217             bool            ischecked_bgimagename;
00218 
00219             //! is checked_selbgimagepath set?
00220             bool            ischecked_selbgimagepath;
00221 
00222             //! is checked_selbgimagename set?
00223             bool            ischecked_selbgimagename;
00224 
00225             //! is pressed checked_bgimagepath set?
00226             bool            ischecked_bgimagepath_p;
00227 
00228             //! is pressed checked_bgimagename set?
00229             bool            ischecked_bgimagename_p;
00230 
00231             //! is pressed checked_selbgimagepath set?
00232             bool            ischecked_selbgimagepath_p;
00233 
00234             //! is pressed checked_selbgimagename set?
00235             bool            ischecked_selbgimagename_p;
00236 
00237             //! is inactive checked_bgimagepath set?
00238             bool            ischecked_bgimagepath_i;
00239 
00240             //! is inactive checked_bgimagename set?
00241             bool            ischecked_bgimagename_i;
00242 
00243             //! is inactive checked_selbgimagepath set?
00244             bool            ischecked_selbgimagepath_i;
00245 
00246             //! is inactive checked_selbgimagename set?
00247             bool            ischecked_selbgimagename_i;
00248 
00249             //! is the checked flag set?
00250             bool            ischecked;
00251 
00252             //! widget's checked state true/false
00253             bool            checked;
00254         } id;
00255 
00256         struct {
00257             //! path to the background image if the widget is checked and not selected
00258             string          *checked_bgimagepath;
00259 
00260             //! background image filename if the widget is checked and not selected
00261             string          *checked_bgimagename;
00262 
00263             //! path to the background image if the widget is checked and selected
00264             string          *checked_selbgimagepath;
00265 
00266             //! background image filename if the widget is checked and selected
00267             string          *checked_selbgimagename;
00268 
00269             //! path to the pressed background image if the widget is checked and not selected
00270             string          *checked_bgimagepath_p;
00271 
00272             //! pressed background image filename if the widget is checked and not selected
00273             string          *checked_bgimagename_p;
00274 
00275             //! path to the pressed background image if the widget is checked and selected
00276             string          *checked_selbgimagepath_p;
00277 
00278             //! pressed background image filename if the widget is checked and selected
00279             string          *checked_selbgimagename_p;
00280 
00281             //! path to the inactive background image if the widget is checked and not selected
00282             string          *checked_bgimagepath_i;
00283 
00284             //! inactive background image filename if the widget is checked and not selected
00285             string          *checked_bgimagename_i;
00286 
00287             //! path to the inactive background image if the widget is checked and selected
00288             string          *checked_selbgimagepath_i;
00289 
00290             //! inactive background image filename if the widget is checked and selected
00291             string          *checked_selbgimagename_i;
00292         } ed;
00293 
00294         /* init routines */
00295         void initCheckedBgColor();
00296         void initCheckedSelBgColor();
00297         void initCheckedBgColor_p();
00298         void initCheckedSelBgColor_p();
00299         void initCheckedBgColor_i();
00300         void initCheckedSelBgColor_i();
00301 
00302         void initCheckedBgImagePath();
00303         void initCheckedBgImageName();
00304         void initCheckedSelBgImagePath();
00305         void initCheckedSelBgImageName();
00306         void initCheckedBgImagePath_p();
00307         void initCheckedBgImageName_p();
00308         void initCheckedSelBgImagePath_p();
00309         void initCheckedSelBgImageName_p();
00310         void initCheckedBgImagePath_i();
00311         void initCheckedBgImageName_i();
00312         void initCheckedSelBgImagePath_i();
00313         void initCheckedSelBgImageName_i();
00314 
00315         void initChecked();
00316 
00317         /* free routines */
00318         void freeCheckedBgColor();
00319         void freeCheckedSelBgColor();
00320         void freeCheckedBgColor_p();
00321         void freeCheckedSelBgColor_p();
00322         void freeCheckedBgColor_i();
00323         void freeCheckedSelBgColor_i();
00324 
00325         void freeCheckedBgImagePath();
00326         void freeCheckedBgImageName();
00327         void freeCheckedSelBgImagePath();
00328         void freeCheckedSelBgImageName();
00329         void freeCheckedBgImagePath_p();
00330         void freeCheckedBgImageName_p();
00331         void freeCheckedSelBgImagePath_p();
00332         void freeCheckedSelBgImageName_p();
00333         void freeCheckedBgImagePath_i();
00334         void freeCheckedBgImageName_i();
00335         void freeCheckedSelBgImagePath_i();
00336         void freeCheckedSelBgImageName_i();
00337 
00338         void freeChecked();
00339 
00340         //! Read and set all attributes from the given TAFF buffer.
00341         /*!
00342         \param tafff        pointer to the TAFF buffer
00343         \param prefix       optional, prefix to all attribute names (<prefix><attrname>=<attrvalue>)
00344         \param path         optional, path needed for empty path values from the TAFF buffer
00345         \param reset_paths  optional, should reset all path attributes?
00346         */
00347         void setAttributesFromTAFF(MMSTaffFile *tafff, string *prefix = NULL, string *path = NULL,
00348                                    bool reset_paths = false);
00349 
00350     public:
00351         //! stores base widget attributes
00352         MMSWidgetClass widgetClass;
00353 
00354         //! Constructor of class MMSCheckBoxWidgetClass.
00355         MMSCheckBoxWidgetClass();
00356 
00357         //! Destructor of class MMSCheckBoxWidgetClass.
00358         ~MMSCheckBoxWidgetClass();
00359 
00360         //! operator=
00361         MMSCheckBoxWidgetClass &operator=(const MMSCheckBoxWidgetClass &c);
00362 
00363         //! Mark all attributes as not set.
00364         void unsetAll();
00365 
00366         //! Set the name of the theme class.
00367         /*!
00368         \param classname  name of the class
00369         */
00370         void setClassName(string className);
00371 
00372         //! Get the name of the theme class.
00373         /*!
00374         \return name of the class
00375         */
00376         string getClassName();
00377 
00378         //! Check if the background color is set. This color will be used for the checked, unselected widget.
00379         bool isCheckedBgColor();
00380 
00381         //! Mark the checked_bgcolor as not set.
00382         void unsetCheckedBgColor();
00383 
00384         //! Set the background color which is used to draw the checked, unselected widget.
00385         /*!
00386         \param checked_bgcolor  color for checked, unselected background
00387         */
00388         void setCheckedBgColor(const MMSFBColor &checked_bgcolor);
00389 
00390         //! Get the background color which is used to draw the checked, unselected widget.
00391         /*!
00392         \param checked_bgcolor  background color
00393         \return true if set
00394         */
00395         bool getCheckedBgColor(MMSFBColor &checked_bgcolor);
00396 
00397         //! Check if the background color is set. This color will be used for the checked, selected widget.
00398         bool isCheckedSelBgColor();
00399 
00400         //! Mark the checked_selbgcolor as not set.
00401         void unsetCheckedSelBgColor();
00402 
00403         //! Set the background color which is used to draw the checked, selected widget.
00404         /*!
00405         \param checked_selbgcolor  color for selected background
00406         */
00407         void setCheckedSelBgColor(const MMSFBColor &checked_selbgcolor);
00408 
00409         //! Get the background color which is used to draw the checked, selected widget.
00410         /*!
00411         \param checked_selbgcolor  background color
00412         \return true if set
00413         */
00414         bool getCheckedSelBgColor(MMSFBColor &checked_selbgcolor);
00415 
00416         //! Check if the pressed background color is set. This color will be used for the checked, unselected widget.
00417         bool isCheckedBgColor_p();
00418 
00419         //! Mark the pressed checked_bgcolor as not set.
00420         void unsetCheckedBgColor_p();
00421 
00422         //! Set the pressed background color which is used to draw the checked, unselected widget.
00423         /*!
00424         \param checked_bgcolor_p  pressed background color
00425         */
00426         void setCheckedBgColor_p(const MMSFBColor &checked_bgcolor_p);
00427 
00428         //! Get the pressed background color which is used to draw the checked, unselected widget.
00429         /*!
00430         \param checked_bgcolor_p  pressed background color
00431         \return true if set
00432         */
00433         bool getCheckedBgColor_p(MMSFBColor &checked_bgcolor_p);
00434 
00435         //! Check if the pressed background color is set. This color will be used for the checked, selected widget.
00436         bool isCheckedSelBgColor_p();
00437 
00438         //! Mark the pressed checked_selbgcolor as not set.
00439         void unsetCheckedSelBgColor_p();
00440 
00441         //! Set the pressed background color which is used to draw the checked, selected widget.
00442         /*!
00443         \param checked_selbgcolor_p  pressed color for selected background
00444         */
00445         void setCheckedSelBgColor_p(const MMSFBColor &checked_selbgcolor_p);
00446 
00447         //! Get the pressed background color which is used to draw the checked, selected widget.
00448         /*!
00449         \param checked_selbgcolor_p  pressed background color
00450         \return true if set
00451         */
00452         bool getCheckedSelBgColor_p(MMSFBColor &checked_selbgcolor_p);
00453 
00454         //! Check if the inactive background color is set. This color will be used for the checked, unselected widget.
00455         bool isCheckedBgColor_i();
00456 
00457         //! Mark the inactive checked_bgcolor as not set.
00458         void unsetCheckedBgColor_i();
00459 
00460         //! Set the inactive background color which is used to draw the checked, unselected widget.
00461         /*!
00462         \param checked_bgcolor_i  color for inactive unselected background
00463         */
00464         void setCheckedBgColor_i(const MMSFBColor &checked_bgcolor_i);
00465 
00466         //! Get the inactive background color which is used to draw the checked, unselected widget.
00467         /*!
00468         \param checked_bgcolor_i  inactive background color
00469         \return true if set
00470         */
00471         bool getCheckedBgColor_i(MMSFBColor &checked_bgcolor_i);
00472 
00473         //! Check if the inactive background color is set. This color will be used for the checked, selected widget.
00474         bool isCheckedSelBgColor_i();
00475 
00476         //! Mark the inactive checked_selbgcolor as not set.
00477         void unsetCheckedSelBgColor_i();
00478 
00479         //! Set the inactive background color which is used to draw the checked, selected widget.
00480         /*!
00481         \param checked_selbgcolor_i  color for inactive selected background
00482         */
00483         void setCheckedSelBgColor_i(const MMSFBColor &checked_selbgcolor_i);
00484 
00485         //! Get the inactive background color which is used to draw the checked, selected widget.
00486         /*!
00487         \param checked_selbgcolor_i  inactive background color
00488         \return true if set
00489         */
00490         bool getCheckedSelBgColor_i(MMSFBColor &checked_selbgcolor_i);
00491 
00492         //! Check if the imagepath for background is set. This path will be used for the checked, unselected widget.
00493         bool isCheckedBgImagePath();
00494 
00495         //! Mark the checked_bgimagepath as not set.
00496         void unsetCheckedBgImagePath();
00497 
00498         //! Set the imagepath for background which is used to draw the checked, unselected widget.
00499         /*!
00500         \param checked_bgimagepath  path to unselected background image
00501         */
00502         void setCheckedBgImagePath(const string &checked_bgimagepath);
00503 
00504         //! Get the imagepath for background which is used to draw the checked, unselected widget.
00505         /*!
00506         \param checked_bgimagepath  path to unselected background image
00507         \return true if set
00508         */
00509         bool getCheckedBgImagePath(string &checked_bgimagepath);
00510 
00511         //! Check if the imagename for background is set. This name will be used for the checked, unselected widget.
00512         bool isCheckedBgImageName();
00513 
00514         //! Mark the checked_bgimagename as not set.
00515         void unsetCheckedBgImageName();
00516 
00517         //! Set the imagename for background which is used to draw the checked, unselected widget.
00518         /*!
00519         \param checked_bgimagename  name of the unselected background image
00520         */
00521         void setCheckedBgImageName(const string &checked_bgimagename);
00522 
00523         //! Get the imagename for background which is used to draw the checked, unselected widget.
00524         /*!
00525         \param checked_bgimagename  name of the unselected background image
00526         \return true if set
00527         */
00528         bool getCheckedBgImageName(string &checked_bgimagename);
00529 
00530         //! Check if the selimagepath for background is set. This path will be used for the checked, selected widget.
00531         bool isCheckedSelBgImagePath();
00532 
00533         //! Mark the checked_selbgimagepath as not set.
00534         void unsetCheckedSelBgImagePath();
00535 
00536         //! Set the selimagepath for background which is used to draw the checked, selected widget.
00537         /*!
00538         \param checked_selbgimagepath  path to selected background image
00539         */
00540         void setCheckedSelBgImagePath(const string &checked_selbgimagepath);
00541 
00542         //! Get the selimagepath for background which is used to draw the checked, selected widget.
00543         /*!
00544         \param checked_selbgimagepath  path to the selected background image
00545         \return true if set
00546         */
00547         bool getCheckedSelBgImagePath(string &checked_selbgimagepath);
00548 
00549         //! Check if the selimagename for background is set. This name will be used for the checked, selected widget.
00550         bool isCheckedSelBgImageName();
00551 
00552         //! Mark the checked_selbgimagename as not set.
00553         void unsetCheckedSelBgImageName();
00554 
00555         //! Set the selimagename for background which is used to draw the checked, selected widget.
00556         /*!
00557         \param checked_selbgimagename  name of the selected background image
00558         */
00559         void setCheckedSelBgImageName(const string &checked_selbgimagename);
00560 
00561         //! Get the selimagename for background which is used to draw the checked, selected widget.
00562         /*!
00563         \param checked_selbgimagename  name of the selected background image
00564         \return true if set
00565         */
00566         bool getCheckedSelBgImageName(string &checked_selbgimagename);
00567 
00568 
00569         //! Check if the pressed imagepath for background is set. This path will be used for the checked, unselected widget.
00570         bool isCheckedBgImagePath_p();
00571 
00572         //! Mark the pressed checked_bgimagepath as not set.
00573         void unsetCheckedBgImagePath_p();
00574 
00575         //! Set the pressed imagepath for background which is used to draw the checked, unselected widget.
00576         /*!
00577         \param checked_bgimagepath_p  path to pressed & unselected background image
00578         */
00579         void setCheckedBgImagePath_p(const string &checked_bgimagepath_p);
00580 
00581         //! Get the pressed imagepath for background which is used to draw the checked, unselected widget.
00582         /*!
00583         \param checked_bgimagepath_p  path to pressed & unselected background image
00584         \return true if set
00585         */
00586         bool getCheckedBgImagePath_p(string &checked_bgimagepath_p);
00587 
00588         //! Check if the pressed imagename for background is set. This name will be used for the checked, unselected widget.
00589         bool isCheckedBgImageName_p();
00590 
00591         //! Mark the pressed checked_bgimagename as not set.
00592         void unsetCheckedBgImageName_p();
00593 
00594         //! Set the pressed imagename for background which is used to draw the checked, unselected widget.
00595         /*!
00596         \param checked_bgimagename_p  name of the pressed & unselected background image
00597         */
00598         void setCheckedBgImageName_p(const string &checked_bgimagename_p);
00599 
00600         //! Get the pressed imagename for background which is used to draw the checked, unselected widget.
00601         /*!
00602         \param checked_bgimagename_p  name of the pressed & unselected background image
00603         \return true if set
00604         */
00605         bool getCheckedBgImageName_p(string &checked_bgimagename_p);
00606 
00607         //! Check if the pressed selimagepath for background is set. This path will be used for the checked, selected widget.
00608         bool isCheckedSelBgImagePath_p();
00609 
00610         //! Mark the pressed checked_selbgimagepath as not set.
00611         void unsetCheckedSelBgImagePath_p();
00612 
00613         //! Set the pressed selimagepath for background which is used to draw the checked, selected widget.
00614         /*!
00615         \param checked_selbgimagepath_p  path to pressed & selected background image
00616         */
00617         void setCheckedSelBgImagePath_p(const string &checked_selbgimagepath_p);
00618 
00619         //! Get the pressed selimagepath for background which is used to draw the checked, selected widget.
00620         /*!
00621         \param checked_selbgimagepath_p  path to the pressed & selected background image
00622         \return true if set
00623         */
00624         bool getCheckedSelBgImagePath_p(string &checked_selbgimagepath_p);
00625 
00626         //! Check if the pressed selimagename for background is set. This name will be used for the checked, selected widget.
00627         bool isCheckedSelBgImageName_p();
00628 
00629         //! Mark the pressed checked_selbgimagename as not set.
00630         void unsetCheckedSelBgImageName_p();
00631 
00632         //! Set the pressed selimagename for background which is used to draw the checked, selected widget.
00633         /*!
00634         \param checked_selbgimagename_p  name of the pressed & selected background image
00635         */
00636         void setCheckedSelBgImageName_p(const string &checked_selbgimagename_p);
00637 
00638         //! Get the pressed selimagename for background which is used to draw the checked, selected widget.
00639         /*!
00640         \param checked_selbgimagename_p  name of the pressed & selected background image
00641         \return true if set
00642         */
00643         bool getCheckedSelBgImageName_p(string &checked_selbgimagename_p);
00644 
00645         //! Check if the inactive imagepath for background is set. This path will be used for the checked, unselected widget.
00646         bool isCheckedBgImagePath_i();
00647 
00648         //! Mark the inactive checked_bgimagepath as not set.
00649         void unsetCheckedBgImagePath_i();
00650 
00651         //! Set the imagepath for inactive background which is used to draw the checked, unselected widget.
00652         /*!
00653         \param checked_bgimagepath_i  path to inactive unselected background image
00654         */
00655         void setCheckedBgImagePath_i(const string &checked_bgimagepath_i);
00656 
00657         //! Get the imagepath for inactive background which is used to draw the checked, unselected widget.
00658         /*!
00659         \param checked_bgimagepath_i  path to the inactive unselected background image
00660         \return true if set
00661         */
00662         bool getCheckedBgImagePath_i(string &checked_bgimagepath_i);
00663 
00664         //! Check if the imagename for inactive background is set. This name will be used for the checked, unselected widget.
00665         bool isCheckedBgImageName_i();
00666 
00667         //! Mark the inactive checked_bgimagename as not set.
00668         void unsetCheckedBgImageName_i();
00669 
00670         //! Set the imagename for inactive background which is used to draw the checked, unselected widget.
00671         /*!
00672         \param checked_bgimagename_i  name of the inactive unselected background image
00673         */
00674         void setCheckedBgImageName_i(const string &checked_bgimagename_i);
00675 
00676         //! Get the imagename for inactive background which is used to draw the checked, unselected widget.
00677         /*!
00678         \param checked_bgimagename_i  name of the inactive unselected background image
00679         \return true if set
00680         */
00681         bool getCheckedBgImageName_i(string &checked_bgimagename_i);
00682 
00683         //! Check if the selimagepath for inactive background is set. This path will be used for the checked, selected widget.
00684         bool isCheckedSelBgImagePath_i();
00685 
00686         //! Mark the inactive checked_selbgimagepath as not set.
00687         void unsetCheckedSelBgImagePath_i();
00688 
00689         //! Set the selimagepath for inactive background which is used to draw the checked, selected widget.
00690         /*!
00691         \param checked_selbgimagepath_i  path to inactive selected background image
00692         */
00693         void setCheckedSelBgImagePath_i(const string &checked_selbgimagepath_i);
00694 
00695         //! Get the selimagepath for inactive background which is used to draw the checked, selected widget.
00696         /*!
00697         \param checked_selbgimagepath_i  path to the inactive selected background image
00698         \return true if set
00699         */
00700         bool getCheckedSelBgImagePath_i(string &checked_selbgimagepath_i);
00701 
00702         //! Check if the selimagename for inactive background is set. This name will be used for the checked, selected widget.
00703         bool isCheckedSelBgImageName_i();
00704 
00705         //! Mark the inactive checked_selbgimagename as not set.
00706         void unsetCheckedSelBgImageName_i();
00707 
00708         //! Set the selimagename for inactive background which is used to draw the checked, selected widget.
00709         /*!
00710         \param checked_selbgimagename  name of the inactive selected background image
00711         */
00712         void setCheckedSelBgImageName_i(const string &checked_selbgimagename_i);
00713 
00714         //! Get the selimagename for inactive background which is used to draw the checked, selected widget.
00715         /*!
00716         \param checked_selbgimagename_i  name of the inactive selected background image
00717         \return true if set
00718         */
00719         bool getCheckedSelBgImageName_i(string &checked_selbgimagename_i);
00720 
00721         //! Check if the checked flag is set.
00722         bool isChecked();
00723 
00724         //! Mark the checked flag as not set.
00725         void unsetChecked();
00726 
00727         //! Set the checked flag.
00728         /*!
00729         \param checked  the widget will be displayed as checked if set to true
00730         */
00731         void setChecked(bool checked);
00732 
00733         //! Get the checked flag.
00734         /*!
00735         \param checked  checked true or false
00736         \return true if set
00737         */
00738         bool getChecked(bool &checked);
00739 
00740 
00741 
00742     /* friends */
00743     friend class MMSThemeManager;
00744     friend class MMSDialogManager;
00745 };
00746 
00747 #endif /*MMSCHECKBOXWIDGETCLASS_H_*/

Generated by doxygen