Improve icons. Move some menu items to the toolbar. Don't show buttons in current...
[dorian] / mainwindow.h
index 53cb276..5995075 100755 (executable)
@@ -2,7 +2,8 @@
 #define MAINWINDOW_H
 
 #include <QtGui>
-#include "bookfinder.h"
+
+#include "adopterwindow.h"
 
 class QString;
 class QModelIndex;
@@ -10,8 +11,10 @@ class DevTools;
 class BookView;
 class Book;
 class FullScreenWindow;
+class Progress;
+class TranslucentButton;
 
-class MainWindow: public QMainWindow
+class MainWindow: public AdopterWindow
 {
     Q_OBJECT
 
@@ -35,10 +38,14 @@ public slots:
     void onGoToBookmark(int index);
     void showChapters();
     void onGoToChapter(int index);
+    void about();
+    void goToNextPage();
+    void goToPreviousPage();
 
 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 &current);
@@ -53,8 +60,6 @@ private:
     QAction *fullScreenAction;
     QAction *forwardAction;
     QAction *backwardAction;
-    QAction *previousAction;
-    QAction *nextAction;
     QAction *chaptersAction;
     QToolBar *toolBar;
     QDialog *settings;
@@ -62,8 +67,9 @@ private:
     QModelIndex mCurrent;
     FullScreenWindow *fullScreenWindow;
     int preventBlankingTimer;
-    BookFinder *bookFinder;
-    BookFinderThread bookFinderThread;
+    Progress *progress;
+    TranslucentButton *previousButton;
+    TranslucentButton *nextButton;
 };
 
 #endif // MAINWINDOW_H