projects
/
dorian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New version. Update home page link in About box.
[dorian]
/
mainwindow.h
diff --git
a/mainwindow.h
b/mainwindow.h
index
5995075
..
4f499d2
100755
(executable)
--- a/
mainwindow.h
+++ b/
mainwindow.h
@@
-1,7
+1,8
@@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
-#include <QtGui>
+#include <QModelIndex>
+#include <QEvent>
#include "adopterwindow.h"
#include "adopterwindow.h"
@@
-12,6
+13,7
@@
class BookView;
class Book;
class FullScreenWindow;
class Progress;
class Book;
class FullScreenWindow;
class Progress;
+class ProgressDialog;
class TranslucentButton;
class MainWindow: public AdopterWindow
class TranslucentButton;
class MainWindow: public AdopterWindow
@@
-20,7
+22,7
@@
class MainWindow: public AdopterWindow
public:
MainWindow(QWidget *parent = 0);
public:
MainWindow(QWidget *parent = 0);
- ~MainWindow();
+ void initialize();
public slots:
void showLibrary();
public slots:
void showLibrary();
@@
-34,23
+36,30
@@
public slots:
void onSettingsChanged(const QString &key);
void onPartLoadStart();
void onPartLoadEnd(int index);
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 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);
protected:
void closeEvent(QCloseEvent *event);
void timerEvent(QTimerEvent *event);
void resizeEvent(QResizeEvent *event);
+protected slots:
+ void placeChildren();
+
private:
void setCurrentBook(const QModelIndex ¤t);
private:
void setCurrentBook(const QModelIndex ¤t);
- QAction *addToolBarAction(const QObject *receiver, const char *member,
- const QString &name);
BookView *view;
QAction *settingsAction;
QAction *libraryAction;
BookView *view;
QAction *settingsAction;
QAction *libraryAction;
@@
-61,7
+70,6
@@
private:
QAction *forwardAction;
QAction *backwardAction;
QAction *chaptersAction;
QAction *forwardAction;
QAction *backwardAction;
QAction *chaptersAction;
- QToolBar *toolBar;
QDialog *settings;
DevTools *devTools;
QModelIndex mCurrent;
QDialog *settings;
DevTools *devTools;
QModelIndex mCurrent;
@@
-70,6
+78,7
@@
private:
Progress *progress;
TranslucentButton *previousButton;
TranslucentButton *nextButton;
Progress *progress;
TranslucentButton *previousButton;
TranslucentButton *nextButton;
+ ProgressDialog *libraryProgress;
};
#endif // MAINWINDOW_H
};
#endif // MAINWINDOW_H