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.
25 class TocWidget : public QWidget, public Ui::QTocUi {
28 TocWidget(QToc * form, QWidget * parent = 0);
30 /// Update the display of the dialog whilst it is still visible.
34 /// Update Gui of the display.
37 void setTocModel(size_t type);
39 void select(QModelIndex const & index);
41 void selectionChanged(const QModelIndex & current,
42 const QModelIndex & previous);
44 void on_updateTB_clicked();
45 void on_depthSL_valueChanged(int depth);
46 void on_typeCO_currentIndexChanged(int value);
47 void on_moveUpTB_clicked();
48 void on_moveDownTB_clicked();
49 void on_moveInTB_clicked();
50 void on_moveOutTB_clicked();
54 void enableControls(bool enable = true);
56 int getIndexDepth(QModelIndex const & index, int depth = -1);
58 void setTreeDepth(int depth);
61 /// Reconnects the selection model change signal when TOC changed.
62 void reconnectSelectionModel();
66 /// depth of list shown
70 } // namespace frontend
73 #endif // TOC_WIDGET_H