Symbian fixes.
[dorian] / mainwindow.h
index 327b334..dc75edf 100755 (executable)
@@ -2,7 +2,8 @@
 #define MAINWINDOW_H
 
 #include <QtGui>
-#include "bookfinder.h"
+
+#include "adopterwindow.h"
 
 class QString;
 class QModelIndex;
@@ -11,8 +12,9 @@ class BookView;
 class Book;
 class FullScreenWindow;
 class Progress;
+class TranslucentButton;
 
-class MainWindow: public QMainWindow
+class MainWindow: public AdopterWindow
 {
     Q_OBJECT
 
@@ -36,6 +38,9 @@ public slots:
     void onGoToBookmark(int index);
     void showChapters();
     void onGoToChapter(int index);
+    void about();
+    void goToNextPage();
+    void goToPreviousPage();
 
 protected:
     void closeEvent(QCloseEvent *event);
@@ -44,9 +49,6 @@ protected:
 
 private:
     void setCurrentBook(const QModelIndex &current);
-    QAction *addToolBarAction(const QObject *receiver, const char *member,
-                              const QString &name);
-    void grabZoomKeys();
     BookView *view;
     QAction *settingsAction;
     QAction *libraryAction;
@@ -56,18 +58,15 @@ private:
     QAction *fullScreenAction;
     QAction *forwardAction;
     QAction *backwardAction;
-    QAction *previousAction;
-    QAction *nextAction;
     QAction *chaptersAction;
-    QToolBar *toolBar;
     QDialog *settings;
     DevTools *devTools;
     QModelIndex mCurrent;
     FullScreenWindow *fullScreenWindow;
     int preventBlankingTimer;
-    BookFinder *bookFinder;
-    BookFinderThread bookFinderThread;
     Progress *progress;
+    TranslucentButton *previousButton;
+    TranslucentButton *nextButton;
 };
 
 #endif // MAINWINDOW_H