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

List:       kde-commits
Subject:    kpdf_experiments: kdegraphics/kpdf/kpdf
From:       Enrico Ros <rosenric () dei ! unipd ! it>
Date:       2004-10-17 17:20:52
Message-ID: 20041017172052.698DB16C49 () office ! kde ! org
[Download RAW message or body]

CVS commit by eros: 

Fixing page rotation for thumbnails and scrollview.
CCMAIL: Albert Astals Cid <tsdgeos@terra.es>


  M +1 -1      TODO   1.3.2.22
  M +6 -0      page.cpp   1.1.2.22


--- kdegraphics/kpdf/kpdf/TODO  #1.3.2.21:1.3.2.22
@@ -31,5 +31,4 @@
 
 Porting / In progress on the branch (first item comes first):
--> FIX: sheet rotation (portrait / landscape / ...)
 -> ADD: viewport changes the right way when clicking links
 -> use a KConfigXT settings framework
@@ -38,4 +37,5 @@
 
 Done (newest feature comes firts):
+-> FIX: sheet rotation in landscape case
 -> ADD: Some dcop functions (goToPage, openDocument and give # of pages) (Albert)
 -> MRG: link following ('actionMovie' kind is missing)

--- kdegraphics/kpdf/kpdf/page.cpp  #1.1.2.21:1.1.2.22
@@ -32,4 +32,10 @@ KPDFPage::KPDFPage( int page, float w, f
     m_sTop( 0 ), m_sRight( 0 ), m_sBottom( 0 ), m_text( 0 )
 {
+    // if landscape swap width <-> height (rotate 90deg CCW)
+    if ( r == 90 || r == 270 )
+    {
+        m_width = h;
+        m_height = w;
+    }
 }
 


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

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