Abdelrazak Younes wrote:
Bennett Helm wrote:
My preferences here would be as follows (rank ordered from most to least
preferred):
a) fix the drawer implementation to work in full-screen view (with
windows
visible)
b) switch to a dockable/floating widget implementation, provided
(1)-(3) can
be fixed
c) stick with drawers, not visible in full-screen view, but fixing
the bug I
mentioned at the beginning.
Any thoughts?
d) switch to a dockable widget when working in full-screen mode and
switching back to drawer when leaving full-screen mode.
I've done that, please test and report. You can also try to play with
the window flags and feature in order to fine tune the behaviour.
Abdel.
Author: younes
Date: Mon Jun 9 09:09:29 2008
New Revision: 25197
URL: http://www.lyx.org/trac/changeset/25197
Log:
Navigator pane: Switch to dockwidget when working in fullscreen mode.
Modified:
lyx-devel/trunk/src/frontends/qt4/GuiToc.cpp
Modified: lyx-devel/trunk/src/frontends/qt4/GuiToc.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiToc.cpp?rev=25197
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiToc.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiToc.cpp Mon Jun 9 09:09:29 2008
@@ -48,6 +48,21 @@
void GuiToc::updateView()
{
+#ifndef Q_WS_MACX
+ widget_->updateView();
+ return;
+#endif
+
+ // Special code for Mac drawer.
+ if (windowFlags() & Qt::Drawer && lyxview().isFullScreen()) {
+ setWindowFlags(Qt::Widget);
+ setFeatures(DockWidgetClosable);
+ show();
+ } else if (windowFlags() & Qt::Widget && !lyxview().isFullScreen()) {
+ setWindowFlags(Qt::Drawer);
+ setFeatures(NoDockWidgetFeatures);
+ show();
+ }
widget_->updateView();
}