#ifndef CONTROLBUTTONS_H
#define CONTROLBUTTONS_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include <boost/utility.hpp>
/** Abstract base class for Controllers with a ButtonController.
*/
-class ControlButtons : boost::noncopyable
-{
+class ControlButtons : boost::noncopyable {
public:
///
ControlButtons();
void setView(ViewBase &);
///
void setButtonController(ButtonControllerBase &);
+ /** 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_; }
protected:
///
ViewBase & view();
- /** 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.
/** This flag can be set by one of the miriad the controller methods
to ensure that the dialog is shut down. */
bool emergency_exit_;
-
private:
///
bool is_closing_;