X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;h=327b334ee97241049aefd753bf397f5ee9886955;hb=145f1e2a34ad1c0b74f5b51692dc8b38fd0332ec;hp=eef5444afb61867db4c45d3bdc7a4a2e4ef57c91;hpb=36a875cc735d49f85f02a325c915979863d2b063;p=dorian diff --git a/mainwindow.h b/mainwindow.h index eef5444..327b334 100755 --- a/mainwindow.h +++ b/mainwindow.h @@ -2,6 +2,7 @@ #define MAINWINDOW_H #include +#include "bookfinder.h" class QString; class QModelIndex; @@ -9,6 +10,7 @@ class DevTools; class BookView; class Book; class FullScreenWindow; +class Progress; class MainWindow: public QMainWindow { @@ -16,7 +18,7 @@ class MainWindow: public QMainWindow public: MainWindow(QWidget *parent = 0); - virtual ~MainWindow() {} + ~MainWindow(); public slots: void showLibrary(); @@ -28,21 +30,23 @@ public slots: void showRegular(); void showBig(); void onSettingsChanged(const QString &key); - void onChapterLoadStart(); - void onChapterLoadEnd(int index); + void onPartLoadStart(); + void onPartLoadEnd(int index); void onAddBookmark(); void onGoToBookmark(int index); void showChapters(); void onGoToChapter(int index); protected: - virtual void closeEvent(QCloseEvent *event); - virtual void timerEvent(QTimerEvent *event); + void closeEvent(QCloseEvent *event); + void timerEvent(QTimerEvent *event); + void resizeEvent(QResizeEvent *event); private: void setCurrentBook(const QModelIndex ¤t); QAction *addToolBarAction(const QObject *receiver, const char *member, const QString &name); + void grabZoomKeys(); BookView *view; QAction *settingsAction; QAction *libraryAction; @@ -61,6 +65,9 @@ private: QModelIndex mCurrent; FullScreenWindow *fullScreenWindow; int preventBlankingTimer; + BookFinder *bookFinder; + BookFinderThread bookFinderThread; + Progress *progress; }; #endif // MAINWINDOW_H