[Digikam-devel] [Bug 135655] proper full screen mode in preview (F3) - no sidebar, toolbar
Luka Renko
lure at kubuntu.org
Sat Feb 10 19:09:58 GMT 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=135655
lure kubuntu org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From lure kubuntu org 2007-02-10 20:09 -------
SVN commit 632346 by lure:
Implement proper full screen mode for Album GUI
Hide menubar, toolbar (configurable), statusbar and left/ride sidebars.
BUG: 135655
M +2 -1 NEWS
M +25 -0 digikam/digikamapp.cpp
M +12 -0 digikam/digikamview.cpp
M +2 -0 digikam/digikamview.h
--- trunk/extragear/graphics/digikam/NEWS #632345:632346
@ -493,6 +493,7 @
285 ==> 140303 : slideshow must be relocated to View menu from tools menu.
286 ==> 137503 : Tags are not written to image file automatically.
287 ==> 136254 : Editing tags does not change IPTC-keywords.
-288 ==>
+288 ==> 135655 : Proper full screen mode (no menu, toolbar, statusbar, sidebars)
+289 ==>
----------------------------------------------------------------------------------------------------
--- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #632345:632346
@ -29,7 +29,9 @
#include <qstringlist.h>
#include <qtimer.h>
#include <qsignalmapper.h>
+#include <qdockarea.h>
+
// KDE includes.
#include <kaboutdata.h>
@ -44,6 +46,7 @
#include <ktip.h>
#include <kdeversion.h>
#include <kapplication.h>
+#include <kmenubar.h>
#include <kmessagebox.h>
#include <kwin.h>
#include <dcopref.h>
@ -1511,11 +1514,33 @
#else
showNormal();
#endif
+ menuBar()->show();
+ statusBar()->show();
+ topDock()->show();
+ bottomDock()->show();
+ leftDock()->show();
+ rightDock()->show();
+ d->view->showSideBars();
+
d->fullScreen = false;
}
else
{
+ KConfig* config = kapp->config();
+ config->setGroup("ImageViewer Settings");
+ bool fullScreenHideToolBar = config->readBoolEntry("FullScreen Hide ToolBar", false);
+
+ menuBar()->hide();
+ statusBar()->hide();
+ if (fullScreenHideToolBar)
+ topDock()->hide();
+ bottomDock()->hide();
+ leftDock()->hide();
+ rightDock()->hide();
+ d->view->hideSideBars();
+
showFullScreen();
+
d->fullScreen = true;
}
}
--- trunk/extragear/graphics/digikam/digikam/digikamview.cpp #632345:632346
@ -348,6 +348,18 @
}
}
+void DigikamView::showSideBars()
+{
+ d->leftSideBar->restore();
+ d->rightSideBar->restore();
+}
+
+void DigikamView::hideSideBars()
+{
+ d->leftSideBar->backup();
+ d->rightSideBar->backup();
+}
+
void DigikamView::slotFirstItem(void)
{
AlbumIconItem *currItem = dynamic_cast<AlbumIconItem*>(d->iconView->firstItem());
--- trunk/extragear/graphics/digikam/digikam/digikamview.h #632345:632346
@ -57,6 +57,8 @
void clearHistory();
void getForwardHistory(QStringList &titles);
void getBackwardHistory(QStringList &titles);
+ void showSideBars();
+ void hideSideBars();
signals:
More information about the Digikam-devel
mailing list