From 38ecdfd5b7c3b73e6d488f635286c161d8c45625 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 22 Sep 2008 07:14:30 +0000 Subject: [PATCH] Pref ui module: add a 'clear session'. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26491 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiPrefs.cpp | 7 +++++++ src/frontends/qt4/GuiPrefs.h | 1 + src/frontends/qt4/ui/PrefUi.ui | 31 ++++++++++++++++++------------- 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index cbc8d43ba5..266d0591c0 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -1947,6 +1947,13 @@ void PrefUserInterface::select_ui() } +void PrefUserInterface::on_clearSessionPB_clicked() +{ + guiApp->clearSession(); +} + + + ///////////////////////////////////////////////////////////////////// // // PrefEdit diff --git a/src/frontends/qt4/GuiPrefs.h b/src/frontends/qt4/GuiPrefs.h index 0eebd86f04..91bae20372 100644 --- a/src/frontends/qt4/GuiPrefs.h +++ b/src/frontends/qt4/GuiPrefs.h @@ -395,6 +395,7 @@ public: public Q_SLOTS: void select_ui(); + void on_clearSessionPB_clicked(); }; diff --git a/src/frontends/qt4/ui/PrefUi.ui b/src/frontends/qt4/ui/PrefUi.ui index d3bd72b609..82f903faaf 100644 --- a/src/frontends/qt4/ui/PrefUi.ui +++ b/src/frontends/qt4/ui/PrefUi.ui @@ -10,9 +10,7 @@ - - 0 - 0 + 0 0 @@ -51,7 +49,7 @@ Restore to cursor position when the file was last closed - Allow saving/restoring of windows geometry + Allow saving/restoring of window layouts and geometries @@ -69,6 +67,13 @@ + + + + Clear All Session Information + + + @@ -89,12 +94,12 @@ - - 0 - 6 + + 0 + @@ -117,7 +122,7 @@ Qt::Horizontal - + 40 20 @@ -132,7 +137,7 @@ Qt::Horizontal - + 61 21 @@ -149,12 +154,12 @@ - - 300 - 1 + + 300 + @@ -179,7 +184,7 @@ Qt::Vertical - + 395 16