+// -*- C++ -*-
/* This file is part of
* ======================================================
*
*/
class ControlButtons : public DialogBase
{
-public: // methods
+public:
///
- ControlButtons() {}
+ ControlButtons();
///
virtual ~ControlButtons() {}
void CancelButton();
///
void RestoreButton();
+ ///
+ bool IconifyWithMain() const;
/** Allow the view to access the ButtonController. This method must be
instantiated in a daughter class that creates the actual instance
virtual ButtonControllerBase & bc() = 0;
protected:
+ /** When Applying it's useful to know whether the dialog is about
+ to close or not (no point refreshing the display for example). */
+ bool isClosing() const { return is_closing_; }
+
/// Get changed parameters and Dispatch them to the kernel.
virtual void apply() = 0;
/// Disconnect signals and hide View.
instantiated in a daughter class that creates the actual instance
of the View. */
virtual ViewBase & view() = 0;
+
+private:
+ ///
+ bool is_closing_;
+
};
#endif // CONTROLBUTTONS_H