]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocWidget.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / TocWidget.h
index c426534de0effc513a8cd581f1d24c02d8b84168..5a51e0f8ad31aa7a0bd106ddf338003177b1ed9f 100644 (file)
@@ -14,7 +14,7 @@
 #define TOC_WIDGET_H
 
 #include "GuiDialog.h"
-#include "ControlToc.h"
+#include "GuiToc.h"
 #include "ui_TocUi.h"
 
 
@@ -27,14 +27,15 @@ class TocWidget : public QWidget, public Ui::TocUi
 {
        Q_OBJECT
 public:
-       TocWidget(GuiToc * form, QWidget * parent);
+       TocWidget(GuiToc & form, QWidget * parent = 0);
 
        /// Update the display of the dialog whilst it is still visible.
-       void update();
+       void updateView();
 
-protected Q_SLOTS:
        /// Update Gui of the display.
-       void updateGui();
+       void updateGui(int selected_type);
+
+protected Q_SLOTS:
        ///
        void setTocModel(size_t type);
        ///
@@ -50,6 +51,7 @@ protected Q_SLOTS:
        void on_moveDownTB_clicked();
        void on_moveInTB_clicked();
        void on_moveOutTB_clicked();
+       void setTreeDepth() { setTreeDepth(depth_); }
 
 protected:
        ///
@@ -69,7 +71,7 @@ private:
        /// depth of list shown
        int depth_;
        ///
-       GuiToc * form_;
+       GuiToc & form_;
 };
 
 } // namespace frontend