Add close softkey to dialogs on Symbian.
[dorian] / mainwindow.h
index c380a26..dc75edf 100755 (executable)
@@ -3,7 +3,7 @@
 
 #include <QtGui>
 
-#include "bookwindow.h"
+#include "adopterwindow.h"
 
 class QString;
 class QModelIndex;
@@ -14,7 +14,7 @@ class FullScreenWindow;
 class Progress;
 class TranslucentButton;
 
-class MainWindow: public BookWindow
+class MainWindow: public AdopterWindow
 {
     Q_OBJECT
 
@@ -39,6 +39,8 @@ public slots:
     void showChapters();
     void onGoToChapter(int index);
     void about();
+    void goToNextPage();
+    void goToPreviousPage();
 
 protected:
     void closeEvent(QCloseEvent *event);
@@ -47,8 +49,6 @@ protected:
 
 private:
     void setCurrentBook(const QModelIndex &current);
-    QAction *addToolBarAction(const QObject *receiver, const char *member,
-                              const QString &name);
     BookView *view;
     QAction *settingsAction;
     QAction *libraryAction;
@@ -58,10 +58,7 @@ private:
     QAction *fullScreenAction;
     QAction *forwardAction;
     QAction *backwardAction;
-    QAction *previousAction;
-    QAction *nextAction;
     QAction *chaptersAction;
-    QToolBar *toolBar;
     QDialog *settings;
     DevTools *devTools;
     QModelIndex mCurrent;