[rkward-cvs] SF.net SVN: rkward: [1848] trunk/rkward/rkward/windows
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Wed Apr 25 15:24:57 UTC 2007
Revision: 1848
http://svn.sourceforge.net/rkward/?rev=1848&view=rev
Author: tfry
Date: 2007-04-25 08:24:57 -0700 (Wed, 25 Apr 2007)
Log Message:
-----------
Statusbar text
Modified Paths:
--------------
trunk/rkward/rkward/windows/detachedwindowcontainer.cpp
trunk/rkward/rkward/windows/detachedwindowcontainer.h
trunk/rkward/rkward/windows/rkmdiwindow.cpp
trunk/rkward/rkward/windows/rktoplevelwindowgui.cpp
Modified: trunk/rkward/rkward/windows/detachedwindowcontainer.cpp
===================================================================
--- trunk/rkward/rkward/windows/detachedwindowcontainer.cpp 2007-04-25 14:24:03 UTC (rev 1847)
+++ trunk/rkward/rkward/windows/detachedwindowcontainer.cpp 2007-04-25 15:24:57 UTC (rev 1848)
@@ -19,6 +19,7 @@
#include <klocale.h>
#include <kstdaction.h>
+#include <kstatusbar.h>
#include <qlayout.h>
#include <qwidget.h>
@@ -38,7 +39,10 @@
setXMLFile ("detachedwindowcontainer.rc");
KStdAction::close (this, SLOT (close ()), actionCollection (), "dwindow_close");
new KAction (i18n ("Attach to main window"), 0, this, SLOT (slotReattach ()), actionCollection (), "dwindow_attach");
- insertChildClient (new RKTopLevelWindowGUI (this));
+ RKTopLevelWindowGUI *toplevel_actions = new RKTopLevelWindowGUI (this);
+ insertChildClient (toplevel_actions);
+ connect (toplevel_actions->actionCollection (), SIGNAL (actionStatusText (const QString &)), this, SLOT (slotSetStatusBarText (const QString &)));
+ statusBar ()->hide ();
createShellGUI ();
// capture widget
@@ -72,6 +76,16 @@
setCaption (widget->fullCaption ());
}
+void DetachedWindowContainer::slotSetStatusBarText (const QString &text) {
+ RK_TRACE (APP);
+
+ QString ntext = text.stripWhiteSpace ();
+ ntext.replace ("<qt>", ""); // WORKAROUND: what the ?!? is going on? The KTHMLPart seems to post such messages.
+
+ statusBar ()->message (ntext);
+ statusBar ()->show ();
+}
+
void DetachedWindowContainer::slotReattach () {
RK_TRACE (APP);
Modified: trunk/rkward/rkward/windows/detachedwindowcontainer.h
===================================================================
--- trunk/rkward/rkward/windows/detachedwindowcontainer.h 2007-04-25 14:24:03 UTC (rev 1847)
+++ trunk/rkward/rkward/windows/detachedwindowcontainer.h 2007-04-25 15:24:57 UTC (rev 1848)
@@ -43,6 +43,7 @@
void slotReattach ();
/** update own caption, when the window's caption has changed */
void updateCaption (RKMDIWindow *);
+ void slotSetStatusBarText (const QString &text);
protected:
/** when receiving a close event, dispatch to the embedded window */
void closeEvent (QCloseEvent *e);
Modified: trunk/rkward/rkward/windows/rkmdiwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkmdiwindow.cpp 2007-04-25 14:24:03 UTC (rev 1847)
+++ trunk/rkward/rkward/windows/rkmdiwindow.cpp 2007-04-25 15:24:57 UTC (rev 1848)
@@ -184,6 +184,7 @@
RK_ASSERT (getPart ());
getPart ()->installEventFilter (this);
+ getPart ()->actionCollection ()->setHighlightingEnabled (true);
}
void RKMDIWindow::paintEvent (QPaintEvent *e) {
Modified: trunk/rkward/rkward/windows/rktoplevelwindowgui.cpp
===================================================================
--- trunk/rkward/rkward/windows/rktoplevelwindowgui.cpp 2007-04-25 14:24:03 UTC (rev 1847)
+++ trunk/rkward/rkward/windows/rktoplevelwindowgui.cpp 2007-04-25 15:24:57 UTC (rev 1848)
@@ -67,6 +67,7 @@
new KAction (i18n ("Show &Output"), 0, 0, this, SLOT (slotOutputShow ()), actionCollection (), "output_show");
+ actionCollection ()->setWidget (for_window);
actionCollection ()->setHighlightingEnabled (true);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list