4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Abdelrazak Younes
10 * Full author contact details are available in file CREDITS.
16 #include "ui/QTocUi.h"
17 #include "controllers/ControlToc.h"
20 #include <QCloseEvent>
23 class QTreeWidgetItem;
30 class QTocDialog : public QDialog, public Ui::QTocUi {
33 QTocDialog(QToc * form);
36 /// update the listview
37 void updateToc(bool newdepth=false);
39 /// update the float types
43 void activate_adaptor(int);
44 void depth_adaptor(int);
45 void select_adaptor(QTreeWidgetItem *);
46 void update_adaptor();
48 void closeEvent(QCloseEvent * e);
51 void populateItem(QTreeWidgetItem * parentItem, toc::Toc::const_iterator& iter);
55 /// depth of list shown
59 } // namespace frontend
62 #endif // QTOCDIALOG_H