Improve traces. Simplify folder management.
[dorian] / chaptersdialog.h
1 #ifndef CHAPTERSDIALOG_H
2 #define CHAPTERSDIALOG_H
3
4 #include <QStringList>
5
6 #include "listwindow.h"
7
8 class QWidget;
9 class QModelIndex;
10 class ListView;
11 class Book;
12
13 /** Display book chapters. */
14 class ChaptersDialog: public ListWindow
15 {
16     Q_OBJECT
17
18 public:
19     explicit ChaptersDialog(Book *book, QWidget *parent = 0);
20
21 signals:
22     void goToChapter(int index);
23
24 public slots:
25     void onItemActivated(const QModelIndex &index);
26
27 protected:
28     ListView *list;
29     QStringList data;
30 };
31
32 #endif // CHAPTERSDIALOG_H