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 / scinputdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-10-10  |  1.3 KB  |  55 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.  
  8. #ifndef SCINPUTDIALOG_H
  9. #define SCINPUTDIALOG_H
  10.  
  11. #include <QDialog>
  12.  
  13. class QEvent;
  14. class QHBoxLayout;
  15. class QLabel;
  16. class QPushButton;
  17. class QVBoxLayout;
  18.  
  19. class ScrSpinBox;
  20.  
  21.  
  22. /*! \brief A QInputDialog clone with ScrSpinBox widget.
  23. \author Petr Vanek <petr@scribus.info>
  24. */
  25. class ScInputDialog : public QDialog
  26. {
  27.     Q_OBJECT
  28.  
  29. public:
  30.     ScInputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
  31.     ~ScInputDialog(){};
  32.     
  33.     virtual void changeEvent(QEvent *e);
  34.  
  35.     QLabel* entryLabel;
  36.     ScrSpinBox* entrySpin;
  37.     QPushButton* buttonOk;
  38.     QPushButton* buttonCancel;
  39.  
  40.     static double getDouble( const QString &caption, const QString &label, double num = 0,
  41.                              double from = -2147483647, double to = 2147483647,
  42.                              int decimals = 1, QString suffix = "", bool *ok = 0,
  43.                              QWidget *parent = 0, const char *name = 0 );
  44.  
  45. protected:
  46.     QVBoxLayout* ScInputDialogLayout;
  47.     QHBoxLayout* labelEntryLayout;
  48.     QHBoxLayout* buttonLayout;
  49.  
  50. protected slots:
  51.     virtual void languageChange();
  52. };
  53.  
  54. #endif // SCINPUTDIALOG_H
  55.