]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/InsetParamsDialog.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / InsetParamsDialog.h
index 0d6e784d71dd278fdb5d6e891660360b9e82b2b1..2d876ba43198a6e7bc8c2e86f0cd09bac48d2362 100644 (file)
@@ -15,7 +15,7 @@
 #include "DialogView.h"
 #include "ui_InsetParamsUi.h"
 
-#include "qt_i18n.h"
+#include <QPushButton>
 
 namespace lyx {
 
@@ -38,12 +38,10 @@ public:
 protected Q_SLOTS:
        void onWidget_changed();
        void applyView();
-       void on_restorePB_clicked();
-       void on_newPB_clicked();
-       void on_okPB_clicked();
-       void on_applyPB_clicked();
-       void on_closePB_clicked();
-       void on_synchronizedViewCB_stateChanged(int state);
+       void resetDialog();
+       void on_buttonBox_clicked(QAbstractButton *);
+       void on_immediateApplyCB_stateChanged(int state);
+       void on_synchronizedCB_stateChanged(int state);
 
 private:
        /// \name DialogView inherited methods
@@ -57,9 +55,13 @@ private:
        ///
        void newInset();
        ///
+       bool newInsetAllowed() const;
+       ///
        void updateView(bool update_widget);
        ///
-       docstring checkWidgets(bool synchronized_view);
+       docstring checkWidgets(bool immediate);
+       ///
+       QPushButton * newPB;
        /// pimpl
        struct Private;
        Private * d;