~ubuntu-branches/ubuntu/vivid/qpdfview/vivid

« back to all changes in this revision

Viewing changes to .pc/toolbars.patch/sources/settings.h

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2014-10-22 21:49:15 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20141022214915-agqeoe318lzs2s4d
Tags: 0.4.12-1
* New upstream release.
* Fixed option to zoom to selection and implemented tiled rendering
  (Closes: #739554)
* Enable support for qt5 and poppler-qt5.
* Explicit dependence on hicolor-icon-theme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        inline int cacheSize() const { return m_cacheSize; }
56
56
        void setCacheSize(int cacheSize);
57
57
 
 
58
        inline bool useTiling() const { return m_useTiling; }
 
59
        void setUseTiling(bool useTiling);
 
60
 
 
61
        inline int tileSize() const { return m_tileSize; }
 
62
 
58
63
        inline const QIcon& progressIcon() const { return m_progressIcon; }
59
64
        inline const QIcon& errorIcon() const { return m_errorIcon; }
60
65
 
64
69
        inline bool useDevicePixelRatio() const { return m_useDevicePixelRatio; }
65
70
        void setUseDevicePixelRatio(bool useDevicePixelRatio);
66
71
 
 
72
        inline bool trimMargins() const { return m_trimMargins; }
 
73
        void setTrimMargins(bool trimMargins);
 
74
 
67
75
        inline bool decoratePages() const { return m_decoratePages; }
68
 
        void setDecoratePages(bool decorate);
 
76
        void setDecoratePages(bool decoratePages);
69
77
 
70
78
        inline bool decorateLinks() const { return m_decorateLinks; }
71
 
        void setDecorateLinks(bool decorate);
 
79
        void setDecorateLinks(bool decorateLinks);
72
80
 
73
81
        inline bool decorateFormFields() const { return m_decorateFormFields; }
74
 
        void setDecorateFormFields(bool decorate);
 
82
        void setDecorateFormFields(bool decorateFormFields);
75
83
 
76
84
        inline const QColor& backgroundColor() const { return m_backgroundColor; }
77
 
        void setBackgroundColor(const QColor& color);
 
85
        void setBackgroundColor(const QColor& backgroundColor);
78
86
 
79
87
        inline const QColor& paperColor() const { return m_paperColor; }
80
 
        void setPaperColor(const QColor& color);
 
88
        void setPaperColor(const QColor& paperColor);
81
89
 
82
90
        inline const QColor& highlightColor() const { return m_highlightColor; }
83
 
        void setHighlightColor(const QColor& color);
 
91
        void setHighlightColor(const QColor& highlightColor);
84
92
 
85
93
        QColor annotationColor() const;
86
 
        void setAnnotationColor(const QColor& color);
 
94
        void setAnnotationColor(const QColor& annotationColor);
87
95
 
88
96
        Qt::KeyboardModifiers copyToClipboardModifiers() const;
89
97
        void setCopyToClipboardModifiers(const Qt::KeyboardModifiers& modifiers);
105
113
 
106
114
        int m_cacheSize;
107
115
 
 
116
        bool m_useTiling;
 
117
        int m_tileSize;
 
118
 
108
119
        QIcon m_progressIcon;
109
120
        QIcon m_errorIcon;
110
121
 
111
122
        bool m_keepObsoletePixmaps;
112
123
        bool m_useDevicePixelRatio;
113
124
 
 
125
        bool m_trimMargins;
 
126
 
114
127
        bool m_decoratePages;
115
128
        bool m_decorateLinks;
116
129
        bool m_decorateFormFields;
176
189
        inline bool limitThumbnailsToResults() const { return m_limitThumbnailsToResults; }
177
190
        void setLimitThumbnailsToResults(bool limitThumbnailsToResults);
178
191
 
 
192
        qreal minimumScaleFactor() const;
 
193
        qreal maximumScaleFactor() const;
 
194
 
 
195
        qreal zoomFactor() const;
 
196
        void setZoomFactor(qreal zoomFactor);
 
197
 
179
198
        inline qreal pageSpacing() const { return m_pageSpacing; }
180
199
        void setPageSpacing(qreal pageSpacing);
181
200
 
256
275
    {
257
276
    public:
258
277
        bool trackRecentlyUsed() const;
259
 
        void setTrackRecentlyUsed(bool on);
 
278
        void setTrackRecentlyUsed(bool trackRecentlyUsed);
260
279
 
261
280
        int recentlyUsedCount() const;
262
281
        void setRecentlyUsedCount(int recentlyUsedCount);
265
284
        void setRecentlyUsed(const QStringList& recentlyUsed);
266
285
 
267
286
        bool keepRecentlyClosed() const;
268
 
        void setKeepRecentlyClosed(bool on);
 
287
        void setKeepRecentlyClosed(bool keepRecentlyClosed);
269
288
 
270
289
        int recentlyClosedCount() const;
271
290
        void setRecentlyClosedCount(int recentlyClosedCount);
272
291
 
273
292
        bool restoreTabs() const;
274
 
        void setRestoreTabs(bool on);
 
293
        void setRestoreTabs(bool restoreTabs);
275
294
 
276
295
        bool restoreBookmarks() const;
277
 
        void setRestoreBookmarks(bool on);
 
296
        void setRestoreBookmarks(bool restoreBookmarks);
278
297
 
279
298
        bool restorePerFileSettings() const;
280
 
        void setRestorePerFileSettings(bool on);
 
299
        void setRestorePerFileSettings(bool restorePerFileSettings);
281
300
 
282
301
        int saveDatabaseInterval() const;
 
302
        void setSaveDatabaseInterval(int saveDatabaseInterval);
283
303
 
284
304
        int tabPosition() const;
285
305
        void setTabPosition(int tabPosition);
302
322
        bool instanceNameInWindowTitle() const;
303
323
        void setInstanceNameInWindowTitle(bool instanceNameInWindowTitle);
304
324
 
 
325
        bool usePageLabel() const;
 
326
        void setUsePageLabel(bool usePageLabel);
 
327
 
305
328
        bool synchronizeOutlineView() const;
306
329
        void setSynchronizeOutlineView(bool synchronizeOutlineView);
307
330
 
314
337
        QStringList viewToolBar() const;
315
338
        void setViewToolBar(const QStringList& viewToolBar);
316
339
 
 
340
        bool toggleToolAndMenuBarsWithFullscreen() const;
 
341
        void setToggleToolAndMenuBarsWithFullscreen(bool toggleToolAndMenuBarsWithFullscreen) const;
 
342
 
317
343
        bool hasIconTheme() const;
318
344
        QString iconTheme() const;
319
345
 
372
398
        bool fitToPage() const;
373
399
        void setFitToPage(bool fitToPage);
374
400
 
 
401
#if QT_VERSION < QT_VERSION_CHECK(5,2,0)
 
402
 
375
403
        PrintOptions::PageSet pageSet() const;
376
404
        void setPageSet(PrintOptions::PageSet pageSet);
377
405
 
381
409
        PrintOptions::NumberUpLayout numberUpLayout() const;
382
410
        void setNumberUpLayout(PrintOptions::NumberUpLayout numberUpLayout);
383
411
 
 
412
#endif // QT_VERSION
 
413
 
384
414
    private:
385
415
        PrintDialog(QSettings* settings);
386
416
        friend class Settings;
423
453
    public:
424
454
        static inline int cacheSize() { return 32 * 1024 * 1024; }
425
455
 
 
456
        static inline bool useTiling() { return false; }
 
457
        static inline int tileSize() { return 1024; }
 
458
 
426
459
        static inline bool keepObsoletePixmaps() { return false; }
427
460
        static inline bool useDevicePixelRatio() { return false; }
428
461
 
 
462
        static inline bool trimMargins() { return false; }
 
463
 
429
464
        static inline bool decoratePages() { return true; }
430
465
        static inline bool decorateLinks() { return true; }
431
466
        static inline bool decorateFormFields() { return true; }
482
517
        static inline qreal minimumScaleFactor() { return 0.1; }
483
518
        static inline qreal maximumScaleFactor() { return 10.0; }
484
519
 
485
 
        static inline qreal zoomBy() { return 0.1; }
 
520
        static inline qreal zoomFactor() { return 1.1; }
486
521
 
487
522
        static inline qreal pageSpacing() { return 5.0; }
488
523
        static inline qreal thumbnailSpacing() { return 3.0; }
491
526
 
492
527
        static inline bool matchCase() { return false; }
493
528
 
494
 
        static inline int highlightDuration() { return 5000; }
 
529
        static inline int highlightDuration() { return 5 * 1000; }
495
530
        static inline QString sourceEditor() { return QString(); }
496
531
 
497
532
        static inline Qt::KeyboardModifiers zoomModifiers() { return Qt::ControlModifier; }
534
569
        static inline bool restoreBookmarks() { return false; }
535
570
        static inline bool restorePerFileSettings() { return false; }
536
571
 
537
 
        static inline int saveDatabaseInterval() { return 30000; }
 
572
        static inline int saveDatabaseInterval() { return 5 * 60 * 1000; }
538
573
 
539
574
        static inline int tabPosition() { return 0; }
540
575
        static inline int tabVisibility() { return 0; }
546
581
        static inline bool documentTitleAsTabTitle() { return true; }
547
582
 
548
583
        static inline bool currentPageInWindowTitle() { return false; }
549
 
        static inline bool instancfeNameInWindowTitle() { return false; }
 
584
        static inline bool instanceNameInWindowTitle() { return false; }
 
585
 
 
586
        static inline bool usePageLabel() { return true; }
550
587
 
551
588
        static inline bool synchronizeOutlineView() { return false; }
552
589
 
554
591
        static inline QStringList editToolBar() { return QStringList() << "currentPage" << "previousPage" << "nextPage"; }
555
592
        static inline QStringList viewToolBar() { return QStringList() << "scaleFactor" << "zoomIn" << "zoomOut"; }
556
593
 
 
594
        static inline bool toggleToolAndMenuBarsWithFullscreen() { return false; }
 
595
 
557
596
        static QString path();
558
597
 
559
598
    private:
576
615
 
577
616
        static inline bool fitToPage() { return false; }
578
617
 
 
618
#if QT_VERSION < QT_VERSION_CHECK(5,2,0)
 
619
 
579
620
        static inline PrintOptions::PageSet pageSet() { return PrintOptions::AllPages; }
580
621
 
581
622
        static inline PrintOptions::NumberUp numberUp() { return PrintOptions::SinglePage; }
582
623
        static inline PrintOptions::NumberUpLayout numberUpLayout() { return PrintOptions::LeftRightTopBottom; }
583
624
 
 
625
#endif // QT_VERSION
 
626
 
584
627
    private:
585
628
        PrintDialog() {}
586
629