protected:
/// build the actual dialog
virtual void build_dialog() = 0;
- ///
- virtual void build() = 0;
+ /// Build the dialog
+ virtual void build();
/// Hide the dialog.
virtual void hide();
/// Create the dialog if necessary, update it and display it.
virtual void update_contents() = 0;
///
virtual bool isVisible() const;
-
/// is the dialog currently valid ?
virtual bool isValid();
/// are we updating ?
bool updating_;
-
+ ///
GuiDialog & parent_;
public Q_SLOTS:
// dialog closed from WM
void slotWMHide();
-
// Restore button clicked
void slotRestore();
-
// OK button clicked
void slotOK();
-
// Apply button clicked
void slotApply();
-
// Close button clicked
void slotClose();
+
private:
/// Pointer to the actual instantiation of the Qt dialog
virtual QWidget * form() const = 0;
dialog_->update();
}
- /// Build the dialog
- virtual void build() {
- // protect the BC from unwarranted state transitions
- updating_ = true;
- build_dialog();
- updating_ = false;
- }
-
/// Pointer to the actual instantiation of the Qt dialog
virtual GUIDialog * form() const { return dialog_.get(); }