diff -r e964085e6913 -r 16766ac1bbd9 src/dialogs.h --- a/src/dialogs.h Thu Oct 03 18:07:06 2013 +0300 +++ b/src/dialogs.h Thu Oct 03 20:56:20 2013 +0300 @@ -40,99 +40,99 @@ class Ui_LDPathUI; class Ui_OpenProgressUI; -class OverlayDialog : public QDialog { - Q_OBJECT - -public: - explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0); - virtual ~OverlayDialog(); - - str fpath() const; - ushort ofsx() const; - ushort ofsy() const; - double lwidth() const; - double lheight() const; - int camera() const; - -private: - Ui_OverlayUI* ui; - List> m_cameraArgs; - -private slots: - void slot_fpath(); - void slot_help(); - void slot_dimensionsChanged(); - void fillDefaults (int newcam); +class OverlayDialog : public QDialog +{ Q_OBJECT + + public: + explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0); + virtual ~OverlayDialog(); + + str fpath() const; + ushort ofsx() const; + ushort ofsy() const; + double lwidth() const; + double lheight() const; + int camera() const; + + private: + Ui_OverlayUI* ui; + List> m_cameraArgs; + + private slots: + void slot_fpath(); + void slot_help(); + void slot_dimensionsChanged(); + void fillDefaults (int newcam); }; // ============================================================================= -class LDrawPathDialog : public QDialog { - Q_OBJECT - -public: - explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); - virtual ~LDrawPathDialog(); - str filename() const; - void setPath (str path); - -private: - Q_DISABLE_COPY (LDrawPathDialog) - const bool m_validDefault; - Ui_LDPathUI* ui; - QPushButton* okButton(); - QPushButton* cancelButton(); - -private slots: - void slot_findPath(); - void slot_tryConfigure(); - void slot_exit(); - void slot_accept(); +class LDrawPathDialog : public QDialog +{ Q_OBJECT + + public: + explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); + virtual ~LDrawPathDialog(); + str filename() const; + void setPath (str path); + + private: + Q_DISABLE_COPY (LDrawPathDialog) + const bool m_validDefault; + Ui_LDPathUI* ui; + QPushButton* okButton(); + QPushButton* cancelButton(); + + private slots: + void slot_findPath(); + void slot_tryConfigure(); + void slot_exit(); + void slot_accept(); }; // ============================================================================= -class OpenProgressDialog : public QDialog { - Q_OBJECT +class OpenProgressDialog : public QDialog +{ Q_OBJECT READ_PROPERTY (ulong, progress, setProgress) DECLARE_PROPERTY (ulong, numLines, setNumLines) -public: - explicit OpenProgressDialog (QWidget* parent = null, Qt::WindowFlags f = 0); - virtual ~OpenProgressDialog(); + public: + explicit OpenProgressDialog (QWidget* parent = null, Qt::WindowFlags f = 0); + virtual ~OpenProgressDialog(); -public slots: - void updateProgress (int progress); + public slots: + void updateProgress (int progress); -private: - Ui_OpenProgressUI* ui; + private: + Ui_OpenProgressUI* ui; - void updateValues(); + void updateValues(); }; // ============================================================================= -class ExtProgPathPrompt : public QDialog { - Q_OBJECT - -public: - explicit ExtProgPathPrompt (str progName, QWidget* parent = 0, Qt::WindowFlags f = 0); - virtual ~ExtProgPathPrompt(); - str getPath() const; - -public slots: - void findPath(); - -private: - Ui_ExtProgPath* ui; +class ExtProgPathPrompt : public QDialog +{ Q_OBJECT + + public: + explicit ExtProgPathPrompt (str progName, QWidget* parent = 0, Qt::WindowFlags f = 0); + virtual ~ExtProgPathPrompt(); + str getPath() const; + + public slots: + void findPath(); + + private: + Ui_ExtProgPath* ui; }; // ============================================================================= -class AboutDialog : public QDialog { - Q_OBJECT - -public: - AboutDialog (QWidget* parent = null, Qt::WindowFlags f = 0); - -private slots: - void slot_mail(); +class AboutDialog : public QDialog +{ Q_OBJECT + + public: + AboutDialog (QWidget* parent = null, Qt::WindowFlags f = 0); + + private slots: + void slot_mail(); }; -#endif // DIALOGS_H \ No newline at end of file +#endif // DIALOGS_H