X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlButtons.h;h=f9ebcff63dd7f401e404f4aa52c8e65c7e86c5bc;hb=120c89f24fae05379fbdc8539d3cfae574c2aecd;hp=59b1cc7356fe0a70004ca257359cdb8781728a0a;hpb=1eb8155fa0d2253d9504a8d660cb3d666c1224f6;p=lyx.git diff --git a/src/frontends/controllers/ControlButtons.h b/src/frontends/controllers/ControlButtons.h index 59b1cc7356..f9ebcff63d 100644 --- a/src/frontends/controllers/ControlButtons.h +++ b/src/frontends/controllers/ControlButtons.h @@ -26,9 +26,6 @@ #ifndef CONTROLBUTTONS_H #define CONTROLBUTTONS_H -#ifdef __GNUG__ -#pragma interface -#endif #include @@ -37,8 +34,7 @@ class ButtonControllerBase; /** Abstract base class for Controllers with a ButtonController. */ -class ControlButtons : boost::noncopyable -{ +class ControlButtons : boost::noncopyable { public: /// ControlButtons(); @@ -67,15 +63,14 @@ public: 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. @@ -86,7 +81,6 @@ protected: /** 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_;