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.
30 class TocWidget : public QWidget, public Ui::TocUi
35 TocWidget(GuiView & gui_view, QWidget * parent = 0);
38 void init(QString const & str);
40 void doDispatch(Cursor & cur, FuncRequest const & fr);
42 bool getStatus(Cursor & cur, FuncRequest const & fr, FuncStatus & status)
46 /// Update the display of the dialog whilst it is still visible.
51 void select(QModelIndex const & index);
53 void goTo(QModelIndex const &);
55 void on_tocTV_activated(QModelIndex const &);
56 void on_tocTV_pressed(QModelIndex const &);
57 void on_updateTB_clicked();
58 void on_sortCB_stateChanged(int state);
59 void on_persistentCB_stateChanged(int state);
60 void on_depthSL_valueChanged(int depth);
61 void on_typeCO_currentIndexChanged(int value);
62 void on_moveUpTB_clicked();
63 void on_moveDownTB_clicked();
64 void on_moveInTB_clicked();
65 void on_moveOutTB_clicked();
66 void filterContents();
68 void showContextMenu(const QPoint & pos);
72 void enableControls(bool enable = true);
74 void setTreeDepth(int depth);
76 void outline(int func_code);
77 /// finds the inset that is connected to the current item,
78 /// if any, otherwise return null
79 Inset * itemInset() const;
81 QString current_type_;
83 /// depth of list shown
85 /// persistence of uncollapsed nodes in toc view
91 } // namespace frontend
94 #endif // TOC_WIDGET_H