• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Utility Library
 

KDevelop Utility Library

  • lib
  • util
kdeveditorutil.h
1/***************************************************************************
2 * Copyright (C) 2007 by Jens Dagerbo *
3 * jens.dagerbo@swipnet.se *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 ***************************************************************************/
11
12#ifndef KDEVEDITOR_H
13#define KDEVEDITOR_H
14
15namespace KTextEditor
16{
17class Document;
18class View;
19}
20
21#include <tqstring.h>
22
28class KDevEditorUtil
29{
30 KDevEditorUtil() {}
31public:
32
41 static bool currentPositionReal( unsigned int * line, unsigned int * col, KTextEditor::Document * doc, KTextEditor::View * view = 0 );
42
49 static TQString currentLine( KTextEditor::Document * doc, KTextEditor::View * view = 0 );
50
55 static TQString currentWord( KTextEditor::Document * doc, KTextEditor::View * view = 0 );
56
61 static TQString currentSelection( KTextEditor::Document * doc );
62};
63
64#endif
KDevEditorUtil::currentPositionReal
static bool currentPositionReal(unsigned int *line, unsigned int *col, KTextEditor::Document *doc, KTextEditor::View *view=0)
Definition kdeveditorutil.cpp:20
KDevEditorUtil::currentLine
static TQString currentLine(KTextEditor::Document *doc, KTextEditor::View *view=0)
Definition kdeveditorutil.cpp:36
KDevEditorUtil::currentWord
static TQString currentWord(KTextEditor::Document *doc, KTextEditor::View *view=0)
Call to get the text under the cursor of the currently active view.
Definition kdeveditorutil.cpp:53
KDevEditorUtil::currentSelection
static TQString currentSelection(KTextEditor::Document *doc)
Call to get the selection in the currently active view.
Definition kdeveditorutil.cpp:81

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Utility Library

Skip menu "KDevelop Utility Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Utility Library by doxygen 1.15.0
This website is maintained by Timothy Pearson.