~ubuntu-branches/ubuntu/trusty/scribus-ng/trusty

« back to all changes in this revision

Viewing changes to scribus/scinputdialog.h

  • Committer: Package Import Robot
  • Author(s): Oleksandr Moskalenko
  • Date: 2012-02-15 15:57:12 UTC
  • mfrom: (4.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20120215155712-biimoc8o875jht80
Tags: 1.4.0.dfsg+r17300-1
* Prepare a dummy transitional package to converge on the 1.4.0 release.
* debian/NEWS: update the news.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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