home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smradiobutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-02-04  |  673 b   |  42 lines

  1. //
  2. // C++ Interface: smradiobutton
  3. //
  4. // Description: a clone of SMCheckBox
  5. //
  6. //
  7. // Author: Pierre Marchand <pierremarc@oep-h.com>, (C) 2009
  8. //
  9. // Copyright: See COPYING file that comes with this distribution
  10. //
  11. //
  12.  
  13. #ifndef SMRADIOBUTTON_H
  14. #define SMRADIOBUTTON_H
  15.  
  16. #include <QRadioButton>
  17.  
  18. class SMRadioButton : public QRadioButton
  19. {
  20.     public:
  21.         SMRadioButton(QWidget *parent);
  22.         ~SMRadioButton() {};
  23.  
  24.         void setChecked(bool val);
  25.         void setChecked(bool val, bool isParentVal);
  26.  
  27.         void setParentValue(bool);
  28.  
  29.         bool useParentValue();
  30.  
  31.     private:
  32.         bool   hasParent_;
  33.         bool   useParentValue_;
  34.         bool   pValue_;
  35.         void setFont(bool wantBold);
  36.  
  37. };
  38.  
  39.  
  40. #endif //SMRADIOBUTTON_H
  41.  
  42.