• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

  • sources
  • kde-4.12
  • applications
  • kate
  • part
  • view
kateviewinternal.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002-2007 Hamish Rodda <rodda@kde.org>
3  Copyright (C) 2002 John Firebaugh <jfirebaugh@kde.org>
4  Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
5  Copyright (C) 2002 Christoph Cullmann <cullmann@kde.org>
6  Copyright (C) 2007 Mirko Stocker <me@misto.ch>
7 
8  Based on:
9  KWriteView : Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
10 
11  This library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU Library General Public
13  License version 2 as published by the Free Software Foundation.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Library General Public License for more details.
19 
20  You should have received a copy of the GNU Library General Public License
21  along with this library; see the file COPYING.LIB. If not, write to
22  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23  Boston, MA 02110-1301, USA.
24 */
25 
26 #ifndef _KATE_VIEW_INTERNAL_
27 #define _KATE_VIEW_INTERNAL_
28 
29 #include <ktexteditor/attribute.h>
30 
31 #include "katetextcursor.h"
32 #include "katelinelayout.h"
33 #include "katetextline.h"
34 #include "katedocument.h"
35 #include "kateview.h"
36 #include "katerenderer.h"
37 
38 #include <QtCore/QPoint>
39 #include <QtCore/QTimer>
40 #include <QtGui/QDrag>
41 #include <QtGui/QWidget>
42 #include <QtCore/QSet>
43 #include <QtCore/QPointer>
44 
45 namespace KTextEditor {
46  class MovingRange;
47 }
48 
49 class KateIconBorder;
50 class KateScrollBar;
51 class KateTextLayout;
52 
53 class KateViInputModeManager;
54 
55 class QScrollBar;
56 
57 class KateViewInternal : public QWidget
58 {
59  Q_OBJECT
60 
61  friend class KateView;
62  friend class KateIconBorder;
63  friend class KateScrollBar;
64  friend class CalculatingCursor;
65  friend class BoundedCursor;
66  friend class WrappingCursor;
67  friend class KateViModeBase;
68 
69  public:
70  enum Bias
71  {
72  left = -1,
73  none = 0,
74  right = 1
75  };
76 
77  public:
78  KateViewInternal ( KateView *view );
79  ~KateViewInternal ();
80  KateView *view() const { return m_view; }
81 
82  //BEGIN EDIT STUFF
83  public:
84  void editStart ();
85  void editEnd (int editTagLineStart, int editTagLineEnd, bool tagFrom);
86 
87  void editSetCursor (const KTextEditor::Cursor &cursor);
88 
89  private:
90  uint editSessionNumber;
91  bool editIsRunning;
92  KTextEditor::Cursor editOldCursor;
93  KTextEditor::Range editOldSelection;
94  //END
95 
96  //BEGIN TAG & CLEAR & UPDATE STUFF
97  public:
98  bool tagLine (const KTextEditor::Cursor& virtualCursor);
99 
100  bool tagLines (int start, int end, bool realLines = false);
101  // cursors not const references as they are manipulated within
102  bool tagLines (KTextEditor::Cursor start, KTextEditor::Cursor end, bool realCursors = false);
103 
104  bool tagRange(const KTextEditor::Range& range, bool realCursors);
105 
106  void tagAll ();
107 
108  void updateDirty();
109 
110  void clear ();
111  //END
112 
113  private Q_SLOTS:
114  // Updates the view and requests a redraw.
115  void updateView (bool changed = false, int viewLinesScrolled = 0);
116 
117  private:
118  // Actually performs the updating, but doesn't call update().
119  void doUpdateView(bool changed = false, int viewLinesScrolled = 0);
120  void makeVisible (const KTextEditor::Cursor& c, int endCol, bool force = false, bool center = false, bool calledExternally = false);
121 
122  public:
123  // Start Position is a virtual cursor
124  KTextEditor::Cursor startPos() const { return m_startPos; }
125  int startLine () const { return m_startPos.line(); }
126  int startX () const { return m_startX; }
127 
128  KTextEditor::Cursor endPos () const;
129  int endLine () const;
130 
131  KateTextLayout yToKateTextLayout(int y) const;
132 
133  void prepareForDynWrapChange();
134  void dynWrapChanged();
135 
136  public Q_SLOTS:
137  void slotIncFontSizes();
138  void slotDecFontSizes();
139 
140  private Q_SLOTS:
141  void scrollLines(int line); // connected to the sliderMoved of the m_lineScroll
142  void scrollViewLines(int offset);
143  void scrollAction(int action);
144  void scrollNextPage();
145  void scrollPrevPage();
146  void scrollPrevLine();
147  void scrollNextLine();
148  void scrollColumns (int x); // connected to the valueChanged of the m_columnScroll
149  void viewSelectionChanged ();
150 
151  public:
152  void doReturn();
153  void doSmartNewline();
154  void doDelete();
155  void doBackspace();
156  void doTabulator();
157  void doTranspose();
158  void doDeletePrevWord();
159  void doDeleteNextWord();
160 
169  void setCaretStyle( KateRenderer::caretStyles style, bool repaint = false );
170  void cursorPrevChar(bool sel=false);
171  void cursorNextChar(bool sel=false);
172  void wordPrev(bool sel=false);
173  void wordNext(bool sel=false);
174  void home(bool sel=false);
175  void end(bool sel=false);
176  void cursorUp(bool sel=false);
177  void cursorDown(bool sel=false);
178  void cursorToMatchingBracket(bool sel=false);
179  void scrollUp();
180  void scrollDown();
181  void topOfView(bool sel=false);
182  void bottomOfView(bool sel=false);
183  void pageUp(bool sel=false, bool half=false);
184  void pageDown(bool sel=false, bool half=false);
185  void top(bool sel=false);
186  void bottom(bool sel=false);
187  void top_home(bool sel=false);
188  void bottom_end(bool sel=false);
189 
190  KTextEditor::Cursor getCursor() const { return m_cursor; }
191  KTextEditor::Cursor getMouse() const { return m_mouse; }
192 
193  QPoint cursorToCoordinate(const KTextEditor::Cursor& cursor, bool realCursor = true, bool includeBorder = true) const;
194  // by default, works on coordinates of the whole widget, eg. offsetted by the border
195  KTextEditor::Cursor coordinatesToCursor(const QPoint& coord, bool includeBorder = true) const;
196  QPoint cursorCoordinates(bool includeBorder = true) const;
197  KTextEditor::Cursor findMatchingBracket();
198 
199  // EVENT HANDLING STUFF - IMPORTANT
200  private:
201  void fixDropEvent(QDropEvent *event);
202  protected:
203  virtual void hideEvent(QHideEvent* e);
204  virtual void paintEvent(QPaintEvent *e);
205  virtual bool eventFilter( QObject *obj, QEvent *e );
206  virtual void keyPressEvent( QKeyEvent* );
207  virtual void keyReleaseEvent( QKeyEvent* );
208  virtual void resizeEvent( QResizeEvent* );
209  virtual void mousePressEvent( QMouseEvent* );
210  virtual void mouseDoubleClickEvent( QMouseEvent* );
211  virtual void mouseReleaseEvent( QMouseEvent* );
212  virtual void mouseMoveEvent( QMouseEvent* );
213  virtual void leaveEvent( QEvent* );
214  virtual void dragEnterEvent( QDragEnterEvent* );
215  virtual void dragMoveEvent( QDragMoveEvent* );
216  virtual void dropEvent( QDropEvent* );
217  virtual void showEvent ( QShowEvent *);
218  virtual void wheelEvent(QWheelEvent* e);
219  virtual void focusInEvent (QFocusEvent *);
220  virtual void focusOutEvent (QFocusEvent *);
221  virtual void inputMethodEvent(QInputMethodEvent* e);
222 
223  void contextMenuEvent ( QContextMenuEvent * e );
224 
225  private Q_SLOTS:
226  void tripleClickTimeout();
227 
228  Q_SIGNALS:
229  // emitted when KateViewInternal is not handling its own URI drops
230  void dropEventPass(QDropEvent*);
231 
232  private Q_SLOTS:
233  void slotRegionVisibilityChanged();
234  void slotRegionBeginEndAddedRemoved(unsigned int);
235 
236  private:
237  void moveChar( Bias bias, bool sel );
238  void moveEdge( Bias bias, bool sel );
239  KTextEditor::Cursor maxStartPos(bool changed = false);
240  void scrollPos(KTextEditor::Cursor& c, bool force = false, bool calledExternally = false);
241  void scrollLines( int lines, bool sel );
242 
243  int linesDisplayed() const;
244 
245  int lineToY(int viewLine) const;
246 
247  void updateSelection( const KTextEditor::Cursor&, bool keepSel );
248  void setSelection( const KTextEditor::Range& );
249  void moveCursorToSelectionEdge();
250  void updateCursor( const KTextEditor::Cursor& newCursor, bool force = false, bool center = false, bool calledExternally = false );
251  void updateBracketMarks();
252 
253  void paintCursor();
254 
255  void placeCursor( const QPoint& p, bool keepSelection = false, bool updateSelection = true );
256  bool isTargetSelected( const QPoint& p );
257  //Returns whether the given range affects the area currently visible in the view
258  bool rangeAffectsView(const KTextEditor::Range& range, bool realCursors) const;
259 
260  void doDrag();
261 
262  KateRenderer* renderer() const;
263 
264  KateView *m_view;
265  class KateIconBorder *m_leftBorder;
266 
267  int m_mouseX;
268  int m_mouseY;
269  int m_scrollX;
270  int m_scrollY;
271 
272  Qt::CursorShape m_mouseCursor;
273 
274  Kate::TextCursor m_cursor;
275  KTextEditor::Cursor m_mouse;
276  KTextEditor::Cursor m_displayCursor;
277 
278  bool m_possibleTripleClick;
279 
280  //Whether the current completion-item was expanded while the last press of ALT
281  bool m_completionItemExpanded;
282  QTime m_altDownTime;
283 
284  // Bracket mark and corresponding decorative ranges
285  KTextEditor::MovingRange *m_bm, *m_bmStart, *m_bmEnd;
286  void updateBracketMarkAttributes();
287 
288  enum DragState { diNone, diPending, diDragging };
289 
290  struct _dragInfo {
291  DragState state;
292  QPoint start;
293  QDrag* dragObject;
294  } m_dragInfo;
295 
296  //
297  // line scrollbar + first visible (virtual) line in the current view
298  //
299  KateScrollBar *m_lineScroll;
300  QWidget* m_dummy;
301 
302  // These are now cursors to account for word-wrap.
303  // Start Position is a virtual cursor
304  Kate::TextCursor m_startPos;
305  //Count of lines that are visible behind m_startPos.
306  //This does not respect dynamic word wrap, so take it as an approximation.
307  uint m_visibleLineCount;
308 
309  // This is set to false on resize or scroll (other than that called by makeVisible),
310  // so that makeVisible is again called when a key is pressed and the cursor is in the same spot
311  bool m_madeVisible;
312  bool m_shiftKeyPressed;
313 
314  // How many lines to should be kept visible above/below the cursor when possible
315  void setAutoCenterLines(int viewLines, bool updateView = true);
316  int m_autoCenterLines;
317  int m_minLinesVisible;
318 
319  //
320  // column scrollbar + x position
321  //
322  QScrollBar *m_columnScroll;
323  int m_startX;
324 
325  // has selection changed while your mouse or shift key is pressed
326  bool m_selChangedByUser;
327  KTextEditor::Cursor m_selectAnchor;
328 
329  enum SelectionMode { Default=0, Mouse, Word, Line };
330  uint m_selectionMode;
331  // when drag selecting after double/triple click, keep the initial selected
332  // word/line independent of direction.
333  // They get set in the event of a double click, and is used with mouse move + leftbutton
334  KTextEditor::Range m_selectionCached;
335 
336  // maximal length of textlines visible from given startLine
337  int maxLen(int startLine);
338 
339  // are we allowed to scroll columns?
340  bool columnScrollingPossible ();
341 
342  // returns the maximum X value / col value a cursor can take for a specific line range
343  int lineMaxCursorX(const KateTextLayout& line);
344  int lineMaxCol(const KateTextLayout& line);
345 
346  class KateLayoutCache* cache() const;
347  KateLayoutCache* m_layoutCache;
348 
349  // convenience methods
350  KateTextLayout currentLayout() const;
351  KateTextLayout previousLayout() const;
352  KateTextLayout nextLayout() const;
353 
354  // find the cursor offset by (offset) view lines from a cursor.
355  // when keepX is true, the column position will be calculated based on the x
356  // position of the specified cursor.
357  KTextEditor::Cursor viewLineOffset(const KTextEditor::Cursor& virtualCursor, int offset, bool keepX = false);
358 
359  KTextEditor::Cursor toRealCursor(const KTextEditor::Cursor& virtualCursor) const;
360  KTextEditor::Cursor toVirtualCursor(const KTextEditor::Cursor& realCursor) const;
361 
362  // These variable holds the most recent maximum real & visible column number
363  bool m_preserveX;
364  int m_preservedX;
365 
366  bool m_updatingView;
367  int m_wrapChangeViewLine;
368  KTextEditor::Cursor m_cachedMaxStartPos;
369 
370  private Q_SLOTS:
371  void doDragScroll();
372  void startDragScroll();
373  void stopDragScroll();
374 
375  private:
376  // Timers
377  QTimer m_dragScrollTimer;
378  QTimer m_scrollTimer;
379  QTimer m_cursorTimer;
380  QTimer m_textHintTimer;
381 
382  static const int s_scrollTime = 30;
383  static const int s_scrollMargin = 16;
384 
385  private Q_SLOTS:
386  void scrollTimeout ();
387  void cursorTimeout ();
388  void textHintTimeout ();
389 
390  //TextHint
391  public:
392  void enableTextHints(int timeout);
393  void disableTextHints();
394 
395  private:
396  bool m_textHintEnabled;
397  int m_textHintTimeout;
398  QPoint m_textHintPos;
399 
403  public:
404  virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
405 
406  private:
407  KTextEditor::MovingRange *m_imPreeditRange;
408  QList<KTextEditor::MovingRange *> m_imPreeditRangeChildren;
409 
410  private:
411  void mouseMoved();
412  void cursorMoved();
413 
414  private:
415  bool m_smartDirty;
416 
417  private:
418  inline KateDocument *doc() { return m_view->doc(); }
419  inline KateDocument *doc() const { return m_view->doc(); }
420 
421  // vi Mode
422  private:
423  bool m_viInputMode;
424  bool m_viInputModeStealKeys;
425 
429  ViMode getCurrentViMode();
430 
435  KateViInputModeManager* m_viInputModeManager;
436 
440  KateViInputModeManager* getViInputModeManager();
441 
445  KateViInputModeManager* resetViInputModeManager();
446 };
447 
448 #endif
449 
450 // kate: space-indent on; indent-width 2; replace-tabs on;
KateViewInternal::editEnd
void editEnd(int editTagLineStart, int editTagLineEnd, bool tagFrom)
Definition: kateviewinternal.cpp:3325
QVariant
KateViewInternal::cursorPrevChar
void cursorPrevChar(bool sel=false)
Definition: kateviewinternal.cpp:1061
KateViewInternal::resizeEvent
virtual void resizeEvent(QResizeEvent *)
Definition: kateviewinternal.cpp:2965
KateViewInternal::doReturn
void doReturn()
Definition: kateviewinternal.cpp:765
KateViewInternal::doBackspace
void doBackspace()
Definition: kateviewinternal.cpp:796
katetextline.h
KateViewInternal::dragEnterEvent
virtual void dragEnterEvent(QDragEnterEvent *)
Definition: kateviewinternal.cpp:3097
kateview.h
KateViewInternal::KateViewInternal
KateViewInternal(KateView *view)
Definition: kateviewinternal.cpp:61
KateViewInternal::startPos
KTextEditor::Cursor startPos() const
Definition: kateviewinternal.h:124
KateViewInternal::focusInEvent
virtual void focusInEvent(QFocusEvent *)
Definition: kateviewinternal.cpp:3060
KateViewInternal::topOfView
void topOfView(bool sel=false)
Definition: kateviewinternal.cpp:1466
KateViewInternal::tagRange
bool tagRange(const KTextEditor::Range &range, bool realCursors)
Definition: kateviewinternal.cpp:2051
katerenderer.h
KateViewInternal::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2586
KateViewInternal::slotDecFontSizes
void slotDecFontSizes()
Definition: kateviewinternal.cpp:331
KateViewInternal::keyPressEvent
virtual void keyPressEvent(QKeyEvent *)
Definition: kateviewinternal.cpp:2232
KateViewInternal::bottomOfView
void bottomOfView(bool sel=false)
Definition: kateviewinternal.cpp:1473
KateViewInternal::dropEvent
virtual void dropEvent(QDropEvent *)
Definition: kateviewinternal.cpp:3129
KateViewInternal::clear
void clear()
Definition: kateviewinternal.cpp:3205
KateViewInternal::top_home
void top_home(bool sel=false)
Definition: kateviewinternal.cpp:1642
KateViewInternal::editSetCursor
void editSetCursor(const KTextEditor::Cursor &cursor)
Definition: kateviewinternal.cpp:3379
KateViModeBase
Definition: katevimodebase.h:64
KateIconBorder
Definition: kateviewhelpers.h:150
QWidget
KateViewInternal::inputMethodQuery
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const
IM input stuff.
Definition: kateviewinternal.cpp:3460
KateViewInternal::pageUp
void pageUp(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1513
KateViewInternal::cursorToCoordinate
QPoint cursorToCoordinate(const KTextEditor::Cursor &cursor, bool realCursor=true, bool includeBorder=true) const
Definition: kateviewinternal.cpp:712
katedocument.h
KateViewInternal::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2681
KateViInputModeManager
Definition: kateviinputmodemanager.h:68
KateViewInternal::hideEvent
virtual void hideEvent(QHideEvent *e)
Definition: kateviewinternal.cpp:2876
KTextEditor::MovingRange
KateViewInternal::wordNext
void wordNext(bool sel=false)
Definition: kateviewinternal.cpp:1117
KateViewInternal::focusOutEvent
virtual void focusOutEvent(QFocusEvent *)
Definition: kateviewinternal.cpp:3073
KateViewInternal::scrollDown
void scrollDown()
Definition: kateviewinternal.cpp:1499
KateViewInternal::none
Definition: kateviewinternal.h:73
KateViewInternal::doSmartNewline
void doSmartNewline()
Definition: kateviewinternal.cpp:771
QObject
KTextEditor::Cursor
KateViewInternal::doDeletePrevWord
void doDeletePrevWord()
Definition: kateviewinternal.cpp:811
KateScrollBar
This class is required because QScrollBar's sliderMoved() signal is really supposed to be a sliderDra...
Definition: kateviewhelpers.h:66
KateViewInternal::Bias
Bias
Definition: kateviewinternal.h:70
KateViewInternal::top
void top(bool sel=false)
Definition: kateviewinternal.cpp:1622
KateViewInternal::startX
int startX() const
Definition: kateviewinternal.h:126
KateViewInternal::tagLines
bool tagLines(int start, int end, bool realLines=false)
Definition: kateviewinternal.cpp:1965
KateViewInternal::doDeleteNextWord
void doDeleteNextWord()
Definition: kateviewinternal.cpp:822
KateViewInternal::slotIncFontSizes
void slotIncFontSizes()
Definition: kateviewinternal.cpp:325
KateViewInternal::yToKateTextLayout
KateTextLayout yToKateTextLayout(int y) const
Definition: kateviewinternal.cpp:306
KateViewInternal::cursorToMatchingBracket
void cursorToMatchingBracket(bool sel=false)
Definition: kateviewinternal.cpp:1456
KateViewInternal::bottom
void bottom(bool sel=false)
Definition: kateviewinternal.cpp:1632
KateRenderer
Handles all of the work of rendering the text (used for the views and printing)
Definition: katerenderer.h:50
KateViewInternal::BoundedCursor
friend class BoundedCursor
Definition: kateviewinternal.h:65
QScrollBar
KateViModeBase::m_view
KateView * m_view
Definition: katevimodebase.h:172
KateViewInternal::cursorNextChar
void cursorNextChar(bool sel=false)
Definition: kateviewinternal.cpp:1069
KateViewInternal::mousePressEvent
virtual void mousePressEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2462
attribute.h
KateViewInternal::cursorUp
void cursorUp(bool sel=false)
Definition: kateviewinternal.cpp:1402
KateViewInternal::left
Definition: kateviewinternal.h:72
KateViewInternal::tagAll
void tagAll()
Definition: kateviewinternal.cpp:2056
KateViModeBase::scrollViewLines
void scrollViewLines(int l)
Definition: katevimodebase.h:129
KateViewInternal::mouseMoveEvent
virtual void mouseMoveEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2752
KateViewInternal
Definition: kateviewinternal.h:57
KateViewInternal::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *)
Definition: kateviewinternal.cpp:2402
KateViModeBase::updateCursor
void updateCursor(const Cursor &c) const
Definition: katevimodebase.cpp:937
Kate::TextCursor::line
int line() const
Retrieve the line on which this cursor is situated.
Definition: katetextcursor.cpp:132
KateViewInternal::getMouse
KTextEditor::Cursor getMouse() const
Definition: kateviewinternal.h:191
KateViewInternal::setCaretStyle
void setCaretStyle(KateRenderer::caretStyles style, bool repaint=false)
Set the caret's style.
Definition: kateviewinternal.cpp:1804
KateViewInternal::end
void end(bool sel=false)
Definition: kateviewinternal.cpp:1201
ViMode
ViMode
The four vi modes supported by Kate's vi input mode.
Definition: kateviinputmodemanager.h:48
KateViModeBase::linesDisplayed
unsigned int linesDisplayed()
Definition: katevimodebase.h:128
KateViewInternal::editStart
void editStart()
Definition: kateviewinternal.cpp:3313
KateViewInternal::paintEvent
virtual void paintEvent(QPaintEvent *e)
Definition: kateviewinternal.cpp:2883
KateViewInternal::doTabulator
void doTabulator()
Definition: kateviewinternal.cpp:801
KateViewInternal::doDelete
void doDelete()
Definition: kateviewinternal.cpp:791
KateLayoutCache
This class handles Kate's caching of layouting information (in KateLineLayout and KateTextLayout)...
Definition: katelayoutcache.h:77
KateView
Definition: kateview.h:78
KTextEditor::Range
KateViewInternal::updateDirty
void updateDirty()
Definition: kateviewinternal.cpp:2839
KateDocument
Definition: katedocument.h:74
KateViewInternal::dropEventPass
void dropEventPass(QDropEvent *)
KateViewInternal::doTranspose
void doTranspose()
Definition: kateviewinternal.cpp:806
KateViewInternal::right
Definition: kateviewinternal.h:74
KateViewInternal::wordPrev
void wordPrev(bool sel=false)
Definition: kateviewinternal.cpp:1074
KateViewInternal::pageDown
void pageDown(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1555
KateViewInternal::endLine
int endLine() const
Definition: kateviewinternal.cpp:301
KateRenderer::caretStyles
caretStyles
Style of Caret.
Definition: katerenderer.h:69
KateViewInternal::wheelEvent
virtual void wheelEvent(QWheelEvent *e)
Definition: kateviewinternal.cpp:3214
KateViewInternal::CalculatingCursor
friend class CalculatingCursor
Definition: kateviewinternal.h:64
KateViewInternal::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *e)
Definition: kateviewinternal.cpp:2433
KateViewInternal::getCursor
KTextEditor::Cursor getCursor() const
Definition: kateviewinternal.h:190
KateViewInternal::dragMoveEvent
virtual void dragMoveEvent(QDragMoveEvent *)
Definition: kateviewinternal.cpp:3119
KateTextLayout
This class represents one visible line of text; with dynamic wrapping, many KateTextLayouts can be ne...
Definition: katetextlayout.h:38
katelinelayout.h
KateViewInternal::prepareForDynWrapChange
void prepareForDynWrapChange()
Definition: kateviewinternal.cpp:241
QPoint
KateViewInternal::endPos
KTextEditor::Cursor endPos() const
Definition: kateviewinternal.cpp:279
Kate::TextCursor
Class representing a 'clever' text cursor.
Definition: katetextcursor.h:43
KateViewInternal::disableTextHints
void disableTextHints()
Definition: kateviewinternal.cpp:3304
KateViewInternal::startLine
int startLine() const
Definition: kateviewinternal.h:125
KateViewInternal::home
void home(bool sel=false)
Definition: kateviewinternal.cpp:1166
KateViewInternal::showEvent
virtual void showEvent(QShowEvent *)
Definition: kateviewinternal.cpp:693
KateViewInternal::leaveEvent
virtual void leaveEvent(QEvent *)
Definition: kateviewinternal.cpp:2726
KateView::doc
KateDocument * doc()
accessor to katedocument pointer
Definition: kateview.h:552
KateViewInternal::~KateViewInternal
~KateViewInternal()
Definition: kateviewinternal.cpp:221
KateViewInternal::enableTextHints
void enableTextHints(int timeout)
Definition: kateviewinternal.cpp:3293
KateViewInternal::view
KateView * view() const
Definition: kateviewinternal.h:80
KateViewInternal::tagLine
bool tagLine(const KTextEditor::Cursor &virtualCursor)
Definition: kateviewinternal.cpp:1949
KateViewInternal::WrappingCursor
friend class WrappingCursor
Definition: kateviewinternal.h:66
KateViewInternal::cursorDown
void cursorDown(bool sel=false)
Definition: kateviewinternal.cpp:1429
KateViewInternal::eventFilter
virtual bool eventFilter(QObject *obj, QEvent *e)
Definition: kateviewinternal.cpp:2110
QEvent
katetextcursor.h
KateViewInternal::cursorCoordinates
QPoint cursorCoordinates(bool includeBorder=true) const
Definition: kateviewinternal.cpp:737
KateViewInternal::scrollUp
void scrollUp()
Definition: kateviewinternal.cpp:1493
KateViewInternal::bottom_end
void bottom_end(bool sel=false)
Definition: kateviewinternal.cpp:1654
KateViewInternal::dynWrapChanged
void dynWrapChanged()
Definition: kateviewinternal.cpp:247
KateViewInternal::coordinatesToCursor
KTextEditor::Cursor coordinatesToCursor(const QPoint &coord, bool includeBorder=true) const
Definition: kateviewinternal.cpp:2736
QList< KTextEditor::MovingRange * >
KateViewInternal::findMatchingBracket
KTextEditor::Cursor findMatchingBracket()
Definition: kateviewinternal.cpp:742
KateViewInternal::inputMethodEvent
virtual void inputMethodEvent(QInputMethodEvent *e)
Definition: kateviewinternal.cpp:3505
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal