~ubuntu-branches/debian/stretch/qpdfview/stretch

« back to all changes in this revision

Viewing changes to sources/mainwindow.h

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2014-05-19 14:39:20 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20140519143920-buukpma5b4hmnpt3
Tags: 0.4.10-1
* New upstream release.
* Implemented an option to zoom to selection (Closes: #739554)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
#include "global.h"
44
44
 
 
45
namespace qpdfview
 
46
{
 
47
 
45
48
class Settings;
46
49
class DocumentView;
47
50
class TabWidget;
90
93
    void on_currentTab_scaleModeChanged(ScaleMode scaleMode);
91
94
    void on_currentTab_scaleFactorChanged(qreal scaleFactor);
92
95
 
 
96
    void on_currentTab_linkClicked(int page);
93
97
    void on_currentTab_linkClicked(const QString& filePath, int page);
94
98
 
95
99
    void on_currentTab_invertColorsChanged(bool invertColors);
200
204
    void on_database_tabRestored(const QString& absoluteFilePath, bool continuousMode, LayoutMode layoutMode, ScaleMode scaleMode, qreal scaleFactor, Rotation rotation, int currentPage);
201
205
    void on_database_bookmarkRestored(const QString& absoluteFilePath, const JumpList& pages);
202
206
 
 
207
    void on_saveDatabase_timeout();
 
208
 
203
209
protected:
204
210
    void closeEvent(QCloseEvent* event);
205
211
 
223
229
    int addTab(DocumentView* tab);
224
230
    void closeTab(DocumentView* tab);
225
231
 
 
232
    QString tabTitle(const DocumentView* tab) const;
 
233
 
226
234
    bool saveModifications(DocumentView* tab);
227
235
 
228
236
    void setWindowTitleForCurrentTab();
229
237
    BookmarkMenu* bookmarkForCurrentTab() const;
230
238
 
 
239
    void prepareDatabase();
 
240
 
231
241
    void saveTabs() const;
232
242
    void saveBookmarks() const;
233
243
 
 
244
    QTimer* m_saveDatabaseTimer;
 
245
 
234
246
    SpinBox* m_currentPageSpinBox;
235
247
    QWidgetAction* m_currentPageAction;
236
248
 
387
399
 
388
400
#endif // WITH_DBUS
389
401
 
 
402
} // qpdfview
 
403
 
390
404
#endif // MAINWINDOW_H