Bug 135578 - Presentation mode watch file should stay in Presentation mode
Summary: Presentation mode watch file should stay in Presentation mode
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Astals Cid
Depends on:
Reported: 2006-10-13 12:56 UTC by Jake Martin
Modified: 2006-10-15 13:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Jake Martin 2006-10-13 12:56:27 UTC
Version:           3.5.5 (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
Compiler:          gcc 4.1.1 
OS:                Linux

When a file is changed during presentation mode, the presentation mode is "cancelled".  It would be nice if files could change and kpdf would stay in presentation mode and "watch file" at the same tim.  

I would like this because I develop in latex with kile on one monitor, and would like to have kpdf in presentation mode constantly on the other monitor watching file changes.

Thanks for your hard work.  KDE is an awesome product.
Comment 1 Albert Astals Cid 2006-10-15 13:50:33 UTC
SVN commit 595680 by aacid:

When reloading a document because it changed still be in presentation mode after the reload
BUGS: 135578

 M  +2 -0      part.cpp  
 M  +1 -0      part.h  

--- branches/KDE/3.5/kdegraphics/kpdf/part.cpp #595679:595680
@@ -526,6 +526,7 @@
   if (m_viewportDirty.pageNumber == -1)
     m_viewportDirty = m_document->viewport();
+    m_wasPresentationOpen = ((PresentationWidget*)m_presentationWidget != 0);
     m_pageView->showText(i18n("Reloading the document..."), 0);
@@ -534,6 +535,7 @@
     if (m_viewportDirty.pageNumber >= (int)m_document->pages()) m_viewportDirty.pageNumber = (int)m_document->pages() - 1;
     m_viewportDirty.pageNumber = -1;
+    if (m_wasPresentationOpen) slotShowPresentation();
     emit enablePrintAction(true);
--- branches/KDE/3.5/kdegraphics/kpdf/part.h #595679:595680
@@ -158,6 +158,7 @@
 	KDirWatch *m_watcher;
 	QTimer *m_dirtyHandler;
 	DocumentViewport m_viewportDirty;
+	bool m_wasPresentationOpen;
 	// Remember the search history
 	QStringList m_searchHistory;