~ubuntu-branches/debian/sid/qpdfview/sid

« back to all changes in this revision

Viewing changes to sources/documentview.h

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2013-05-26 13:52:50 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20130526135250-s1rhw935iqd8fcfs
Tags: 0.4.3-1
* New upstream release.
* Added menu file and fetch xpm icon file in debian folder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
class ThumbnailItem;
45
45
class SearchTask;
46
46
class PresentationView;
 
47
class ShortcutHandler;
47
48
 
48
49
class DocumentView : public QGraphicsView
49
50
{
50
51
    Q_OBJECT
51
52
 
52
53
public:
53
 
    static const QKeySequence& skipBackwardShortcut();
54
 
    static void setSkipBackwardShortcut(const QKeySequence& shortcut);
55
 
 
56
 
    static const QKeySequence& skipForwardShortcut();
57
 
    static void setSkipForwardShortcut(const QKeySequence& shortcut);
58
 
 
59
 
    static const QKeySequence& moveUpShortcut();
60
 
    static void setMoveUpShortcut(const QKeySequence& shortcut);
61
 
 
62
 
    static const QKeySequence& moveDownShortcut();
63
 
    static void setMoveDownShortcut(const QKeySequence& shortcut);
64
 
 
65
 
    static const QKeySequence& moveLeftShortcut();
66
 
    static void setMoveLeftShortcut(const QKeySequence& shortcut);
67
 
 
68
 
    static const QKeySequence& moveRightShortcut();
69
 
    static void setMoveRightShortcut(const QKeySequence& shortcut);
70
 
 
71
54
    explicit DocumentView(QWidget* parent = 0);
72
55
    ~DocumentView();
73
56
 
158
141
    bool canJumpForward() const;
159
142
    void jumpForward();
160
143
 
161
 
    void highlightOnCurrentPage(const QRectF& highlight);
 
144
    void temporaryHighlight(int page, const QRectF& highlight);
162
145
 
163
146
    void startSearch(const QString& text, bool matchCase = true);
164
147
    void cancelSearch();
178
161
protected slots:
179
162
    void on_verticalScrollBar_valueChanged(int value);
180
163
 
 
164
    void on_prefetch_timeout();
 
165
 
 
166
    void on_temporaryHighlight_timeout();
 
167
 
181
168
    void on_searchTask_resultsReady(int index, QList< QRectF > results);
182
169
 
183
 
    void on_prefetch_timeout();
184
 
 
185
170
    void on_pages_linkClicked(int page, qreal left, qreal top);
186
171
    void on_pages_linkClicked(const QString& url);
187
172
    void on_pages_linkClicked(const QString& fileName, int page);
200
185
 
201
186
private:
202
187
    static Settings* s_settings;
203
 
 
204
 
    static QKeySequence s_skipBackwardShortcut;
205
 
    static QKeySequence s_skipForwardShortcut;
206
 
 
207
 
    static QKeySequence s_moveUpShortcut;
208
 
    static QKeySequence s_moveDownShortcut;
209
 
    static QKeySequence s_moveLeftShortcut;
210
 
    static QKeySequence s_moveRightShortcut;
 
188
    static ShortcutHandler* s_shortcutHandler;
211
189
 
212
190
    QFileSystemWatcher* m_autoRefreshWatcher;
213
191
    QTimer* m_autoRefreshTimer;
280
258
 
281
259
    void prepareThumbnailsScene();
282
260
 
283
 
    void prepareHighlight();
 
261
    void prepareHighlight(int index, const QRectF& highlight);
284
262
 
285
263
    // search
286
264