merged patch_053,062 (tinyurl.com/8t5ec)

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=428592
remotes/origin/kpdf-annotations
Enrico Ros 21 years ago
parent 60463481c5
commit 51b07b3169
  1. 1
      TODO
  2. 45
      conf/kpdf.kcfg
  3. 7
      ui/pageview.cpp
  4. 2
      ui/pageview.h

@ -122,6 +122,7 @@ Done (newest features come first):
-> ADD: annotations: PDF1.6 reader (PDF's annotations -> our data structures) -> ADD: annotations: PDF1.6 reader (PDF's annotations -> our data structures)
-> ADD: Internal data structures for annotations handling. -> ADD: Internal data structures for annotations handling.
-> FIX: rmb when no doc displayed to restore menu -> FIX: rmb when no doc displayed to restore menu
-> ADD: Save zoom setting on exit
-> ADD: Put fonts used by the document on the properties dialog -> ADD: Put fonts used by the document on the properties dialog
-> ADD: partial implementation of XYZ links -> ADD: partial implementation of XYZ links
-> ADD: google-like search on thumbnails -> ADD: google-like search on thumbnails

@ -143,6 +143,26 @@
</entry> </entry>
<entry key="SplitterSizes" type="IntList" /> <entry key="SplitterSizes" type="IntList" />
</group> </group>
<group name="Nav Panel" >
<entry key="CurrentPageOnly" type="Bool" >
<default>false</default>
</entry>
<entry key="GroupByAuthor" type="Bool" >
<default>true</default>
</entry>
<entry key="GroupByPage" type="Bool" >
<default>true</default>
</entry>
<entry key="FilterBookmarks" type="Bool" >
<default>false</default>
</entry>
<entry key="ShowSearchBar" type="Bool" >
<default>true</default>
</entry>
<entry key="SyncThumbnailsViewport" type="Bool" >
<default>true</default>
</entry>
</group>
<group name="PageView" > <group name="PageView" >
<entry key="CenterFirstPageInRow" type="Bool" > <entry key="CenterFirstPageInRow" type="Bool" >
<default>false</default> <default>false</default>
@ -161,25 +181,14 @@
<entry key="ViewContinuous" type="Bool" > <entry key="ViewContinuous" type="Bool" >
<default>true</default> <default>true</default>
</entry> </entry>
</group> <entry key="ZoomMode" type="UInt" >
<group name="SideView" > <default>2</default>
<entry key="CurrentPageOnly" type="Bool" > <max>2</max>
<default>false</default>
</entry>
<entry key="GroupByAuthor" type="Bool" >
<default>true</default>
</entry>
<entry key="GroupByPage" type="Bool" >
<default>true</default>
</entry>
<entry key="FilterBookmarks" type="Bool" >
<default>false</default>
</entry> </entry>
<entry key="ShowSearchBar" type="Bool" > <entry key="ZoomFactor" type="Double" >
<default>true</default> <default>1.0</default>
</entry> <min>0.1</min>
<entry key="SyncThumbnailsViewport" type="Bool" > <max>4.0</max>
<default>true</default>
</entry> </entry>
</group> </group>
</kcfg> </kcfg>

@ -132,8 +132,8 @@ PageView::PageView( QWidget *parent, KPDFDocument *document )
// create and initialize private storage structure // create and initialize private storage structure
d = new PageViewPrivate(); d = new PageViewPrivate();
d->document = document; d->document = document;
d->zoomMode = ZoomFitPage; d->zoomMode = (PageView::ZoomMode) Settings::zoomMode();
d->zoomFactor = 1.0; d->zoomFactor = Settings::zoomFactor();
d->mouseMode = MouseNormal; d->mouseMode = MouseNormal;
d->mouseMidZooming = false; d->mouseMidZooming = false;
d->mouseSelecting = false; d->mouseSelecting = false;
@ -1528,6 +1528,9 @@ void PageView::updateZoom( ZoomMode newZoomMode )
d->aZoomFitWidth->setChecked( checkedZoomAction == d->aZoomFitWidth ); d->aZoomFitWidth->setChecked( checkedZoomAction == d->aZoomFitWidth );
d->aZoomFitPage->setChecked( checkedZoomAction == d->aZoomFitPage ); d->aZoomFitPage->setChecked( checkedZoomAction == d->aZoomFitPage );
d->aZoomFitText->setChecked( checkedZoomAction == d->aZoomFitText ); d->aZoomFitText->setChecked( checkedZoomAction == d->aZoomFitText );
// store zoom settings
Settings::setZoomMode( newZoomMode );
Settings::setZoomFactor( newFactor );
} }
} }

@ -44,7 +44,7 @@ class PageView : public QScrollView, public DocumentObserver
~PageView(); ~PageView();
// Zoom mode ( last 4 are internally used only! ) // Zoom mode ( last 4 are internally used only! )
enum ZoomMode { ZoomFixed, ZoomFitWidth, ZoomFitPage, ZoomFitText, enum ZoomMode { ZoomFixed = 0, ZoomFitWidth = 1, ZoomFitPage = 2, ZoomFitText,
ZoomIn, ZoomOut, ZoomRefreshCurrent }; ZoomIn, ZoomOut, ZoomRefreshCurrent };
enum MouseMode { MouseNormal, MouseZoom, MouseSelect }; enum MouseMode { MouseNormal, MouseZoom, MouseSelect };

Loading…
Cancel
Save