diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-17 17:39:09 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-17 17:39:09 -0400 |
commit | d585d64718941d54b004daa0ece491783ef78ad8 (patch) | |
tree | df70886b64fad4a22d3243c93806524ecadbcead /src-qt5/desktop-utils/lumina-pdf/mainUI.h | |
parent | Overhaul of MuPDF rendering. Fixed bugs and improved the find highlight syste... (diff) | |
download | lumina-d585d64718941d54b004daa0ece491783ef78ad8.tar.gz lumina-d585d64718941d54b004daa0ece491783ef78ad8.tar.bz2 lumina-d585d64718941d54b004daa0ece491783ef78ad8.zip |
Replaced tabs with spaces and removed some unneeded comments
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/mainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/mainUI.h | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/mainUI.h b/src-qt5/desktop-utils/lumina-pdf/mainUI.h index af12c33c..89fbed1d 100644 --- a/src-qt5/desktop-utils/lumina-pdf/mainUI.h +++ b/src-qt5/desktop-utils/lumina-pdf/mainUI.h @@ -27,85 +27,85 @@ #include "textData.h" namespace Ui{ - class MainUI; + class MainUI; }; class MainUI : public QMainWindow{ - Q_OBJECT + Q_OBJECT public: - MainUI(); - ~MainUI(); + MainUI(); + ~MainUI(); - void loadFile(QString path); + void loadFile(QString path); private: - QSizeF pageSize; - PrintWidget *WIDGET; - Ui::MainUI *ui; - PropDialog *PROPDIALOG; - QPrintDialog *PrintDLG; - QString lastdir; - bool matchCase; - QList<TextData*> results; - QList<int> loadingQueue; - int currentHighlight; - - //Other Interface elements - QProgressBar *progress; - QAction *progAct; //action associated with the progressbar - QTimer *clockTimer; - QMenu *contextMenu; - //QFrame *frame_presenter; - QLabel *label_clock, *label_page; - QAction *clockAct, *pageAct; - - //PDF Page Loading cache variables - Renderer *BACKEND; - - void loadPage(int num, MainUI *obj, QSize dpi); - - //Functions/variables for the presentation mode - PresentationLabel *presentationLabel; - QScreen *getScreen(bool current, bool &cancelled); - int CurrentPage; - void startPresentation(bool atStart); - void ShowPage(int page); - void endPresentation(); + QSizeF pageSize; + PrintWidget *WIDGET; + Ui::MainUI *ui; + PropDialog *PROPDIALOG; + QPrintDialog *PrintDLG; + QString lastdir; + bool matchCase; + QList<TextData*> results; + QList<int> loadingQueue; + int currentHighlight; + + //Other Interface elements + QProgressBar *progress; + QAction *progAct; //action associated with the progressbar + QTimer *clockTimer; + QMenu *contextMenu; + //QFrame *frame_presenter; + QLabel *label_clock, *label_page; + QAction *clockAct, *pageAct; + + //PDF Page Loading cache variables + Renderer *BACKEND; + + void loadPage(int num, MainUI *obj, QSize dpi); + + //Functions/variables for the presentation mode + PresentationLabel *presentationLabel; + QScreen *getScreen(bool current, bool &cancelled); + int CurrentPage; + void startPresentation(bool atStart); + void ShowPage(int page); + void endPresentation(); private slots: - void startLoadingPages(); - void slotPageLoaded(int); + void startLoadingPages(); + void slotPageLoaded(int); - //Simplification routines - void nextPage(){ ShowPage( WIDGET->currentPage()+1 ); } //currentPage() starts at 1 rather than 0 - void prevPage(){ ShowPage( WIDGET->currentPage()-1 ); } //currentPage() starts at 1 rather than 0 - void firstPage(){ ShowPage(1); } - void lastPage(){ ShowPage(BACKEND->numPages()); } - void startPresentationHere(){ startPresentation(false); } - void startPresentationBeginning(){ startPresentation(true); } - void closePresentation(){ endPresentation(); } + //Simplification routines + void nextPage(){ ShowPage( WIDGET->currentPage()+1 ); } //currentPage() starts at 1 rather than 0 + void prevPage(){ ShowPage( WIDGET->currentPage()-1 ); } //currentPage() starts at 1 rather than 0 + void firstPage(){ ShowPage(1); } + void lastPage(){ ShowPage(BACKEND->numPages()); } + void startPresentationHere(){ startPresentation(false); } + void startPresentationBeginning(){ startPresentation(true); } + void closePresentation(){ endPresentation(); } - void find(QString text, bool forward); - void showBookmarks(); + void find(QString text, bool forward); + void showBookmarks(); - void paintToPrinter(QPrinter *PRINTER); + void paintToPrinter(QPrinter *PRINTER); - //Button Slots - void OpenNewFile(); + //Button Slots + void OpenNewFile(); - //Other interface slots - void updateClock(); - void updatePageNumber(); - void showContextMenu(const QPoint&){ contextMenu->popup(QCursor::pos()); } - void updateContextMenu(); - //void setScroll(bool); + //Other interface slots + void updateClock(); + void updatePageNumber(); + void showContextMenu(const QPoint&){ contextMenu->popup(QCursor::pos()); } + void updateContextMenu(); + //void setScroll(bool); protected: - void keyPressEvent(QKeyEvent*); - void wheelEvent(QWheelEvent*); - void closeEvent(QCloseEvent *ev){ - endPresentation(); - QMainWindow::closeEvent(ev); - } + void keyPressEvent(QKeyEvent*); + void wheelEvent(QWheelEvent*); + void closeEvent(QCloseEvent *ev){ + endPresentation(); + QMainWindow::closeEvent(ev); + } }; #endif |