]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/ButtonController.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / ButtonController.h
index cec52bf5666f45f03d49d22770d56f7ce4a6984e..46e5d0d0e7a1778e17c63c29c03e21d4c80f36ee 100644 (file)
@@ -45,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();
@@ -83,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);
 
@@ -93,12 +92,13 @@ public:
        //
 
        //@{
-       /** Store pointers to these widgets.
-        */
-       void setOK(QPushButton * obj);
-       void setApply(QPushButton * obj);
-       void setCancel(QPushButton * obj);
-       void setRestore(QPushButton * obj);
+       /// Store pointers to these widgets. \param default_button determines
+       /// the default button of the dialog (bound to return). This is
+       /// OK by default.
+       void setOK(QPushButton * obj, bool const default_button = true);
+       void setApply(QPushButton * obj, bool const default_button = false);
+       void setCancel(QPushButton * obj, bool const default_button = false);
+       void setRestore(QPushButton * obj, bool const default_button = false);
        void setAutoApply(QCheckBox * obj);
        //@}
 
@@ -117,7 +117,7 @@ private:
        /// noncopyable
        ButtonController(ButtonController const &);
        void operator=(ButtonController const &);
-       
+
        /// pimpl
        class Private;
        Private * d;