#include "GuiView.h"
#include "qt_helpers.h"
-#include "debug.h"
+#include "support/debug.h"
#include <QDockWidget>
#include <QString>
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);
\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.