]> 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 cb38ee70af801a80f9719c6101fc923d24d87261..5a51e0f8ad31aa7a0bd106ddf338003177b1ed9f 100644 (file)
 #ifndef TOC_WIDGET_H
 #define TOC_WIDGET_H
 
+#include "GuiDialog.h"
+#include "GuiToc.h"
 #include "ui_TocUi.h"
 
-#include <QWidget>
 
 namespace lyx {
 namespace frontend {
@@ -26,14 +27,15 @@ class TocWidget : public QWidget, public Ui::TocUi
 {
        Q_OBJECT
 public:
-       TocWidget(GuiToc * form, QWidget * parent = 0);
+       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);
        ///
@@ -49,6 +51,7 @@ protected Q_SLOTS:
        void on_moveDownTB_clicked();
        void on_moveInTB_clicked();
        void on_moveOutTB_clicked();
+       void setTreeDepth() { setTreeDepth(depth_); }
 
 protected:
        ///
@@ -65,10 +68,10 @@ private:
        //This is a workaround for a problem of signals blocking.
        void disconnectSelectionModel();
 
-       GuiToc * form_;
-
        /// depth of list shown
        int depth_;
+       ///
+       GuiToc & form_;
 };
 
 } // namespace frontend