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::TocUi
29 TocWidget(GuiToc * form, QWidget * parent = 0);
31 /// Update the display of the dialog whilst it is still visible.
35 /// Update Gui of the display.
38 void setTocModel(size_t type);
40 void select(QModelIndex const & index);
42 void selectionChanged(const QModelIndex & current,
43 const QModelIndex & previous);
45 void on_updateTB_clicked();
46 void on_depthSL_valueChanged(int depth);
47 void on_typeCO_currentIndexChanged(int value);
48 void on_moveUpTB_clicked();
49 void on_moveDownTB_clicked();
50 void on_moveInTB_clicked();
51 void on_moveOutTB_clicked();
55 void enableControls(bool enable = true);
57 int getIndexDepth(QModelIndex const & index, int depth = -1);
59 void setTreeDepth(int depth);
62 /// Reconnects the selection model change signal when TOC changed.
63 void reconnectSelectionModel();
64 /// Disconnects the selection model.
65 //This is a workaround for a problem of signals blocking.
66 void disconnectSelectionModel();
70 /// depth of list shown
74 } // namespace frontend
77 #endif // TOC_WIDGET_H