IntelliPhoto 0.7

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
15 class IntelliInputDialog : public QDialog
16 {
17 Q_OBJECT
18 public:
29 IntelliInputDialog(QString Title = nullptr, QString Label = nullptr, int value = 5, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool* ok = nullptr);
30
42 static int getInt(QString Title = nullptr, QString Label = nullptr, int value = 5, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool* ok = nullptr);
43
44 public slots:
48 void slotCloseEvent();
49
53 void slotEingabe();
54
55 private:
65 void createInputBox(QString Title = nullptr, QString Label = nullptr, int value = 5, int minValue = -2147483647, int maxValue = 2147483647, int step = 1);
66
70 void createConnections();
71
75 void setInputBoxStyle();
76
80 int valueInt;
81
85 QGridLayout* Layout;
86
90 QDialogButtonBox* ButtonBox;
91
95 bool* notClosed;
96
100 const QSize Linesize = QSize(150,20);
101
105 const QSize Buttonsize = QSize(72,20);
106
110 QLabel* InputLabel;
111
115 QSpinBox* Input;
116
120 QPushButton* okButton;
121
125 QPushButton* cancelButton;
126 };
127
128 #endif // INTELLIINPUTDIALOG_H
IntelliInputDialog::slotCloseEvent
void slotCloseEvent()
slotCloseEvent is a slot for catching the close Event.
Definition: IntelliInputDialog.cpp:74
IntelliInputDialog
The IntelliInputDialog class is a customized Input Dialog to get Integers.
Definition: IntelliInputDialog.h:15
IntelliInputDialog::IntelliInputDialog
IntelliInputDialog(QString Title=nullptr, QString Label=nullptr, int value=5, int minValue=-2147483647, int maxValue=2147483647, int step=1, bool *ok=nullptr)
IntelliInputDialog is the baisc constructor to for the InputDialog.
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)
getInt is a static funktion ´, which creates an Input Dialog and gets an Integer.
Definition: IntelliInputDialog.cpp:16
IntelliInputDialog::slotEingabe
void slotEingabe()
slotEingabe is a slot for catching the Input Event.
Definition: IntelliInputDialog.cpp:78