~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/documentview.h

  • Committer: Adam Reichold
  • Date: 2018-05-04 17:49:20 UTC
  • Revision ID: adam.reichold@t-online.de-20180504174920-mqn268i0h46fq311
Add static_resources configuration option to embed translations and online help into binary to facilitate single binary builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
Copyright 2014, 2021 S. Razi Alavizadeh
4
 
Copyright 2020 Johan Björklund
5
 
Copyright 2012-2014, 2018, 2021 Adam Reichold
 
3
Copyright 2014 S. Razi Alavizadeh
 
4
Copyright 2012-2014, 2018 Adam Reichold
6
5
Copyright 2014 Dorian Scholz
7
6
Copyright 2018 Egor Zenkov
8
7
 
33
32
 
34
33
class QDomNode;
35
34
class QFileSystemWatcher;
36
 
class QGestureEvent;
37
35
class QPrinter;
38
36
class QStandardItemModel;
39
37
 
114
112
    bool invertColors() const { return m_renderFlags.testFlag(InvertColors); }
115
113
    void setInvertColors(bool invertColors) { setRenderFlag(InvertColors, invertColors); }
116
114
 
117
 
    bool invertLightness() const { return m_renderFlags.testFlag(InvertLightness); }
118
 
    void setInvertLightness(bool invertLightness) { setRenderFlag(InvertLightness, invertLightness); }
119
 
 
120
115
    bool convertToGrayscale() const { return m_renderFlags.testFlag(ConvertToGrayscale); }
121
116
    void setConvertToGrayscale(bool convertToGrayscale) { setRenderFlag(ConvertToGrayscale, convertToGrayscale); }
122
117
 
195
190
    void linkClicked(int page);
196
191
    void linkClicked(bool newTab, const QString& filePath, int page);
197
192
 
198
 
    void appendTextToBookmarkComment(int page, const QString& text);
199
 
 
200
193
    void renderFlagsChanged(qpdfview::RenderFlags renderFlags);
201
194
 
202
195
    void invertColorsChanged(bool invertColors);
203
 
    void invertLightnessChanged(bool invertLightness);
204
196
    void convertToGrayscaleChanged(bool convertToGrayscale);
205
197
    void trimMarginsChanged(bool trimMargins);
206
198
 
279
271
    void on_pages_wasModified();
280
272
 
281
273
protected:
282
 
    bool event(QEvent* event);
283
 
 
284
274
    void resizeEvent(QResizeEvent* event);
285
275
 
286
276
    void keyPressEvent(QKeyEvent* event);
287
277
    void mousePressEvent(QMouseEvent* event);
288
278
    void wheelEvent(QWheelEvent* event);
289
 
    void gestureEvent(QGestureEvent* event);
290
279
 
291
280
    void contextMenuEvent(QContextMenuEvent* event);
292
281