X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;h=6e70740b65fac9048549f0b4c7979efe710c3831;hb=59cd01a59c38c7378306f62aef1afcc0059b8412;hp=c380a26607ca95f222a21fe347c7f99c74f2196e;hpb=966f44ba3692d5f32191e860f2ee795c5b939bc3;p=dorian diff --git a/mainwindow.h b/mainwindow.h index c380a26..6e70740 100755 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,9 +1,10 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include +#include +#include -#include "bookwindow.h" +#include "adopterwindow.h" class QString; class QModelIndex; @@ -12,15 +13,16 @@ class BookView; class Book; class FullScreenWindow; class Progress; +class ProgressDialog; class TranslucentButton; -class MainWindow: public BookWindow +class MainWindow: public AdopterWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0); - ~MainWindow(); + void initialize(); public slots: void showLibrary(); @@ -34,21 +36,26 @@ 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; @@ -58,18 +65,16 @@ 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; - Progress *progress; - TranslucentButton *previousButton; - TranslucentButton *nextButton; + Progress *prog; + TranslucentButton *prev; + TranslucentButton *next; + ProgressDialog *libraryProgress; }; #endif // MAINWINDOW_H