- [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
}\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
\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
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
<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