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