X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;h=1f50c41e64ac0dd091458c24b0f740bc74c7335a;hb=0602a1b0ce698da6ef427676db2660e174e28d49;hp=4ac7f3f9725f599f4cfc4608b66cfaba1698e355;hpb=5d2c3cdf432afd91f2ee5851678a1f763493b10c;p=dorian diff --git a/mainwindow.h b/mainwindow.h index 4ac7f3f..1f50c41 100755 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,7 +1,8 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include +#include +#include #include "adopterwindow.h" @@ -12,6 +13,7 @@ class BookView; class Book; class FullScreenWindow; class Progress; +class ProgressDialog; class TranslucentButton; class MainWindow: public AdopterWindow @@ -20,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(); @@ -34,44 +36,44 @@ public slots: void onSettingsChanged(const QString &key); void onPartLoadStart(); void onPartLoadEnd(int index); - void onAddBookmark(); + void onAddBookmark(const QString ¬e); void onGoToBookmark(int index); void showChapters(); void onGoToChapter(int index); void about(); void goToNextPage(); void goToPreviousPage(); + void onBeginUpgrade(int total); + void onUpgrading(const QString &book); + void onEndUpgrade(); + void onBeginLoad(int total); + void onLoading(const QString &book); + void onEndLoad(); protected: - void closeEvent(QCloseEvent *event); void timerEvent(QTimerEvent *event); - void resizeEvent(QResizeEvent *event); private: void setCurrentBook(const QModelIndex ¤t); - QAction *addToolBarAction(const QObject *receiver, const char *member, - const QString &name); BookView *view; QAction *settingsAction; QAction *libraryAction; - QAction *infoAction; + QAction *rotateAction; QAction *devToolsAction; QAction *bookmarksAction; QAction *fullScreenAction; QAction *forwardAction; QAction *backwardAction; - QAction *previousAction; - QAction *nextAction; QAction *chaptersAction; - QToolBar *toolBar; QDialog *settings; DevTools *devTools; QModelIndex mCurrent; FullScreenWindow *fullScreenWindow; int preventBlankingTimer; - Progress *progress; - TranslucentButton *previousButton; - TranslucentButton *nextButton; + Progress *prog; + TranslucentButton *prev; + TranslucentButton *next; + ProgressDialog *libraryProgress; }; #endif // MAINWINDOW_H