Small Maemo fixes. Still has problems with restoring previous reading
[dorian] / mainwindow.h
index 82c7f98..1f50c41 100755 (executable)
@@ -1,7 +1,8 @@
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
-#include <QtGui>
+#include <QModelIndex>
+#include <QEvent>
 
 #include "adopterwindow.h"
 
@@ -21,11 +22,11 @@ class MainWindow: public AdopterWindow
 
 public:
     MainWindow(QWidget *parent = 0);
-    ~MainWindow();
+    void initialize();
 
 public slots:
     void showLibrary();
-    void showInfo();
+    void rotate();
     void showSettings();
     void showDevTools();
     void showBookmarks();
@@ -50,16 +51,14 @@ public slots:
     void onEndLoad();
 
 protected:
-    void closeEvent(QCloseEvent *event);
     void timerEvent(QTimerEvent *event);
-    void resizeEvent(QResizeEvent *event);
 
 private:
     void setCurrentBook(const QModelIndex &current);
     BookView *view;
     QAction *settingsAction;
     QAction *libraryAction;
-    QAction *infoAction;
+    QAction *rotateAction;
     QAction *devToolsAction;
     QAction *bookmarksAction;
     QAction *fullScreenAction;
@@ -71,9 +70,9 @@ private:
     QModelIndex mCurrent;
     FullScreenWindow *fullScreenWindow;
     int preventBlankingTimer;
-    Progress *progress;
-    TranslucentButton *previousButton;
-    TranslucentButton *nextButton;
+    Progress *prog;
+    TranslucentButton *prev;
+    TranslucentButton *next;
     ProgressDialog *libraryProgress;
 };