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
44 void on_tocTW_currentItemChanged(QTreeWidgetItem * current,
45 QTreeWidgetItem * previous);
47 void on_closePB_clicked();
48 void on_updatePB_clicked();
49 void on_depthSL_valueChanged(int depth);
50 void on_typeCO_activated(int value);
51 void on_moveUpPB_clicked();
52 void on_moveDownPB_clicked();
53 void on_moveInPB_clicked();
54 void on_moveOutPB_clicked();
57 void enableButtons(bool enable = true);
58 void closeEvent(QCloseEvent * e);
62 void populateItem(QTreeWidgetItem * parentItem, toc::Toc::const_iterator& iter);
66 /// depth of list shown
70 } // namespace frontend
73 #endif // QTOCDIALOG_H