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 / designer / scrspinboxplugin.h next >
Encoding:
C/C++ Source or Header  |  2007-07-24  |  1.1 KB  |  43 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 SCRSPINBOXPLUGIN_H
  8. #define SCRSPINBOXPLUGIN_H
  9.  
  10. #include <QDesignerContainerExtension>
  11. #include <QDesignerCustomWidgetInterface>
  12.  
  13. class QDesignerFormEditorInterface;
  14.  
  15.  
  16. /*! \brief A ScrSpinBox plugin for Qt designer
  17. \author Petr Vanek <petr@scribus.info>
  18. */
  19. class ScrSpinBoxPlugin : public QObject, public QDesignerCustomWidgetInterface
  20. {
  21.     Q_OBJECT
  22.     Q_INTERFACES(QDesignerCustomWidgetInterface)
  23. public:
  24.     ScrSpinBoxPlugin(QObject* = 0);
  25.     bool isContainer() const;
  26.     bool isInitialized() const;
  27.     QIcon icon() const;
  28.     QString codeTemplate() const;
  29.     QString domXml() const;
  30.     QString group() const;
  31.     QString includeFile() const;
  32.     QString name() const;
  33.     QString toolTip() const;
  34.     QString whatsThis() const;
  35.     QWidget* createWidget(QWidget*);
  36.     void initialize(QDesignerFormEditorInterface*);
  37. private:
  38.     bool initialized;
  39. };
  40.  
  41. #endif
  42.  
  43.