17 */ |
17 */ |
18 |
18 |
19 #pragma once |
19 #pragma once |
20 #include <QDialog> |
20 #include <QDialog> |
21 #include "main.h" |
21 #include "main.h" |
22 #include "basics.h" |
|
23 |
22 |
24 class Ui_ExtProgPath; |
23 /* |
25 class QRadioButton; |
24 * Prompts the user for a path to an external program. |
26 class QCheckBox; |
25 */ |
27 class QProgressBar; |
26 class ExternalProgramPathDialog : public QDialog |
28 class QGroupBox; |
|
29 class QDialogButtonBox; |
|
30 class QDoubleSpinBox; |
|
31 class QPushButton; |
|
32 class QLineEdit; |
|
33 class QSpinBox; |
|
34 class RadioGroup; |
|
35 class QLabel; |
|
36 class QAbstractButton; |
|
37 class Ui_OverlayUI; |
|
38 class Ui_LDPathUI; |
|
39 class Ui_OpenProgressUI; |
|
40 |
|
41 // ============================================================================= |
|
42 class ExtProgPathPrompt : public QDialog |
|
43 { |
27 { |
44 Q_OBJECT |
28 Q_OBJECT |
45 |
29 |
46 public: |
30 public: |
47 explicit ExtProgPathPrompt (QString progName, QWidget* parent = 0, Qt::WindowFlags f = 0); |
31 explicit ExternalProgramPathDialog(QString programName, QWidget* parent = nullptr, Qt::WindowFlags f = 0); |
48 virtual ~ExtProgPathPrompt(); |
32 ~ExternalProgramPathDialog(); |
49 QString getPath() const; |
|
50 |
33 |
51 public slots: |
34 Q_SLOT void findPath(); |
52 void findPath(); |
35 QString path() const; |
53 |
36 |
54 private: |
37 private: |
55 Ui_ExtProgPath* ui; |
38 class Ui_ExtProgPath& ui; |
56 }; |
39 }; |