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 / pageselector.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-03-03  |  1.5 KB  |  81 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 PAGESELECTOR_H
  8. #define PAGESELECTOR_H
  9.  
  10. #include <QWidget>
  11.  
  12. class QEvent;
  13. class QHBoxLayout;
  14. class QLabel;
  15. class QLineEdit;
  16. class QPushButton;
  17. class QToolButton;
  18. class QIntValidator;
  19.  
  20. #include "scribusapi.h"
  21. #include "styleoptions.h"
  22.  
  23. class ScComboBox;
  24.  
  25. class SCRIBUS_API PageSelector : public QWidget
  26. {
  27.     Q_OBJECT
  28.  
  29. public:
  30.     PageSelector( QWidget* parent, int maxPg );
  31.     ~PageSelector() {};
  32.     
  33.     virtual void changeEvent(QEvent *e);
  34.     
  35.     bool hasFocus();
  36.     void focusPolicy(Qt::FocusPolicy policy);
  37.     void setFont ( const QFont & );
  38.  
  39. #if OPTION_USE_QTOOLBUTTON
  40.     QToolButton* Start;
  41.     QToolButton* Back;
  42.     QToolButton* Forward;
  43.     QToolButton* Last;
  44. #else
  45.     QPushButton* Start;
  46.     QPushButton* Back;
  47.     QPushButton* Forward;
  48.     QPushButton* Last;
  49. #endif
  50.     
  51.     ScComboBox* PageCombo;
  52.     QIntValidator *m_validator;
  53.     int LastPG;
  54.     int APage;
  55.  
  56. public slots:
  57.     virtual void GotoPg(int);
  58.     virtual void setMaximum(int);
  59.     void languageChange();
  60.     void clearFocus();
  61.  
  62. private slots:
  63.     virtual void GotoPgE(int);
  64.     virtual void GotoPage();
  65.     virtual void ToStart();
  66.     virtual void ToEnd();
  67.     virtual void goBk();
  68.     virtual void goFw();
  69.  
  70. protected:
  71.     QHBoxLayout* PageSelectorLayout;
  72.     QLabel *PageCount;
  73.     QString PageCountString;
  74.  
  75. signals:
  76.     void GotoPage(int);
  77.  
  78. };
  79.  
  80. #endif // PAGESELECTOR_H
  81.