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.
8
#ifndef SCINPUTDIALOG_H
9
#define SCINPUTDIALOG_H
22
/*! \brief A QInputDialog clone with ScrSpinBox widget.
23
\author Petr Vanek <petr@scribus.info>
25
class ScInputDialog : public QDialog
30
ScInputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
33
virtual void changeEvent(QEvent *e);
36
ScrSpinBox* entrySpin;
37
QPushButton* buttonOk;
38
QPushButton* buttonCancel;
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 );
46
QVBoxLayout* ScInputDialogLayout;
47
QHBoxLayout* labelEntryLayout;
48
QHBoxLayout* buttonLayout;
51
virtual void languageChange();
54
#endif // SCINPUTDIALOG_H