IntelliPhoto 0.6

IntelliInputDialog.h
Go to the documentation of this file.
1 #ifndef INTELLIINPUTDIALOG_H
2 #define INTELLIINPUTDIALOG_H
3
4 #include <QSize>
5 #include <QDialog>
6 #include <QLabel>
7 #include <QGridLayout>
8 #include <QDialogButtonBox>
9 #include <QPushButton>
10 #include <QSpinBox>
11
12 class IntelliInputDialog : public QDialog
13 {
14 Q_OBJECT
15 public:
16 IntelliInputDialog(QString Title = nullptr, QString Label = nullptr, int value = 5, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool* ok = nullptr);
17
18
19 static int getInt(QString Title = nullptr, QString Label = nullptr, int value = 5, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool* ok = nullptr);
20
21 public slots:
22 void slotCloseEvent();
23 void slotEingabe();
24
25 private:
26 void createInputBox(QString Title = nullptr, QString Label = nullptr, int value = 5, int minValue = -2147483647, int maxValue = 2147483647, int step = 1);
27 void createConnections();
28 void setInputBoxStyle();
29
30 int valueInt;
31
32 QGridLayout* Layout;
33 QDialogButtonBox* ButtonBox;
34 bool* notClosed;
35
36 const QSize Linesize = QSize(150,20);
37 const QSize Buttonsize = QSize(72,20);
38 QLabel* InputLabel;
39 QSpinBox* Input;
40 QPushButton* okButton;
41 QPushButton* cancelButton;
42 };
43
44 #endif // INTELLIINPUTDIALOG_H
IntelliInputDialog::slotCloseEvent
void slotCloseEvent()
Definition: IntelliInputDialog.cpp:74
IntelliInputDialog
Definition: IntelliInputDialog.h:12
IntelliInputDialog::IntelliInputDialog
IntelliInputDialog(QString Title=nullptr, QString Label=nullptr, int value=5, int minValue=-2147483647, int maxValue=2147483647, int step=1, bool *ok=nullptr)
Definition: IntelliInputDialog.cpp:3
IntelliInputDialog::getInt
static int getInt(QString Title=nullptr, QString Label=nullptr, int value=5, int minValue=-2147483647, int maxValue=2147483647, int step=1, bool *ok=nullptr)
Definition: IntelliInputDialog.cpp:16
IntelliInputDialog::slotEingabe
void slotEingabe()
Definition: IntelliInputDialog.cpp:78