diff options
author | Ken Moore <ken@ixsystems.com> | 2018-01-24 14:26:20 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-01-24 14:26:20 -0500 |
commit | 1adfea70bef728d359818db15ee3f6339303e360 (patch) | |
tree | 7bfd8feb4fe73689c5481e041213be4c2954ffd6 /src-qt5/desktop-utils/lumina-pdf/mainUI.h | |
parent | Fix up the rendering quality of the lumina-pdf pages. (diff) | |
download | lumina-1adfea70bef728d359818db15ee3f6339303e360.tar.gz lumina-1adfea70bef728d359818db15ee3f6339303e360.tar.bz2 lumina-1adfea70bef728d359818db15ee3f6339303e360.zip |
Some more final changes to lumina-pdf.
This is now completely useable as full-fledged PDF **viewer** (not editor yet).
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/mainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/mainUI.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/mainUI.h b/src-qt5/desktop-utils/lumina-pdf/mainUI.h index ca32f74d..5a22905a 100644 --- a/src-qt5/desktop-utils/lumina-pdf/mainUI.h +++ b/src-qt5/desktop-utils/lumina-pdf/mainUI.h @@ -40,12 +40,12 @@ private: Poppler::Document *DOC; PrintWidget *WIDGET; Ui::MainUI *ui; - PropDialog *PROPDIALOG; + PropDialog *PROPDIALOG; QPrintDialog *PrintDLG; QString lastdir; - bool matchCase; - QMap<Poppler::TextBox*, int> results; - int currentHighlight; + bool matchCase; + QMap<Poppler::TextBox*, int> results; + int currentHighlight; //Other Interface elements QProgressBar *progress; @@ -53,8 +53,8 @@ private: QTimer *clockTimer; QMenu *contextMenu; //QFrame *frame_presenter; - QLabel *label_clock; - QAction *clockAct; + QLabel *label_clock, *label_page; + QAction *clockAct, *pageAct; //PDF Page Loading cache variables QHash<int, QImage> loadingHash; @@ -95,12 +95,14 @@ private slots: //Other interface slots void updateClock(); + void updatePageNumber(); void showContextMenu(const QPoint&){ contextMenu->popup(QCursor::pos()); } void updateContextMenu(); void setScroll(bool); void rotate(bool); + signals: void PageLoaded(int); @@ -108,5 +110,9 @@ protected: void keyPressEvent(QKeyEvent*); void wheelEvent(QWheelEvent*); void resizeEvent(QResizeEvent*); + void closeEvent(QCloseEvent *ev){ + endPresentation(); + QMainWindow::closeEvent(ev); + } }; #endif |