X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;h=1f50c41e64ac0dd091458c24b0f740bc74c7335a;hb=7a3717897911dc312fc22afe687a42ed0afd1da1;hp=1834f1a3a233293a2998e9eaaa7a9cbfa8da9ce8;hpb=ce6494ae4866eb8d11d8c2827cce69e0dcc91e02;p=dorian diff --git a/mainwindow.h b/mainwindow.h index 1834f1a..1f50c41 100755 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,10 +1,10 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include +#include +#include -#include "bookwindow.h" -#include "bookfinder.h" +#include "adopterwindow.h" class QString; class QModelIndex; @@ -13,18 +13,20 @@ 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(); - void showInfo(); + void rotate(); void showSettings(); void showDevTools(); void showBookmarks(); @@ -34,42 +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; - BookFinder *bookFinder; - BookFinderThread bookFinderThread; - Progress *progress; + Progress *prog; + TranslucentButton *prev; + TranslucentButton *next; + ProgressDialog *libraryProgress; }; #endif // MAINWINDOW_H