Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andi Sardina Ramos
Okular
Commits
51b07b31
Commit
51b07b31
authored
Jun 24, 2005
by
Enrico Ros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged patch_053,062 (tinyurl.com/8t5ec)
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=428592
parent
60463481
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
21 deletions
+34
-21
TODO
TODO
+1
-0
conf/kpdf.kcfg
conf/kpdf.kcfg
+27
-18
ui/pageview.cpp
ui/pageview.cpp
+5
-2
ui/pageview.h
ui/pageview.h
+1
-1
No files found.
TODO
View file @
51b07b31
...
...
@@ -122,6 +122,7 @@ Done (newest features come first):
-> ADD: annotations: PDF1.6 reader (PDF's annotations -> our data structures)
-> ADD: Internal data structures for annotations handling.
-> 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: partial implementation of XYZ links
-> ADD: google-like search on thumbnails
...
...
conf/kpdf.kcfg
View file @
51b07b31
...
...
@@ -143,6 +143,26 @@
</entry>
<entry
key=
"SplitterSizes"
type=
"IntList"
/>
</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"
>
<entry
key=
"CenterFirstPageInRow"
type=
"Bool"
>
<default>
false
</default>
...
...
@@ -161,25 +181,14 @@
<entry
key=
"ViewContinuous"
type=
"Bool"
>
<default>
true
</default>
</entry>
</group>
<group
name=
"SideView"
>
<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
key=
"ZoomMode"
type=
"UInt"
>
<default>
2
</default>
<max>
2
</max>
</entry>
<entry
key=
"ShowSearchBar"
type=
"Bool"
>
<default>
true
</default>
</entry>
<entry
key=
"SyncThumbnailsViewport"
type=
"Bool"
>
<default>
true
</default>
<entry
key=
"ZoomFactor"
type=
"Double"
>
<default>
1.0
</default>
<min>
0.1
</min>
<max>
4.0
</max>
</entry>
</group>
</kcfg>
ui/pageview.cpp
View file @
51b07b31
...
...
@@ -132,8 +132,8 @@ PageView::PageView( QWidget *parent, KPDFDocument *document )
// create and initialize private storage structure
d
=
new
PageViewPrivate
();
d
->
document
=
document
;
d
->
zoomMode
=
ZoomFitPage
;
d
->
zoomFactor
=
1.0
;
d
->
zoomMode
=
(
PageView
::
ZoomMode
)
Settings
::
zoomMode
()
;
d
->
zoomFactor
=
Settings
::
zoomFactor
()
;
d
->
mouseMode
=
MouseNormal
;
d
->
mouseMidZooming
=
false
;
d
->
mouseSelecting
=
false
;
...
...
@@ -1528,6 +1528,9 @@ void PageView::updateZoom( ZoomMode newZoomMode )
d
->
aZoomFitWidth
->
setChecked
(
checkedZoomAction
==
d
->
aZoomFitWidth
);
d
->
aZoomFitPage
->
setChecked
(
checkedZoomAction
==
d
->
aZoomFitPage
);
d
->
aZoomFitText
->
setChecked
(
checkedZoomAction
==
d
->
aZoomFitText
);
// store zoom settings
Settings
::
setZoomMode
(
newZoomMode
);
Settings
::
setZoomFactor
(
newFactor
);
}
}
...
...
ui/pageview.h
View file @
51b07b31
...
...
@@ -44,7 +44,7 @@ class PageView : public QScrollView, public DocumentObserver
~
PageView
();
// 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
};
enum
MouseMode
{
MouseNormal
,
MouseZoom
,
MouseSelect
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment