src/dialogs.h

changeset 493
16766ac1bbd9
parent 479
f179241a72a8
child 497
c51941e590b6
equal deleted inserted replaced
492:e964085e6913 493:16766ac1bbd9
38 class QAbstractButton; 38 class QAbstractButton;
39 class Ui_OverlayUI; 39 class Ui_OverlayUI;
40 class Ui_LDPathUI; 40 class Ui_LDPathUI;
41 class Ui_OpenProgressUI; 41 class Ui_OpenProgressUI;
42 42
43 class OverlayDialog : public QDialog { 43 class OverlayDialog : public QDialog
44 Q_OBJECT 44 { Q_OBJECT
45 45
46 public: 46 public:
47 explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 47 explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
48 virtual ~OverlayDialog(); 48 virtual ~OverlayDialog();
49 49
50 str fpath() const; 50 str fpath() const;
51 ushort ofsx() const; 51 ushort ofsx() const;
52 ushort ofsy() const; 52 ushort ofsy() const;
53 double lwidth() const; 53 double lwidth() const;
54 double lheight() const; 54 double lheight() const;
55 int camera() const; 55 int camera() const;
56 56
57 private: 57 private:
58 Ui_OverlayUI* ui; 58 Ui_OverlayUI* ui;
59 List<pair<QRadioButton*, int>> m_cameraArgs; 59 List<pair<QRadioButton*, int>> m_cameraArgs;
60 60
61 private slots: 61 private slots:
62 void slot_fpath(); 62 void slot_fpath();
63 void slot_help(); 63 void slot_help();
64 void slot_dimensionsChanged(); 64 void slot_dimensionsChanged();
65 void fillDefaults (int newcam); 65 void fillDefaults (int newcam);
66 }; 66 };
67 67
68 // ============================================================================= 68 // =============================================================================
69 class LDrawPathDialog : public QDialog { 69 class LDrawPathDialog : public QDialog
70 Q_OBJECT 70 { Q_OBJECT
71 71
72 public: 72 public:
73 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); 73 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0);
74 virtual ~LDrawPathDialog(); 74 virtual ~LDrawPathDialog();
75 str filename() const; 75 str filename() const;
76 void setPath (str path); 76 void setPath (str path);
77 77
78 private: 78 private:
79 Q_DISABLE_COPY (LDrawPathDialog) 79 Q_DISABLE_COPY (LDrawPathDialog)
80 const bool m_validDefault; 80 const bool m_validDefault;
81 Ui_LDPathUI* ui; 81 Ui_LDPathUI* ui;
82 QPushButton* okButton(); 82 QPushButton* okButton();
83 QPushButton* cancelButton(); 83 QPushButton* cancelButton();
84 84
85 private slots: 85 private slots:
86 void slot_findPath(); 86 void slot_findPath();
87 void slot_tryConfigure(); 87 void slot_tryConfigure();
88 void slot_exit(); 88 void slot_exit();
89 void slot_accept(); 89 void slot_accept();
90 }; 90 };
91 91
92 // ============================================================================= 92 // =============================================================================
93 class OpenProgressDialog : public QDialog { 93 class OpenProgressDialog : public QDialog
94 Q_OBJECT 94 { Q_OBJECT
95 READ_PROPERTY (ulong, progress, setProgress) 95 READ_PROPERTY (ulong, progress, setProgress)
96 DECLARE_PROPERTY (ulong, numLines, setNumLines) 96 DECLARE_PROPERTY (ulong, numLines, setNumLines)
97 97
98 public: 98 public:
99 explicit OpenProgressDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 99 explicit OpenProgressDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
100 virtual ~OpenProgressDialog(); 100 virtual ~OpenProgressDialog();
101 101
102 public slots: 102 public slots:
103 void updateProgress (int progress); 103 void updateProgress (int progress);
104 104
105 private: 105 private:
106 Ui_OpenProgressUI* ui; 106 Ui_OpenProgressUI* ui;
107 107
108 void updateValues(); 108 void updateValues();
109 }; 109 };
110 110
111 // ============================================================================= 111 // =============================================================================
112 class ExtProgPathPrompt : public QDialog { 112 class ExtProgPathPrompt : public QDialog
113 Q_OBJECT 113 { Q_OBJECT
114 114
115 public: 115 public:
116 explicit ExtProgPathPrompt (str progName, QWidget* parent = 0, Qt::WindowFlags f = 0); 116 explicit ExtProgPathPrompt (str progName, QWidget* parent = 0, Qt::WindowFlags f = 0);
117 virtual ~ExtProgPathPrompt(); 117 virtual ~ExtProgPathPrompt();
118 str getPath() const; 118 str getPath() const;
119 119
120 public slots: 120 public slots:
121 void findPath(); 121 void findPath();
122 122
123 private: 123 private:
124 Ui_ExtProgPath* ui; 124 Ui_ExtProgPath* ui;
125 }; 125 };
126 126
127 // ============================================================================= 127 // =============================================================================
128 class AboutDialog : public QDialog { 128 class AboutDialog : public QDialog
129 Q_OBJECT 129 { Q_OBJECT
130 130
131 public: 131 public:
132 AboutDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 132 AboutDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
133 133
134 private slots: 134 private slots:
135 void slot_mail(); 135 void slot_mail();
136 }; 136 };
137 137
138 #endif // DIALOGS_H 138 #endif // DIALOGS_H

mercurial