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.
28 class TocWidget : public QWidget, public Ui::TocUi
33 TocWidget(GuiView & gui_view, QWidget * parent = 0);
36 void init(QString const & str);
39 /// Update the display of the dialog whilst it is still visible.
44 void setTocModel(size_t type);
46 void select(QModelIndex const & index);
48 void goTo(QModelIndex const &);
50 void on_tocTV_activated(QModelIndex const &);
51 void on_tocTV_clicked(QModelIndex const &);
52 void on_updateTB_clicked();
53 void on_depthSL_valueChanged(int depth);
54 void on_typeCO_currentIndexChanged(int value);
55 void on_moveUpTB_clicked();
56 void on_moveDownTB_clicked();
57 void on_moveInTB_clicked();
58 void on_moveOutTB_clicked();
62 void enableControls(bool enable = true);
64 int getIndexDepth(QModelIndex const & index, int depth = -1);
66 void setTreeDepth(int depth);
68 void outline(int func_code);
70 /// depth of list shown
76 } // namespace frontend
79 #endif // TOC_WIDGET_H