]> git.lyx.org Git - lyx.git/commitdiff
Implement Vincent's suggestions:
authorAbdelrazak Younes <younes@lyx.org>
Fri, 19 Feb 2010 20:44:59 +0000 (20:44 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 19 Feb 2010 20:44:59 +0000 (20:44 +0000)
- [New Inset] button even in non synchronous mode
- Get rid of the horizontal spacer for improved layout under Windows.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33520 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/InsetParamsDialog.cpp
src/frontends/qt4/InsetParamsDialog.h
src/frontends/qt4/ui/InsetParamsUi.ui

index 29103c06487a109db8c4bc071ed9b73676267c38..e366bcbce192dd41d794d4923135af568e845bb0 100644 (file)
@@ -114,12 +114,15 @@ void InsetParamsDialog::newInset()
 }\r
 \r
 \r
+void InsetParamsDialog::on_newPB_clicked()\r
+{\r
+       newInset();\r
+}\r
+\r
+\r
 void InsetParamsDialog::on_applyPB_clicked()\r
 {\r
-       if (synchronizedViewCB->isChecked())\r
-               newInset();\r
-       else\r
-               applyView();\r
+       applyView();\r
 }\r
 \r
 \r
@@ -131,10 +134,7 @@ void InsetParamsDialog::on_closePB_clicked()
 \r
 void InsetParamsDialog::on_synchronizedViewCB_stateChanged(int state)\r
 {\r
-       bool const sync = (state == Qt::Checked);\r
-       QString const label = sync ? qt_("&New") :  qt_("&Apply");\r
-       applyPB->setText(label);\r
-       checkWidgets(sync);\r
+       checkWidgets(state == Qt::Checked);\r
 }\r
 \r
 \r
index 948eecac16d5e6519409776686de17dd09228c17..2406e13df6049d732a84ad74e6b4049408816a22 100644 (file)
@@ -39,6 +39,7 @@ protected Q_SLOTS:
        void onWidget_changed();\r
        void applyView();\r
        void on_restorePB_clicked();\r
+       void on_newPB_clicked();\r
        void on_okPB_clicked();\r
        void on_applyPB_clicked();\r
        void on_closePB_clicked();\r
index b56853c20356fc41151f3ced908ea6bafa7890d2..b9e139f523f8be410a633f86cb7f7b5c03580f84 100644 (file)
@@ -5,8 +5,8 @@
    <rect>\r
     <x>0</x>\r
     <y>0</y>\r
-    <width>438</width>\r
-    <height>292</height>\r
+    <width>464</width>\r
+    <height>225</height>\r
    </rect>\r
   </property>\r
   <property name="focusPolicy">\r
        </property>\r
       </widget>\r
      </item>\r
+     <item>\r
+      <widget class="QPushButton" name="newPB">\r
+       <property name="text">\r
+        <string>New Inset</string>\r
+       </property>\r
+       <property name="autoDefault">\r
+        <bool>false</bool>\r
+       </property>\r
+      </widget>\r
+     </item>\r
      <item>\r
       <spacer>\r
        <property name="orientation">\r
      </property>\r
     </spacer>\r
    </item>\r
-   <item row="0" column="0" colspan="2">\r
+   <item row="0" column="0" colspan="3">\r
     <widget class="QStackedWidget" name="stackedWidget">\r
      <property name="currentIndex">\r
       <number>1</number>\r