--- a/src/dialogs.h Thu Jul 04 21:09:19 2013 +0300 +++ b/src/dialogs.h Thu Jul 04 22:40:11 2013 +0300 @@ -37,6 +37,7 @@ class QLabel; class QAbstractButton; class Ui_OverlayUI; +class Ui_LDPathUI; class OverlayDialog : public QDialog { @@ -65,29 +66,27 @@ }; // ============================================================================= -class LDrawPathDialog : public QDialog { +class LDrawPathDialog : public QDialog +{ Q_OBJECT public: - explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); - str filename () const; - void setPath (str path); + 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) - - QLabel* lb_resolution; - QLineEdit* le_path; - QPushButton* btn_findPath, *btn_cancel; - QDialogButtonBox* dbb_buttons; + Q_DISABLE_COPY( LDrawPathDialog ) const bool m_validDefault; - - QPushButton* okButton (); + Ui_LDPathUI* ui; + QPushButton* okButton(); + QPushButton* cancelButton(); private slots: - void slot_findPath (); - void slot_tryConfigure (); - void slot_exit (); + void slot_findPath(); + void slot_tryConfigure(); + void slot_exit(); }; // =============================================================================