#define MAINWINDOW_H
#include <QtGui>
-#include "bookfinder.h"
+
+#include "adopterwindow.h"
class QString;
class QModelIndex;
class BookView;
class Book;
class FullScreenWindow;
+class Progress;
+class TranslucentButton;
-class MainWindow: public QMainWindow
+class MainWindow: public AdopterWindow
{
Q_OBJECT
void showRegular();
void showBig();
void onSettingsChanged(const QString &key);
- void onChapterLoadStart();
- void onChapterLoadEnd(int index);
+ void onPartLoadStart();
+ void onPartLoadEnd(int index);
void onAddBookmark();
void onGoToBookmark(int index);
void showChapters();
void onGoToChapter(int index);
+ void about();
+ void goToNextPage();
+ void goToPreviousPage();
protected:
- virtual void closeEvent(QCloseEvent *event);
- virtual void timerEvent(QTimerEvent *event);
+ void closeEvent(QCloseEvent *event);
+ void timerEvent(QTimerEvent *event);
+ void resizeEvent(QResizeEvent *event);
private:
void setCurrentBook(const QModelIndex ¤t);
QAction *fullScreenAction;
QAction *forwardAction;
QAction *backwardAction;
- QAction *previousAction;
- QAction *nextAction;
QAction *chaptersAction;
QToolBar *toolBar;
QDialog *settings;
QModelIndex mCurrent;
FullScreenWindow *fullScreenWindow;
int preventBlankingTimer;
- BookFinder *bookFinder;
- BookFinderThread bookFinderThread;
+ Progress *progress;
+ TranslucentButton *previousButton;
+ TranslucentButton *nextButton;
};
#endif // MAINWINDOW_H