]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiViewSource.h
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiViewSource.h
index ab1db0364006d0a5abc50c115400ccace61bffcc..9f460aa105443ddd38904b784e2602f7ccad4e3c 100644 (file)
@@ -20,8 +20,6 @@
 #include "GuiView.h"
 #include "qt_helpers.h"
 
-#include "debug.h"
-
 #include <QDockWidget>
 #include <QString>
 #include <QTextCharFormat>
@@ -44,8 +42,6 @@ public:
 public Q_SLOTS:
        // update content
        void updateView();
-       ///
-       void update(bool full_source);
 
 private:
        ///
@@ -63,7 +59,7 @@ class GuiViewSource : public DockView
 
 public:
        GuiViewSource(
-               GuiViewBase & parent, ///< the main window where to dock.
+               GuiView & parent, ///< the main window where to dock.
                Qt::DockWidgetArea area = Qt::BottomDockWidgetArea, ///< Position of the dock (and also drawer)
                Qt::WindowFlags flags = 0);
 
@@ -78,6 +74,9 @@ public:
        bool canApply() const { return true; }
        bool canApplyToReadOnly() const { return true; }
        void updateView();
+       void enableView(bool enable);
+       void saveSession() const;
+       void restoreSession();
        ///@}
 
        /// The title displayed by the dialog reflects source type.
@@ -87,9 +86,9 @@ public:
                \param fullSource get full source code
         */
        QString getContent(bool fullSource);
-       /** get the cursor position in the source code
-        */
-       std::pair<int, int> getRows() const;
+       // cursor position in the source code
+       struct Row { int begin; int end; };
+       Row getRows() const;
 
 private:
        /// The encapsulated widget.