#define MAINWINDOW_H
#include <QModelIndex>
+#include <QEvent>
#include "adopterwindow.h"
public:
MainWindow(QWidget *parent = 0);
- ~MainWindow();
+ void initialize();
public slots:
void showLibrary();
- void showInfo();
+ void rotate();
void showSettings();
void showDevTools();
void showBookmarks();
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;
QModelIndex mCurrent;
FullScreenWindow *fullScreenWindow;
int preventBlankingTimer;
- Progress *progress;
- TranslucentButton *previousButton;
- TranslucentButton *nextButton;
+ Progress *prog;
+ TranslucentButton *prev;
+ TranslucentButton *next;
ProgressDialog *libraryProgress;
};