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:
Abdelrazak Younes 2008-09-22 07:14:30 +00:00
parent 475a48b78d
commit 38ecdfd5b7
3 changed files with 26 additions and 13 deletions

View File

@ -1947,6 +1947,13 @@ void PrefUserInterface::select_ui()
}
void PrefUserInterface::on_clearSessionPB_clicked()
{
guiApp->clearSession();
}
/////////////////////////////////////////////////////////////////////
//
// PrefEdit

View File

@ -395,6 +395,7 @@ public:
public Q_SLOTS:
void select_ui();
void on_clearSessionPB_clicked();
};

View File

@ -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>