<commit_before>/* This file is part of the KDE project
   Copyright (C) 2001 <NAME> (<EMAIL>)

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.
*/

#ifndef __ktexteditor_viewcursorinterface_h__
#define __ktexteditor_viewcursorinterface_h__

namespace KTextEditor
{

/*
*  This is an interface for the KTextEditor::View class !!!
*/
class ViewCursorInterface
{
  //
	// slots !!!
	//
  public:
    /** Get the current cursor coordinates in pixels. */
    virtual QPoint cursorCoordinates () = 0;

    virtual void cursorPosition (uint *line, uint *col) = 0;

    virtual bool setCursorPosition (uint line, uint col) = 0;<commit_msg>methods to get/set the cursor position correctly even when tabs are used<commit_after>/* This file is part of the KDE project
   Copyright (C) 2001 <NAME> (<EMAIL>)

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.
*/

#ifndef __ktexteditor_viewcursorinterface_h__
#define __ktexteditor_viewcursorinterface_h__

namespace KTextEditor
{

/*
*  This is an interface for the KTextEditor::View class !!!
*/
class ViewCursorInterface
{
  //
	// slots !!!
	//
  public:
    /** Get the current cursor coordinates in pixels. */
    virtual QPoint cursorCoordinates () = 0;

    /** Get the cursor position */
    virtual void cursorPosition (uint *line, uint *col) = 0;

    /** Get the cursor position, calculated with 1 character per tab */
    virtual void cursorPositionReal (uint *line, uint *col) = 0;

    /** Set the cursor position */
    virtual bool setCursorPosition (uint line, uint col) = 0;

    /** Set the cursor position, use 1 character per tab */
    virtual bool setCursorPositionReal (uint line, uint col) = 0;
{'fraction_non_alphanumeric': 0.06642903434867142, 'fraction_numerical': 0.015554115359688918, 'mean_word_length': 3.526392961876833, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6519223', 'n_tokens_mistral': 853, 'n_tokens_neox': 796, 'n_words': 411}