mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
Pref ui module: add a 'clear session'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26491 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
475a48b78d
commit
38ecdfd5b7
@ -1947,6 +1947,13 @@ void PrefUserInterface::select_ui()
|
||||
}
|
||||
|
||||
|
||||
void PrefUserInterface::on_clearSessionPB_clicked()
|
||||
{
|
||||
guiApp->clearSession();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// PrefEdit
|
||||
|
@ -395,6 +395,7 @@ public:
|
||||
|
||||
public Q_SLOTS:
|
||||
void select_ui();
|
||||
void on_clearSessionPB_clicked();
|
||||
};
|
||||
|
||||
|
||||
|
@ -10,9 +10,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy>
|
||||
<hsizetype>0</hsizetype>
|
||||
<vsizetype>0</vsizetype>
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
@ -51,7 +49,7 @@
|
||||
<string>Restore to cursor position when the file was last closed</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Allow saving/restoring of windows geometry</string>
|
||||
<string>Allow saving/restoring of window layouts and geometries</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -69,6 +67,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" >
|
||||
<widget class="QPushButton" name="clearSessionPB" >
|
||||
<property name="text" >
|
||||
<string>Clear All Session Information</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@ -89,12 +94,12 @@
|
||||
</property>
|
||||
<item row="1" column="0" colspan="4" >
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="margin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="margin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="lastfilesLA" >
|
||||
<property name="text" >
|
||||
@ -117,7 +122,7 @@
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
@ -132,7 +137,7 @@
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>61</width>
|
||||
<height>21</height>
|
||||
@ -149,12 +154,12 @@
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="autoSaveSB" >
|
||||
<property name="maximum" >
|
||||
<number>300</number>
|
||||
</property>
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>300</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" >
|
||||
@ -179,7 +184,7 @@
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<property name="sizeHint" stdset="0" >
|
||||
<size>
|
||||
<width>395</width>
|
||||
<height>16</height>
|
||||
|
Loading…
Reference in New Issue
Block a user