[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kword/part
From: Sebastian Sauer <mail () dipe ! org>
Date: 2007-07-18 22:32:41
Message-ID: 1184797961.473050.30973.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 689708 by sebsauer:
added statusbar enable/disable option
M +11 -0 KWView.cpp
M +1 -0 KWView.h
M +2 -1 kword.rc
--- trunk/koffice/kword/part/KWView.cpp #689707:689708
@@ -72,6 +72,7 @@
#include <kactioncollection.h>
#include <kactionmenu.h>
#include <kxmlguifactory.h>
+#include <kstatusbar.h>
KWView::KWView( const QString& viewMode, KWDocument* document, QWidget *parent )
: KoView( document, parent )
@@ -248,6 +249,13 @@
action->setWhatsThis( i18n("Create a copy of the current frame, that remains \
linked to it. This means they always show the same contents: modifying the contents \
in such a frame will update all its linked copies.") );
connect(action, SIGNAL(triggered()), this, SLOT( createLinkedFrame() ));
+ //------------------------ Settings menu
+ action = new KToggleAction(i18n("Status Bar"), this);
+ action->setToolTip(i18n("Show the status bar"));
+ actionCollection()->addAction("showStatusBar", action);
+ //action->setChecked(statusBar()->isVisible());
+ connect(action, SIGNAL(toggled(bool)), this, SLOT(showStatusBar(bool)));
+
/* ********** From old kwview ****
We probably want to have each of these again, so just move them when you want to \
implement it This saves problems with finding out which we missed near the end.
@@ -1055,6 +1063,9 @@
m_document->addCommand(cmd);
}
+void KWView::showStatusBar(bool toggled) {
+ statusBar()->setVisible(toggled);
+}
// end of actions
--- trunk/koffice/kword/part/KWView.h #689707:689708
@@ -115,6 +115,7 @@
void showStatisticsDialog();
void showRulers(bool visible);
void createLinkedFrame();
+ void showStatusBar(bool);
private:
/// helper method for the raiseFrame/lowerFrame/bringToFront/sendToBack methods
--- trunk/koffice/kword/part/kword.rc #689707:689708
@@ -1,4 +1,4 @@
-<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd" ><kpartgui name="KWord" version="109">
+<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd" ><kpartgui name="KWord" version="110">
<MenuBar>
<Menu name="file"><text>&File</text>
<Action name="extra_template"/>
@@ -186,6 +186,7 @@
<Menu name="settings"><text>&Settings</text>
<Separator group="settings_show"/>
<Action name="direct_cursor" group="settings_show"/>
+ <Action name="showStatusBar" group="settings_show" />
<Separator group="settings_show"/>
<Action name="configure_autocorrection" group="settings_show"/>
<Action name="configure_completion" group="settings_show"/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic