Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scinputdialog.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 
00008 #ifndef SCINPUTDIALOG_H
00009 #define SCINPUTDIALOG_H
00010 
00011 #include <qvariant.h>
00012 #include <qpixmap.h>
00013 #include <qdialog.h>
00014 
00015 class QHBoxLayout;
00016 class QVBoxLayout;
00017 class QGridLayout;
00018 class MSpinBox;
00019 class QLabel;
00020 class QPushButton;
00021 
00022 
00026 class ScInputDialog : public QDialog
00027 {
00028        Q_OBJECT
00029 
00030 public:
00031        ScInputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00032        ~ScInputDialog(){};
00033 
00034        QLabel* entryLabel;
00035        MSpinBox* entrySpin;
00036        QPushButton* buttonOk;
00037        QPushButton* buttonCancel;
00038 
00039        static double getDouble( const QString &caption, const QString &label, double num = 0,
00040                                                   double from = -2147483647, double to = 2147483647,
00041                                                   int decimals = 1, QString suffix = "", bool *ok = 0,
00042                                                   QWidget *parent = 0, const char *name = 0 );
00043 
00044 protected:
00045        QGridLayout* ScInputDialogLayout;
00046        QVBoxLayout* mainLayout;
00047        QHBoxLayout* labelEntryLayout;
00048        QHBoxLayout* buttonLayout;
00049 
00050 protected slots:
00051        virtual void languageChange();
00052 };
00053 
00054 #endif // SCINPUTDIALOG_H