]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiViewSource.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiViewSource.h
index ab1db0364006d0a5abc50c115400ccace61bffcc..51a3e94cb65e6ed11148d479e10b5fc68d5715d5 100644 (file)
@@ -20,7 +20,7 @@
 #include "GuiView.h"
 #include "qt_helpers.h"
 
-#include "debug.h"
+#include "support/debug.h"
 
 #include <QDockWidget>
 #include <QString>
@@ -63,7 +63,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);
 
@@ -87,9 +87,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.