X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FButtonController.h;h=6d72430c9dce298495731553b86db7ecf1848050;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=06420a4d7b64e1db1ee97689520a1779ef9449a0;hpb=eee0ebdff29c4ebec870b34076ff97b81cd55604;p=lyx.git diff --git a/src/frontends/qt4/ButtonController.h b/src/frontends/qt4/ButtonController.h index 06420a4d7b..6d72430c9d 100644 --- a/src/frontends/qt4/ButtonController.h +++ b/src/frontends/qt4/ButtonController.h @@ -17,6 +17,7 @@ class QWidget; class QPushButton; class QLineEdit; +class QCheckBox; namespace lyx { namespace frontend { @@ -44,9 +45,7 @@ public: ~ButtonController(); //@{ - /** Methods to set and get the ButtonPolicy. - * \param ptr is owned by the ButtonController. - */ + /// Methods to set and get the ButtonPolicy. void setPolicy(ButtonPolicy::Policy policy); ButtonPolicy const & policy() const; ButtonPolicy & policy(); @@ -61,6 +60,7 @@ public: void apply(); void cancel(); void restore(); + void autoApply(); //@} /// Tell the BC that the dialog is being hidden @@ -81,8 +81,9 @@ public: */ bool setReadOnly(bool); - /** \param validity Tell the BC that the data is, or is not, valid. + /** * Sets the activation state of the buttons immediately. + * \param validity Tell the BC that the data is, or is not, valid. */ void setValid(bool); @@ -91,12 +92,12 @@ public: // //@{ - /** Store pointers to these widgets. - */ + /// Store pointers to these widgets. void setOK(QPushButton * obj); void setApply(QPushButton * obj); void setCancel(QPushButton * obj); void setRestore(QPushButton * obj); + void setAutoApply(QCheckBox * obj); //@} /** Add a pointer to the list of widgets whose activation