TextView Class Reference

#include <textview.h>

Inheritance diagram for TextView:

Inheritance graph
[legend]
Collaboration diagram for TextView:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotUpdateMarksInfo ()
void slotCursorPositionChanged ()
void toggleBreakpoint ()
void slotInitDebugActions ()

Public Member Functions

 TextView (TextDocument *textDocument, ViewContainer *viewContainer, uint viewAreaId, const char *name=0)
 ~TextView ()
virtual bool closeView ()
bool gotoLine (const int line)
TextDocumenttextDocument () const
void cut ()
void copy ()
void paste ()
void saveCursorPosition ()
void restoreCursorPosition ()
void initCodeActions ()
void setCursorPosition (uint line, uint col)
unsigned currentLine ()
unsigned currentColumn ()
void disableActions ()
Kate::View * kateView () const
Kate::View::saveResult save ()
Kate::View::saveResult saveAs ()
virtual void setFocused ()

Protected Slots

void slotWordHoveredOver (const QString &word, int line, int col)
void slotWordUnhovered ()

Protected Attributes

Kate::View * m_view
VariableLabelm_pTextViewLabel
 Pops up when the user hovers his mouse over a word.

Detailed Description

Author:
David Saxton

Definition at line 31 of file textview.h.


Member Function Documentation

bool TextView::closeView (  )  [virtual]

Tells the view container which contains this view to close this view, returning true if successful (i.e. not both last view and unsaved, etc)

Reimplemented from View.

Definition at line 136 of file textview.cpp.

References View::closeView(), FileMetaInfo::grabMetaInfo(), m_view, View::p_ktechlab, textDocument(), and Document::url().

bool TextView::gotoLine ( const int  line  )  [inline]

Brings up the goto line dialog.

Definition at line 41 of file textview.h.

References m_view.

Referenced by DocManager::gotoTextLine().

TextDocument * TextView::textDocument (  )  const

Returns a pointer to the document as a text document

Definition at line 152 of file textview.cpp.

References View::document().

Referenced by closeView(), initCodeActions(), setFocused(), slotInitDebugActions(), TextViewEventFilter::slotNeedTextHint(), slotWordHoveredOver(), TextView(), and toggleBreakpoint().

void TextView::initCodeActions (  ) 

Enable code actions depending on the type of code being edited

Definition at line 187 of file textview.cpp.

References View::action(), disableActions(), slotInitDebugActions(), and textDocument().

Referenced by TextView().

void TextView::setFocused (  )  [virtual]

Called when the view is to be focused (enables actions, etc)

Reimplemented from View.

Definition at line 173 of file textview.cpp.

References TextDocument::debugger(), GpsimDebugger::gpsim(), SymbolViewer::self(), SymbolViewer::setContext(), View::setFocused(), and textDocument().

Referenced by TextView().

void TextView::slotUpdateMarksInfo (  )  [slot]

Called when change line / toggle marks

Definition at line 271 of file textview.cpp.

References View::action(), and m_view.

Referenced by slotCursorPositionChanged(), and TextDocument::slotUpdateMarksInfo().

void TextView::slotInitDebugActions (  )  [slot]

Initialize the actions appropriate for when the debugger is running or stepping

Definition at line 285 of file textview.cpp.

References View::action(), TextDocument::debuggerIsRunning(), TextDocument::debuggerIsStepping(), TextDocument::ownDebugger(), and textDocument().

Referenced by initCodeActions(), TextDocument::slotInitDebugActions(), and TextView().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:59 2007 for KTechLab by  doxygen 1.5.1