]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocWidget.h
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / TocWidget.h
index fbf32a6a8373335a265be319f75232b28fa93268..80d6d3f152a489a30e6734f9bb155bd947d71442 100644 (file)
 #ifndef TOC_WIDGET_H
 #define TOC_WIDGET_H
 
-#include "GuiDialog.h"
-#include "GuiToc.h"
 #include "ui_TocUi.h"
 
+#include <QWidget>
+
+class QModelIndex;
 class QString;
 
 namespace lyx {
 namespace frontend {
 
-class TocModels;
+class GuiView;
 
 class TocWidget : public QWidget, public Ui::TocUi
 {
        Q_OBJECT
 public:
-       TocWidget(TocModels & models, QWidget * parent = 0);
+       ///
+       TocWidget(GuiView & gui_view, QWidget * parent = 0);
 
        /// Initialise GUI.
        void init(QString const & str);
@@ -62,11 +64,13 @@ private:
        int getIndexDepth(QModelIndex const & index, int depth = -1);
        ///
        void setTreeDepth(int depth);
+       ///
+       void outline(int func_code);
 
        /// depth of list shown
        int depth_;
        ///
-       TocModels & models_;
+       GuiView & gui_view_;
 };
 
 } // namespace frontend