Scribus
Open source desktop publishing at your fingertips
scinputdialog.h
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 
25 class ScInputDialog : public QDialog
26 {
27  Q_OBJECT
28 
29 public:
30  ScInputDialog( QWidget* parent = 0, const char* name = 0, bool modal = false);
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
A QInputDialog clone with ScrSpinBox widget.
Definition: scinputdialog.h:25
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21