mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
Implement Vincent's suggestions:
- [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
This commit is contained in:
parent
f5cc73f583
commit
bebd53821a
@ -114,12 +114,15 @@ void InsetParamsDialog::newInset()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void InsetParamsDialog::on_newPB_clicked()
|
||||||
|
{
|
||||||
|
newInset();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void InsetParamsDialog::on_applyPB_clicked()
|
void InsetParamsDialog::on_applyPB_clicked()
|
||||||
{
|
{
|
||||||
if (synchronizedViewCB->isChecked())
|
applyView();
|
||||||
newInset();
|
|
||||||
else
|
|
||||||
applyView();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -131,10 +134,7 @@ void InsetParamsDialog::on_closePB_clicked()
|
|||||||
|
|
||||||
void InsetParamsDialog::on_synchronizedViewCB_stateChanged(int state)
|
void InsetParamsDialog::on_synchronizedViewCB_stateChanged(int state)
|
||||||
{
|
{
|
||||||
bool const sync = (state == Qt::Checked);
|
checkWidgets(state == Qt::Checked);
|
||||||
QString const label = sync ? qt_("&New") : qt_("&Apply");
|
|
||||||
applyPB->setText(label);
|
|
||||||
checkWidgets(sync);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ protected Q_SLOTS:
|
|||||||
void onWidget_changed();
|
void onWidget_changed();
|
||||||
void applyView();
|
void applyView();
|
||||||
void on_restorePB_clicked();
|
void on_restorePB_clicked();
|
||||||
|
void on_newPB_clicked();
|
||||||
void on_okPB_clicked();
|
void on_okPB_clicked();
|
||||||
void on_applyPB_clicked();
|
void on_applyPB_clicked();
|
||||||
void on_closePB_clicked();
|
void on_closePB_clicked();
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>438</width>
|
<width>464</width>
|
||||||
<height>292</height>
|
<height>225</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
@ -63,6 +63,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="newPB">
|
||||||
|
<property name="text">
|
||||||
|
<string>New Inset</string>
|
||||||
|
</property>
|
||||||
|
<property name="autoDefault">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -121,7 +131,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" colspan="2">
|
<item row="0" column="0" colspan="3">
|
||||||
<widget class="QStackedWidget" name="stackedWidget">
|
<widget class="QStackedWidget" name="stackedWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
|
Loading…
Reference in New Issue
Block a user