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 / smsccombobox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-11-06  |  1.2 KB  |  49 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SMSCCOMBOBOX_H
  8. #define SMSCCOMBOBOX_H
  9.  
  10. #include "sccombobox.h"
  11.  
  12.  
  13. class SMScComboBox  : public ScComboBox
  14. {
  15.     Q_OBJECT
  16. public:
  17.     SMScComboBox(QWidget *parent);
  18.     ~SMScComboBox() {};
  19.  
  20.     void setCurrentItem(int i);
  21.     void setCurrentItem(int i, bool isParentValue);
  22.     
  23.     // Set the current index of a combobox according to the value
  24.     // stored into the data associated to items. Thus, allowing 
  25.     // separation between presentation and data.IsnΓÇÖt that cool? ;-)
  26.     void setCurrentItemByData(int i);
  27.     void setCurrentItemByData(int i, bool isParentValue);
  28.     void setCurrentItemByData(double d);
  29.     void setCurrentItemByData(double d, bool isParentValue);
  30.     
  31.     int getItemIndexForData(int i);
  32.     int getItemIndexForData(double d);
  33.     
  34.     void setParentItem(int i);
  35.  
  36.     bool useParentValue();
  37.  
  38. private:
  39.     bool   hasParent_;
  40.     bool   useParentValue_;
  41.     int    pItem_;
  42.     void setFont(bool wantBold);
  43.  
  44. private slots:
  45.     void currentChanged();
  46. };
  47.  
  48. #endif
  49.