]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/ButtonController.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / ButtonController.h
index 06420a4d7b64e1db1ee97689520a1779ef9449a0..6d72430c9dce298495731553b86db7ecf1848050 100644 (file)
@@ -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