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"
18 #include <QMainWindow>
26 class TocWidget : public QWidget, public Ui::QTocUi {
29 TocWidget(QToc * form, QMainWindow * parent = 0);
31 /// Update the display of the dialog whilst it is still visible.
35 /// Update Gui of the display.
38 void select(QModelIndex const & index);
40 void selectionChanged(const QModelIndex & current,
41 const QModelIndex & previous);
43 void on_updatePB_clicked();
44 void on_depthSL_valueChanged(int depth);
45 void on_typeCO_activated(int value);
46 void on_moveUpPB_clicked();
47 void on_moveDownPB_clicked();
48 void on_moveInPB_clicked();
49 void on_moveOutPB_clicked();
53 void enableButtons(bool enable = true);
55 int getIndexDepth(QModelIndex const & index, int depth = -1);
57 void setTreeDepth(int depth);
60 /// Reconnects the selection model change signal when TOC changed.
61 void reconnectSelectionModel();
65 /// depth of list shown
69 } // namespace frontend
72 #endif // TOC_WIDGET_H