Fix downloading several books. Update version.
[dorian] / mainwindow.h
index 3a40286..9bfbab4 100755 (executable)
@@ -1,7 +1,8 @@
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
-#include <QtGui>
+#include <QModelIndex>
+#include <QEvent>
 
 #include "adopterwindow.h"
 
@@ -12,6 +13,7 @@ class BookView;
 class Book;
 class FullScreenWindow;
 class Progress;
+class ProgressDialog;
 class TranslucentButton;
 
 class MainWindow: public AdopterWindow
@@ -20,7 +22,7 @@ class MainWindow: public AdopterWindow
 
 public:
     MainWindow(QWidget *parent = 0);
-    ~MainWindow();
+    void initialize();
 
 public slots:
     void showLibrary();
@@ -49,9 +51,7 @@ public slots:
     void onEndLoad();
 
 protected:
-    void closeEvent(QCloseEvent *event);
     void timerEvent(QTimerEvent *event);
-    void resizeEvent(QResizeEvent *event);
 
 private:
     void setCurrentBook(const QModelIndex &current);
@@ -70,10 +70,10 @@ private:
     QModelIndex mCurrent;
     FullScreenWindow *fullScreenWindow;
     int preventBlankingTimer;
-    Progress *progress;
-    TranslucentButton *previousButton;
-    TranslucentButton *nextButton;
-    QProgressDialog *libraryProgress;
+    Progress *prog;
+    TranslucentButton *prev;
+    TranslucentButton *next;
+    ProgressDialog *libraryProgress;
 };
 
 #endif // MAINWINDOW_H