[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/graphics/UNNAMED_READER/corelibrary
From:       Stefan Kebekus <kebekus () kde ! org>
Date:       2006-12-21 7:04:03
Message-ID: 1166684643.205833.6494.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 615328 by kebekus:

started to write stubs for fullscreen and presentation modi


 M  +4 -0      CMakeLists.txt  
 A             fullScreenWidget.cpp   [License: GPL (v2+) (wrong address)]
 A             fullScreenWidget.h   [License: GPL (v2+) (wrong address)]
 A             fullScreenWidget.ui  
 A             presentationWidget.cpp   [License: GPL (v2+) (wrong address)]
 A             presentationWidget.h   [License: GPL (v2+) (wrong address)]
 A             presentationWidget.ui  
 M  +29 -1     readerWidget.cpp  
 M  +16 -0     readerWidget.h  


--- trunk/playground/graphics/UNNAMED_READER/corelibrary/CMakeLists.txt \
#615327:615328 @@ -2,13 +2,17 @@
 ########### UNNAMED_READERcore ############
 
 set(UNNAMED_READERcore_LIB_SRCS  
+   fullScreenWidget.cpp
    length.cpp
+   presentationWidget.cpp
    readerWidget.cpp )
 
 
 kde4_automoc(${UNNAMED_READERcore_LIB_SRCS})
 
 kde4_add_ui_files(UNNAMED_READERcore_LIB_SRCS
+	fullScreenWidget.ui
+	presentationWidget.ui
 	readerWidget.ui )
 
 qt4_add_resources(UNNAMED_READERcore_LIB_SRCS
--- trunk/playground/graphics/UNNAMED_READER/corelibrary/readerWidget.cpp \
#615327:615328 @@ -17,6 +17,8 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
+#include "fullScreenWidget.h"
+#include "presentationWidget.h"
 #include "readerWidget.h"
 #include "ui_readerWidget.h"
 #include "UNNAMED_READER_debug.h"
@@ -26,7 +28,7 @@
 
 namespace UNNAMED_READER {
 
-#define UNNAMED_READER_DEBUG 0
+#define UNNAMED_READER_DEBUG 1
 
 
 readerWidget::readerWidget(QWidget *parent, KUrl url, bool *ok) 
@@ -124,6 +126,32 @@
 }
 
 
+void readerWidget::showFullScreen()
+{
+  kDebug(UNNAMED_READER_DEBUG, shell) << "readerWidget::showFullScreen()" << endl;
+
+  if (findChildren<fullScreenWidget *>("fullScreenWidget").count() > 0) {
+    kDebug(UNNAMED_READER_DEBUG, shell) << "readerWidget::showFullScreen() already \
in fullScreen mode" << endl; +    return;
+  }
+
+  new fullScreenWidget(this);
+}
+
+
+void readerWidget::showPresentation()
+{
+  kDebug(UNNAMED_READER_DEBUG, shell) << "readerWidget::showPresentation()" << endl;
+
+  if (findChildren<presentationWidget *>("presentationWidget").count() > 0) {
+    kDebug(UNNAMED_READER_DEBUG, shell) << "readerWidget::showPresentation() already \
in presentation mode" << endl; +    return;
+  }
+
+  new presentationWidget(this);
+}
+
+
 void readerWidget::fakeFinishedLoading()
 {
   emit documentFullyLoaded(this);
--- trunk/playground/graphics/UNNAMED_READER/corelibrary/readerWidget.h \
#615327:615328 @@ -136,6 +136,22 @@
    */
   void reload();
 
+  /**
+   * Open a full screen view of the document
+   *
+   * This method opens a full screen view widget of the document. If
+   * there is already one full screen view, nothing happens.
+   */ 
+  void showFullScreen();
+
+  /**
+   * Open a presentation view of the document
+   *
+   * This method opens a full screen view widget of the document. If
+   * there is already one full screen view, nothing happens.
+   */ 
+  void showPresentation();
+
  signals:
   /**
    * This signal is emitted when the document is fully loaded, and all


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic