X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;h=c33f33b97336017cedb8ed90a5ebb03d073c3be2;hb=HEAD;hp=416865f3e6a27312b931f2a88bc734456912719d;hpb=6ddc8e668c46c2ae5920992637e9922285f92c20;p=dorian diff --git a/mainwindow.h b/mainwindow.h index 416865f..c33f33b 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 @@ -21,10 +23,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,7 +37,7 @@ 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); @@ -49,16 +52,14 @@ public slots: void onEndLoad(); protected: - void closeEvent(QCloseEvent *event); void timerEvent(QTimerEvent *event); - void resizeEvent(QResizeEvent *event); private: void setCurrentBook(const QModelIndex ¤t); BookView *view; QAction *settingsAction; QAction *libraryAction; - QAction *infoAction; + QAction *rotateAction; QAction *devToolsAction; QAction *bookmarksAction; QAction *fullScreenAction; @@ -70,10 +71,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