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"
25 class TocWidget : public QWidget, public Ui::QTocUi {
28 TocWidget(QToc * form, QMainWindow * parent = 0);
30 /// Update the display of the dialog whilst it is still visible.
34 /// Update Gui of the display.
37 void select(QModelIndex const & index);
39 void selectionChanged(const QModelIndex & current,
40 const QModelIndex & previous);
42 void on_updatePB_clicked();
43 void on_depthSL_valueChanged(int depth);
44 void on_typeCO_activated(int value);
45 void on_moveUpPB_clicked();
46 void on_moveDownPB_clicked();
47 void on_moveInPB_clicked();
48 void on_moveOutPB_clicked();
52 void enableButtons(bool enable = true);
54 int getIndexDepth(QModelIndex const & index, int depth = -1);
56 void setTreeDepth(int depth);
59 /// Reconnects the selection model change signal when TOC changed.
60 void reconnectSelectionModel();
64 /// depth of list shown
68 } // namespace frontend
71 #endif // TOC_WIDGET_H