Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KateView Class Reference

#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/view/kateview.h>

Inheritance diagram for KateView:

Inheritance graph
[legend]
Collaboration diagram for KateView:

Collaboration graph
[legend]
List of all members.

Public Types

enum  fileResult { OK, CANCEL, RETRY, ERROR }
enum  Config_flags {
  cfAutoIndent = 0x1, cfBackspaceIndents = 0x2, cfWordWrap = 0x4, cfReplaceTabs = 0x8,
  cfRemoveSpaces = 0x10, cfWrapCursor = 0x20, cfAutoBrackets = 0x40, cfPersistent = 0x80,
  cfKeepSelection = 0x100, cfVerticalSelect = 0x200, cfDelOnInput = 0x400, cfXorSelect = 0x800,
  cfOvr = 0x1000, cfMark = 0x2000, cfGroupUndo = 0x4000, cfKeepIndentProfile = 0x8000,
  cfKeepExtraSpaces = 0x10000, cfMouseAutoCopy = 0x20000, cfSingleSelection = 0x40000, cfTabIndents = 0x80000,
  cfPageUDMovesCursor = 0x100000, cfShowTabs = 0x200000, cfSpaceIndent = 0x400000, cfSmartHome = 0x800000
}
enum  Dialog_results { srYes = QDialog::Accepted, srNo = 10, srAll, srCancel = QDialog::Rejected }
enum  Search_flags {
  sfCaseSensitive = 1, sfWholeWords = 2, sfFromBeginning = 4, sfBackward = 8,
  sfSelected = 16, sfPrompt = 32, sfReplace = 64, sfAgain = 128,
  sfWrapped = 256, sfFinished = 512, sfRegularExpression = 1024
}
enum  Update_flags { ufDocGeometry = 1, ufUpdateOnScroll = 2, ufPos = 4 }
enum  Load_flags { lfInsert = 1, lfNewFile = 2, lfNoAutoHl = 4 }
enum  Cursor_commands {
  cmLeft, cmRight, cmWordLeft, cmWordRight,
  cmHome, cmEnd, cmUp, cmDown,
  cmScrollUp, cmScrollDown, cmTopOfView, cmBottomOfView,
  cmPageUp, cmPageDown, cmCursorPageUp, cmCursorPageDown,
  cmTop, cmBottom
}
enum  Edit_commands {
  cmReturn = 1, cmDelete, cmBackspace, cmKillLine,
  cmUndo, cmRedo, cmCut, cmCopy,
  cmPaste, cmIndent, cmUnindent, cmCleanIndent,
  cmSelectAll, cmDeselectAll, cmInvertSelection, cmComment,
  cmUncomment
}
enum  Find_commands { cmFind = 1, cmReplace, cmFindAgain, cmGotoLine }

Public Slots

void slotUpdate ()
void slotFileStatusChanged ()
void slotNewUndo ()
void slotHighlightChanged ()
void toggleInsert ()
void toggleVertical ()
void flush ()
fileResult save ()
fileResult saveAs ()
void cut ()
void copy ()
void paste ()
void undo ()
void redo ()
void undoMultiple (int count)
void redoMultiple (int count)
void undoHistory ()
void indent ()
void unIndent ()
void cleanIndent ()
void selectAll ()
void deselectAll ()
void invertSelection ()
void comment ()
void uncomment ()
void keyReturn ()
void keyDelete ()
void backspace ()
void killLine ()
void cursorLeft ()
void shiftCursorLeft ()
void cursorRight ()
void shiftCursorRight ()
void wordLeft ()
void shiftWordLeft ()
void wordRight ()
void shiftWordRight ()
void home ()
void shiftHome ()
void end ()
void shiftEnd ()
void up ()
void shiftUp ()
void down ()
void shiftDown ()
void scrollUp ()
void scrollDown ()
void topOfView ()
void bottomOfView ()
void pageUp ()
void shiftPageUp ()
void pageDown ()
void shiftPageDown ()
void top ()
void shiftTop ()
void bottom ()
void shiftBottom ()
void find ()
void replace ()
void gotoLine ()
void configDialog ()
int getHl ()
void setHl (int n)
int getEol ()
void setEol (int)
virtual void setFocus ()
void findAgain (bool back=false)
void findAgain ()
void findPrev ()
void slotEditCommand ()
void setIconBorder (bool enable)
void toggleIconBorder ()
void gotoMark (Kate::Mark *mark)
void toggleBookmark ()
void clearBookmarks ()
int getHlCount ()
QString getHlName (int)
QString getHlSection (int)
void slotIncFontSizes ()
void slotDecFontSizes ()

Signals

void newCurPos ()
void newStatus ()
void newUndo ()
void newMarkStatus ()
void enableUI (bool enable)
void bookAddChanged (bool enabled)
void bookClearChanged (bool enabled)
void gotFocus (KateView *)

Public Member Functions

 KateView (KateDocument *doc=0L, QWidget *parent=0L, const char *name=0)
 ~KateView ()
virtual void setCursorPosition (int line, int col, bool mark=false)
virtual void getCursorPosition (int *line, int *col)
virtual bool isOverwriteMode () const
virtual void setOverwriteMode (bool b)
int currentLine ()
int currentColumn ()
int currentCharNum ()
void setCursorPositionInternal (int line, int col)
int config ()
void setConfig (int)
int tabWidth ()
void setTabWidth (int)
void setEncoding (QString e)
int undoSteps ()
void setUndoSteps (int)
bool isReadOnly ()
bool isModified ()
void setReadOnly (bool)
void setModified (bool m=true)
bool isLastView ()
KateDocumentdoc ()
int undoState ()
int nextUndoType ()
int nextRedoType ()
void undoTypeList (QValueList< int > &lst)
void redoTypeList (QValueList< int > &lst)
const char * undoTypeName (int undoType)
QColor * getColors ()
void applyColors ()
int numLines ()
QString text ()
QString currentTextLine ()
QString textLine (int num)
QString currentWord ()
QString word (int x, int y)
void setText (const QString &)
virtual void insertText (const QString &, bool mark=false)
bool hasMarkedText ()
QString markedText ()
bool canDiscard ()
void installPopup (QPopupMenu *rmb_Menu)
void readConfig ()
void writeConfig ()
void readSessionConfig (KateConfig *)
void writeSessionConfig (KateConfig *)
void setDontChangeHlOnSave ()
void setActive (bool b)
bool isActive ()
bool iconBorder ()
Kate::DocumentgetDoc ()

Protected Slots

void replaceSlot ()

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *ev)
void initSearch (SConfig &, int flags)
void continueSearch (SConfig &)
void findAgain (SConfig &)
void replaceAgain ()
void doReplaceAction (int result, bool found=false)
void exposeFound (PointStruc &cursor, int slen, int flags, bool replace)
void deleteReplacePrompt ()
bool askReplaceEnd ()
virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)
void doCursorCommand (int cmdNum)
void doEditCommand (int cmdNum)
void insLine (int line)
void delLine (int line)
void updateCursor ()
void updateCursor (PointStruc &newCursor)
void updateCursor (PointStruc &newCursor, int flags)
void clearDirtyCache (int height)
void tagLines (int start, int end, int x1, int x2)
void tagAll ()
void setPos (int x, int y)
void center ()
void updateView (int flags)
bool eventFilter (QObject *o, QEvent *e)

Protected Attributes

int configFlags
int searchFlags
int replaces
SConfig s
QDialog * replacePrompt
QPopupMenu * rmbMenu
KateViewInternalmyViewInternal
KateDocumentmyDoc
uint myViewID

Static Protected Attributes

static uint uniqueID = 0

Private Slots

void bookmarkMenuAboutToShow ()
void gotoBookmark (int n)

Private Attributes

bool active
bool myIconBorder
QList< Kate::Marklist

Friends

class KateViewInternal
class KateDocument
class KateIconBorder

Detailed Description

The KateView text editor widget. It has many options, document/view architecture and syntax highlight.
Author:
Jochen Wilhelmy

Definition at line 270 of file kateview.h.


Member Enumeration Documentation

enum KateView::Config_flags
 

Enumeration values:
cfAutoIndent 
cfBackspaceIndents 
cfWordWrap 
cfReplaceTabs 
cfRemoveSpaces 
cfWrapCursor 
cfAutoBrackets 
cfPersistent 
cfKeepSelection 
cfVerticalSelect 
cfDelOnInput 
cfXorSelect 
cfOvr 
cfMark 
cfGroupUndo 
cfKeepIndentProfile 
cfKeepExtraSpaces 
cfMouseAutoCopy 
cfSingleSelection 
cfTabIndents 
cfPageUDMovesCursor 
cfShowTabs 
cfSpaceIndent 
cfSmartHome 

Definition at line 733 of file kateview.h.

enum KateView::Cursor_commands
 

Enumeration values:
cmLeft 
cmRight 
cmWordLeft 
cmWordRight 
cmHome 
cmEnd 
cmUp 
cmDown 
cmScrollUp 
cmScrollDown 
cmTopOfView 
cmBottomOfView 
cmPageUp 
cmPageDown 
cmCursorPageUp 
cmCursorPageDown 
cmTop 
cmBottom 

Definition at line 792 of file kateview.h.

enum KateView::Dialog_results
 

Enumeration values:
srYes 
srNo 
srAll 
srCancel 

Definition at line 759 of file kateview.h.

enum KateView::Edit_commands
 

Enumeration values:
cmReturn 
cmDelete 
cmBackspace 
cmKillLine 
cmUndo 
cmRedo 
cmCut 
cmCopy 
cmPaste 
cmIndent 
cmUnindent 
cmCleanIndent 
cmSelectAll 
cmDeselectAll 
cmInvertSelection 
cmComment 
cmUncomment 

Definition at line 799 of file kateview.h.

enum KateView::fileResult
 

Enumeration values:
OK 
CANCEL 
RETRY 
ERROR 

Definition at line 477 of file kateview.h.

enum KateView::Find_commands
 

Enumeration values:
cmFind 
cmReplace 
cmFindAgain 
cmGotoLine 

Definition at line 805 of file kateview.h.

enum KateView::Load_flags
 

Enumeration values:
lfInsert 
lfNewFile 
lfNoAutoHl 

Definition at line 786 of file kateview.h.

enum KateView::Search_flags
 

Enumeration values:
sfCaseSensitive 
sfWholeWords 
sfFromBeginning 
sfBackward 
sfSelected 
sfPrompt 
sfReplace 
sfAgain 
sfWrapped 
sfFinished 
sfRegularExpression 

Definition at line 766 of file kateview.h.

enum KateView::Update_flags
 

Enumeration values:
ufDocGeometry 
ufUpdateOnScroll 
ufPos 

Definition at line 780 of file kateview.h.


Constructor & Destructor Documentation

KateView::KateView KateDocument doc = 0L,
QWidget *  parent = 0L,
const char *  name = 0
 

Definition at line 1186 of file kateview.cpp.

References active, KateDocument::addView(), cfAutoIndent, cfBackspaceIndents, cfDelOnInput, cfGroupUndo, cfKeepIndentProfile, cfMouseAutoCopy, cfRemoveSpaces, cfShowTabs, cfSmartHome, cfTabIndents, cfWrapCursor, configFlags, KateViewInternal::iconBorderHeight, KateViewInternal::iconBorderWidth, KateIconBorder, KateViewInternal, KateViewInternal::leftBorder, myDoc, myIconBorder, myViewID, myViewInternal, newStatus(), newUndo(), readConfig(), replacePrompt, rmbMenu, searchFlags, slotFileStatusChanged(), slotHighlightChanged(), slotNewUndo(), slotUpdate(), and uniqueID.

KateView::~KateView  ) 
 

Definition at line 1236 of file kateview.cpp.

References KateDocument::m_bSingleViewMode, myDoc, myViewInternal, KateDocument::removeView(), and writeConfig().


Member Function Documentation

void KateView::applyColors  ) 
 

Definition at line 1679 of file kateview.cpp.

References myDoc, KateDocument::tagAll(), and KateDocument::updateViews().

Referenced by configDialog().

bool KateView::askReplaceEnd  )  [protected]
 

Definition at line 2175 of file kateview.cpp.

References continueSearch(), SConfig::flags, i18n, KMessageBox::information(), myDoc, KMessageBox::No, KMessageBox::questionYesNo(), replaces, s, sfBackward, sfFinished, str, and KateDocument::updateViews().

Referenced by doReplaceAction().

void KateView::backspace  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 573 of file kateview.h.

References cmBackspace, and doEditCommand().

Referenced by keyPressEvent().

void KateView::bookAddChanged bool  enabled  )  [signal]
 

void KateView::bookClearChanged bool  enabled  )  [signal]
 

void KateView::bookmarkMenuAboutToShow  )  [private, slot]
 

Definition at line 2596 of file kateview.cpp.

References QString::append(), Kate::Document::Bookmark, gotoBookmark(), KateDocument::marks(), myDoc, textLine(), and QString::truncate().

void KateView::bottom  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 604 of file kateview.h.

References cmBottom, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::bottomOfView  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 597 of file kateview.h.

References cmBottomOfView, and doCursorCommand().

Referenced by keyPressEvent().

bool KateView::canDiscard  )  [virtual]
 

Returns true if the current document can be discarded. If the document is modified, the user is asked if he wants to save it. On "cancel" the function returns false.

Reimplemented from Kate::View.

Definition at line 1758 of file kateview.cpp.

References KMessageBox::Cancel, CANCEL, i18n, isModified(), QString::null, save(), KMessageBox::warningContinueCancel(), KMessageBox::warningYesNoCancel(), and KMessageBox::Yes.

Referenced by flush().

void KateView::center  )  [inline, protected]
 

Definition at line 726 of file kateview.h.

References KateViewInternal::center(), and myViewInternal.

void KateView::cleanIndent  )  [inline, slot]
 

Optimizes the selected indentation, replacing tabs and spaces as needed

Definition at line 549 of file kateview.h.

References cmCleanIndent, and doEditCommand().

void KateView::clearBookmarks  )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2581 of file kateview.cpp.

References Kate::Document::Bookmark, KateDocument::getTextLine(), i, KateDocument::marks(), myDoc, KateDocument::tagLines(), and KateDocument::updateViews().

void KateView::clearDirtyCache int  height  )  [inline, protected]
 

Definition at line 722 of file kateview.h.

References KateViewInternal::clearDirtyCache(), and myViewInternal.

void KateView::comment  )  [inline, slot]
 

comments out current line

Definition at line 565 of file kateview.h.

References cmComment, and doEditCommand().

int KateView::config  ) 
 

Returns the config flags. See the cfXXX constants in the .h file.

Definition at line 1575 of file kateview.cpp.

References cfSingleSelection, configFlags, flags, myDoc, and KateDocument::singleSelection().

Referenced by EditConfigTab::EditConfigTab(), EditConfigTab::getData(), SelectConfigTab::getData(), IndentConfigTab::getData(), IndentConfigTab::IndentConfigTab(), KateViewInternal::mouseReleaseEvent(), readConfig(), SelectConfigTab::SelectConfigTab(), slotUpdate(), KateViewInternal::updateCursor(), and writeConfig().

void KateView::configDialog  )  [virtual, slot]
 

Presents the setup dialog to the user

Reimplemented from Kate::View.

Definition at line 2261 of file kateview.cpp.

References KDialogBase::addPage(), applyColors(), KDialogBase::Cancel, colors, QPEApplication::execDialog(), ColorConfig::getColors(), getColors(), EditConfigTab::getData(), SelectConfigTab::getData(), IndentConfigTab::getData(), HlManager::getDefaults(), FontConfig::getFont(), KateDocument::getFont(), HlManager::getHlDataList(), KDialogBase::Help, i18n, KDialogBase::IconList, myDoc, KDialogBase::Ok, HighlightDialogPage::saveData(), HlManager::self(), ColorConfig::setColors(), KateDocument::setFont(), and FontConfig::setFont().

void KateView::continueSearch SConfig  )  [protected]
 

Definition at line 1997 of file kateview.cpp.

References SConfig::cursor, SConfig::flags, KateDocument::lastLine(), myDoc, sfAgain, sfBackward, sfFinished, PointStruc::x, and PointStruc::y.

Referenced by askReplaceEnd(), and findAgain().

void KateView::copy  )  [inline, slot]
 

Copies the marked text into the clipboard

Definition at line 511 of file kateview.h.

References cmCopy, and doEditCommand().

Referenced by KateViewInternal::mouseReleaseEvent().

int KateView::currentCharNum  ) 
 

Returns the number of the character, that the cursor is on (cursor x)

Definition at line 1559 of file kateview.cpp.

References KateViewInternal::cursor, myViewInternal, and PointStruc::x.

int KateView::currentColumn  ) 
 

Returns the current column number. It handles tab's correctly. For the first column it returns 0.

Definition at line 1555 of file kateview.cpp.

References KateDocument::currentColumn(), KateViewInternal::cursor, myDoc, and myViewInternal.

Referenced by getCursorPosition().

int KateView::currentLine  ) 
 

Returns the current line number, that is the line the cursor is on. For the first line it returns 0. Signal newCurPos() is emitted on cursor position changes.

Definition at line 1551 of file kateview.cpp.

References KateViewInternal::cursor, myViewInternal, and PointStruc::y.

Referenced by KateCommands::SedReplace::execCmd(), getCursorPosition(), and toggleBookmark().

QString KateView::currentTextLine  ) 
 

Gets the text line where the cursor is on

Definition at line 1716 of file kateview.cpp.

References KateViewInternal::cursor, KateDocument::getTextLine(), myDoc, myViewInternal, textLine(), and PointStruc::y.

Referenced by KateCommands::SedReplace::execCmd().

QString KateView::currentWord  ) 
 

Gets the word where the cursor is on

Definition at line 1726 of file kateview.cpp.

References KateViewInternal::cursor, KateDocument::getWord(), myDoc, and myViewInternal.

Referenced by find(), and replace().

void KateView::cursorLeft  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 578 of file kateview.h.

References cmLeft, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::cursorRight  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 580 of file kateview.h.

References cmRight, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::cut  )  [inline, slot]
 

Moves the marked text into the clipboard

Definition at line 507 of file kateview.h.

References cmCut, and doEditCommand().

void KateView::deleteReplacePrompt  )  [protected]
 

Definition at line 2171 of file kateview.cpp.

References myDoc, and KateDocument::setPseudoModal().

Referenced by doReplaceAction().

void KateView::delLine int  line  )  [inline, protected]
 

Definition at line 717 of file kateview.h.

References KateViewInternal::delLine(), and myViewInternal.

Referenced by KateDocument::delLine().

void KateView::deselectAll  )  [inline, slot]
 

Deselects all text

Definition at line 557 of file kateview.h.

References cmDeselectAll, and doEditCommand().

KateDocument * KateView::doc  ) 
 

Returns the document object

Definition at line 1641 of file kateview.cpp.

References myDoc.

Referenced by EditConfigTab::EditConfigTab(), KateCommands::SedReplace::execCmd(), EditConfigTab::getData(), KateIconBorder::mousePressEvent(), KateIconBorder::paintEvent(), KateIconBorder::paintLine(), and KateCommands::setLineText().

void KateView::doCursorCommand int  cmdNum  )  [protected]
 

Definition at line 1798 of file kateview.cpp.

References cfKeepSelection, cfMark, KateViewInternal::doCursorCommand(), VConfig::flags, KateViewInternal::getVConfig(), multiSelectFlag, myDoc, myViewInternal, selectFlag, and KateDocument::updateViews().

Referenced by bottom(), bottomOfView(), cursorLeft(), cursorRight(), down(), end(), home(), pageDown(), pageUp(), scrollDown(), scrollUp(), shiftBottom(), shiftCursorLeft(), shiftCursorRight(), shiftDown(), shiftEnd(), shiftHome(), shiftPageDown(), shiftPageUp(), shiftTop(), shiftUp(), shiftWordLeft(), shiftWordRight(), top(), topOfView(), up(), wordLeft(), and wordRight().

void KateView::doEditCommand int  cmdNum  )  [protected]
 

Definition at line 1808 of file kateview.cpp.

References KateViewInternal::doEditCommand(), KateViewInternal::getVConfig(), myDoc, myViewInternal, and KateDocument::updateViews().

Referenced by backspace(), cleanIndent(), comment(), copy(), cut(), deselectAll(), indent(), invertSelection(), keyDelete(), keyReturn(), killLine(), paste(), redo(), selectAll(), uncomment(), undo(), and unIndent().

void KateView::doReplaceAction int  result,
bool  found = false
[protected]
 

Definition at line 2069 of file kateview.cpp.

References askReplaceEnd(), cfPersistent, configFlags, SConfig::cursor, deleteReplacePrompt(), KateDocument::doSearch(), exposeFound(), QValueList< T >::first(), SConfig::flags, QString::length(), SConfig::matchedLength, myDoc, myViewInternal, KateDocument::recordEnd(), KateDocument::recordReplace(), KateDocument::recordStart(), replacePrompt, replaces, replaceSlot(), KateDocument::replaceWithList, s, KateDocument::searchForList, KateDocument::setPseudoModal(), sfAgain, sfBackward, srAll, srCancel, srNo, srYes, SConfig::startCursor, ufUpdateOnScroll, KateActionGroup::ugReplace, KateViewInternal::updateCursor(), PointStruc::x, and PointStruc::y.

Referenced by replaceAgain(), and replaceSlot().

void KateView::down  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 592 of file kateview.h.

References cmDown, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::enableUI bool  enable  )  [signal]
 

void KateView::end  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 588 of file kateview.h.

References cmEnd, and doCursorCommand().

Referenced by keyPressEvent().

bool KateView::eventFilter QObject *  o,
QEvent *  e
[protected]
 

Definition at line 2493 of file kateview.cpp.

References gotFocus(), Qt::Key_BackTab, Qt::Key_Tab, KeyPress, KateViewInternal::keyPressEvent(), and myViewInternal.

void KateView::exposeFound PointStruc cursor,
int  slen,
int  flags,
bool  replace
[protected]
 

Definition at line 2140 of file kateview.cpp.

References VConfig::flags, KateDocument::fontHeight, KateDocument::getTextLine(), KateViewInternal::getVConfig(), height, myDoc, myViewInternal, KateDocument::selectLength(), KateViewInternal::setPos(), textLine(), KateDocument::textWidth(), KateViewInternal::updateView(), KateDocument::updateViews(), KateViewInternal::xPos, and KateViewInternal::yPos.

Referenced by doReplaceAction(), and findAgain().

void KateView::find  )  [slot]
 

Presents a search dialog to the user

Definition at line 1863 of file kateview.cpp.

References currentWord(), QString::find(), findAgain(), KateViewInternal::focusOutEvent(), SearchDialog::getFlags(), SearchDialog::getSearchFor(), KateDocument::hasMarkedText(), initSearch(), QString::isEmpty(), kwview_addToStrList(), QString::left(), markedText(), myDoc, myViewInternal, pos, QString::replace(), KateDocument::replaceWithList, s, searchFlags, KateDocument::searchForList, SearchDialog::setSearchText(), sfPrompt, sfReplace, and sfSelected.

Referenced by findAgain().

void KateView::findAgain  )  [inline, slot]
 

Definition at line 819 of file kateview.h.

Referenced by find(), findAgain(), and findPrev().

void KateView::findAgain bool  back = false  )  [slot]
 

Definition at line 2512 of file kateview.cpp.

References findAgain(), SConfig::flags, initSearch(), replaceAgain(), s, searchFlags, sfAgain, sfBackward, sfFromBeginning, sfPrompt, and sfReplace.

void KateView::findAgain SConfig  )  [protected]
 

Definition at line 2010 of file kateview.cpp.

References KMessageBox::Cancel, KMessageBox::Continue, continueSearch(), KateDocument::doSearch(), exposeFound(), find(), QValueList< T >::first(), i18n, QString::isEmpty(), myDoc, myViewInternal, KateDocument::searchForList, sfAgain, sfBackward, sfFinished, KMessageBox::sorry(), str, ufUpdateOnScroll, KateViewInternal::updateCursor(), and KMessageBox::warningContinueCancel().

void KateView::findPrev  )  [inline, slot]
 

Definition at line 820 of file kateview.h.

References findAgain().

void KateView::flush  )  [virtual, slot]
 

Flushes the document of the text widget. The user is given a chance to save the current document if the current document has been modified.

Reimplemented from Kate::View.

Definition at line 1781 of file kateview.cpp.

References canDiscard(), KateDocument::flush(), and myDoc.

QColor * KateView::getColors  ) 
 

Definition at line 1674 of file kateview.cpp.

References KateDocument::colors, and myDoc.

Referenced by configDialog().

void KateView::getCursorPosition int *  line,
int *  col
[virtual]
 

Implements KTextEditor::View.

Definition at line 1541 of file kateview.cpp.

References currentColumn(), and currentLine().

Referenced by KateDocument::doComment().

Kate::Document* KateView::getDoc  )  [inline, virtual]
 

Returns a pointer to the document of the view.

Reimplemented from Kate::View.

Definition at line 844 of file kateview.h.

References myDoc.

int KateView::getEol  )  [slot]
 

Get the end of line mode (Unix, Macintosh or Dos)

Definition at line 2362 of file kateview.cpp.

References KateDocument::eolMode, and myDoc.

Referenced by slotFileStatusChanged().

int KateView::getHl  )  [virtual, slot]
 

Gets the highlight number

Reimplemented from Kate::View.

Definition at line 2347 of file kateview.cpp.

References KateDocument::highlightNum(), and myDoc.

int KateView::getHlCount  )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2624 of file kateview.cpp.

References HlManager::self().

QString KateView::getHlName int   )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2629 of file kateview.cpp.

References HlManager::self().

QString KateView::getHlSection int   )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2634 of file kateview.cpp.

References HlManager::self().

void KateView::gotFocus KateView  )  [signal]
 

Referenced by eventFilter(), and setFocus().

void KateView::gotoBookmark int  n  )  [private, slot]
 

Definition at line 2619 of file kateview.cpp.

References gotoMark().

Referenced by bookmarkMenuAboutToShow().

void KateView::gotoLine  )  [slot]
 

Presents a "Goto Line" dialog to the user

Definition at line 1938 of file kateview.cpp.

References KateViewInternal::center(), KateViewInternal::cursor, GotoLineDialog::getLine(), myDoc, myViewInternal, KateDocument::needPreHighlight(), KateDocument::numLines(), ufUpdateOnScroll, KateViewInternal::updateCursor(), KateViewInternal::updateView(), KateDocument::updateViews(), PointStruc::x, and PointStruc::y.

void KateView::gotoMark Kate::Mark mark  )  [slot]
 

Definition at line 2555 of file kateview.cpp.

References KateViewInternal::center(), Kate::Mark::line, myDoc, myViewInternal, KateDocument::needPreHighlight(), ufUpdateOnScroll, KateViewInternal::updateCursor(), KateViewInternal::updateView(), KateDocument::updateViews(), PointStruc::x, and PointStruc::y.

Referenced by gotoBookmark().

bool KateView::hasMarkedText  ) 
 

Queries if there is marked text

Definition at line 1750 of file kateview.cpp.

References KateDocument::hasMarkedText(), and myDoc.

void KateView::home  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 586 of file kateview.h.

References cmHome, and doCursorCommand().

Referenced by keyPressEvent().

bool KateView::iconBorder  )  [inline, virtual]
 

Reimplemented from Kate::View.

Definition at line 837 of file kateview.h.

References myIconBorder.

void KateView::indent  )  [inline, slot]
 

Moves the current line or the selection one position to the right

Definition at line 541 of file kateview.h.

References cmIndent, and doEditCommand().

void KateView::initSearch SConfig ,
int  flags
[protected]
 

Definition at line 1959 of file kateview.cpp.

References KateViewInternal::cursor, QString::find(), QValueList< T >::first(), KateDocument::getTextLine(), KateDocument::lastLine(), QString::length(), myDoc, myViewInternal, pos, KateDocument::searchForList, sfBackward, sfCaseSensitive, sfFinished, sfFromBeginning, and textLine().

Referenced by find(), findAgain(), and replace().

void KateView::insertText const QString ,
bool  mark = false
[virtual]
 

Insert text at the current cursor position. If length is a positive number, it restricts the number of inserted characters

Reimplemented from KTextEditor::View.

Definition at line 1743 of file kateview.cpp.

References KateViewInternal::getVConfig(), KateDocument::insert(), myDoc, myViewInternal, and KateDocument::updateViews().

Referenced by KateDocument::doComment(), KateCommands::Character::execCmd(), and KateCommands::InsertTime::execCmd().

void KateView::insLine int  line  )  [inline, protected]
 

Definition at line 716 of file kateview.h.

References KateViewInternal::insLine(), and myViewInternal.

Referenced by KateDocument::insLine().

void KateView::installPopup QPopupMenu *  rmb_Menu  ) 
 

Install a Popup Menu. The Popup Menu will be activated on a right mouse button press event.

Definition at line 2212 of file kateview.cpp.

References rmbMenu.

void KateView::invertSelection  )  [inline, slot]
 

Inverts the current selection

Definition at line 561 of file kateview.h.

References cmInvertSelection, and doEditCommand().

bool KateView::isActive  ) 
 

Definition at line 2481 of file kateview.cpp.

References active.

bool KateView::isLastView  ) 
 

Returns true if this editor is the only owner of its document

Definition at line 1637 of file kateview.cpp.

References KateDocument::isLastView(), and myDoc.

bool KateView::isModified  ) 
 

Returns true if the document has been modified.

Definition at line 1625 of file kateview.cpp.

References KateDocument::modified, and myDoc.

Referenced by canDiscard(), and save().

bool KateView::isOverwriteMode  )  const [virtual]
 

Overwrite mode is where the char under the cursor is replaced with the char typed by the user

Implements KTextEditor::View.

Definition at line 1685 of file kateview.cpp.

References cfOvr, and configFlags.

Referenced by setOverwriteMode().

bool KateView::isReadOnly  ) 
 

Returns true if the document is in read only mode.

Definition at line 1621 of file kateview.cpp.

References myDoc, and KateDocument::readOnly.

Referenced by KateViewInternal::doEditCommand(), KateViewInternal::keyPressEvent(), KateViewInternal::mousePressEvent(), redoMultiple(), replace(), replaceAgain(), setEol(), undoMultiple(), and undoState().

void KateView::keyDelete  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 572 of file kateview.h.

References cmDelete, and doEditCommand().

Referenced by KateDocument::doComment(), and keyPressEvent().

void KateView::keyPressEvent QKeyEvent *  ev  )  [protected, virtual]
 

Definition at line 1404 of file kateview.cpp.

References backspace(), bottom(), bottomOfView(), cursorLeft(), cursorRight(), KateDocument::delMarkedText(), down(), end(), KateViewInternal::getVConfig(), home(), Key_K, keyDelete(), keyReturn(), killLine(), myDoc, myViewInternal, pageDown(), pageUp(), scrollDown(), scrollUp(), shiftBottom(), shiftCursorLeft(), shiftCursorRight(), shiftDown(), shiftEnd(), shiftHome(), shiftPageDown(), shiftPageUp(), shiftTop(), shiftUp(), shiftWordLeft(), shiftWordRight(), toggleInsert(), top(), topOfView(), up(), wordLeft(), and wordRight().

void KateView::keyReturn  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 571 of file kateview.h.

References cmReturn, and doEditCommand().

Referenced by keyPressEvent().

void KateView::killLine  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 574 of file kateview.h.

References cmKillLine, and doEditCommand().

Referenced by keyPressEvent().

QString KateView::markedText  )  [virtual]
 

Gets the marked text as string

Reimplemented from Kate::View.

Definition at line 1754 of file kateview.cpp.

References configFlags, KateDocument::markedText(), and myDoc.

Referenced by KateDocument::doComment(), find(), and replace().

void KateView::newCurPos  )  [signal]
 

The cursor position has changed. Get the values with currentLine() and currentColumn()

Referenced by KateViewInternal::updateView().

void KateView::newMarkStatus  )  [signal]
 

The marked text state has changed. This can be used to enable/disable cut and copy

Referenced by KateDocument::updateViews().

void KateView::newStatus  )  [signal]
 

Modified flag or config flags have changed

Referenced by KateView(), and setConfig().

void KateView::newUndo  )  [signal]
 

The undo/redo enable status has changed

Referenced by KateView(), and undoHistory().

int KateView::nextRedoType  ) 
 

Returns the type of the next redo group.

Definition at line 1656 of file kateview.cpp.

References myDoc, and KateDocument::nextRedoType().

Referenced by slotNewUndo().

int KateView::nextUndoType  ) 
 

Returns the type of the next undo group.

Definition at line 1652 of file kateview.cpp.

References myDoc, and KateDocument::nextUndoType().

Referenced by slotNewUndo().

int KateView::numLines  ) 
 

Gets the number of text lines;

Definition at line 1708 of file kateview.cpp.

References myDoc, and KateDocument::numLines().

void KateView::pageDown  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 600 of file kateview.h.

References cmPageDown, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::pageUp  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 598 of file kateview.h.

References cmPageUp, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::paintEvent QPaintEvent *   )  [protected, virtual]
 

Definition at line 2376 of file kateview.cpp.

References g, height, width, Opie::MM::x, and Opie::MM::y.

void KateView::paste  )  [inline, slot]
 

Inserts text from the clipboard at the actual cursor position

Definition at line 515 of file kateview.h.

References cmPaste, and doEditCommand().

Referenced by KateViewInternal::mousePressEvent().

void KateView::readConfig  )  [virtual]
 

Reads config entries

Reimplemented from Kate::View.

Definition at line 2217 of file kateview.cpp.

References cfMark, KGlobal::config(), config(), configFlags, KateConfig::readNumEntry(), searchFlags, KateConfig::setGroup(), and sfPrompt.

Referenced by KateView().

void KateView::readSessionConfig KateConfig  )  [virtual]
 

Reads session config out of the KateConfig object. This also includes the actual cursor position and the bookmarks.

Reimplemented from Kate::View.

Definition at line 2239 of file kateview.cpp.

References myIconBorder, myViewInternal, setIconBorder(), KateViewInternal::updateCursor(), PointStruc::x, KateViewInternal::xPos, PointStruc::y, and KateViewInternal::yPos.

void KateView::redo  )  [inline, virtual, slot]
 

Repeats an operation which has been undone before.

Reimplemented from Kate::View.

Definition at line 523 of file kateview.h.

References cmRedo, and doEditCommand().

Referenced by undoHistory().

void KateView::redoMultiple int  count  )  [slot]
 

Repeats <count> operation which have been undone before. Called by slot redo().

Definition at line 1825 of file kateview.cpp.

References KateViewInternal::getVConfig(), isReadOnly(), myDoc, myViewInternal, KateDocument::redo(), and KateDocument::updateViews().

Referenced by undoHistory().

void KateView::redoTypeList QValueList< int > &  lst  ) 
 

Returns a list of all available redo types, in redo order.

Definition at line 1665 of file kateview.cpp.

References myDoc, and KateDocument::redoTypeList().

Referenced by UndoHistory::newUndo().

void KateView::replace  )  [slot]
 

Presents a replace dialog to the user

Definition at line 1899 of file kateview.cpp.

References currentWord(), QString::find(), KateViewInternal::focusOutEvent(), SearchDialog::getFlags(), SearchDialog::getReplaceWith(), SearchDialog::getSearchFor(), KateDocument::hasMarkedText(), initSearch(), QString::isEmpty(), isReadOnly(), kwview_addToStrList(), QString::left(), markedText(), myDoc, myViewInternal, pos, QString::replace(), replaceAgain(), KateDocument::replaceWithList, s, searchFlags, KateDocument::searchForList, SearchDialog::setSearchText(), sfReplace, sfSelected, and str.

void KateView::replaceAgain  )  [protected]
 

Definition at line 2057 of file kateview.cpp.

References doReplaceAction(), SConfig::flags, isReadOnly(), replaces, s, sfPrompt, and srAll.

Referenced by findAgain(), and replace().

void KateView::replaceSlot  )  [protected, slot]
 

Definition at line 2208 of file kateview.cpp.

References doReplaceAction(), and replacePrompt.

Referenced by doReplaceAction().

void KateView::resizeEvent QResizeEvent *   )  [protected, virtual]
 

Definition at line 2419 of file kateview.cpp.

References myViewInternal, KateViewInternal::tagAll(), and KateViewInternal::updateView().

KateView::fileResult KateView::save  )  [slot]
 

Saves the file if necessary under the current file name. If the current file name is Untitled, as it is after a call to newFile(), this routing will call saveAs().

Definition at line 1786 of file kateview.cpp.

References isModified(), OK, saveAs(), and KMessageBox::Yes.

Referenced by canDiscard().

KateView::fileResult KateView::saveAs  )  [slot]
 

Allows the user to save the file under a new name. This starts the automatic highlight selection.

Definition at line 1794 of file kateview.cpp.

References OK.

Referenced by save().

void KateView::scrollDown  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 595 of file kateview.h.

References cmScrollDown, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::scrollUp  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 594 of file kateview.h.

References cmScrollUp, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::selectAll  )  [inline, slot]
 

Selects all text

Definition at line 553 of file kateview.h.

References cmSelectAll, and doEditCommand().

void KateView::setActive bool  b  ) 
 

Definition at line 2476 of file kateview.cpp.

References active.

void KateView::setConfig int   ) 
 

Sets the config flags

Definition at line 1583 of file kateview.cpp.

References cfShowTabs, cfSingleSelection, configFlags, myDoc, myViewInternal, newStatus(), KateDocument::setSingleSelection(), and updateView().

Referenced by EditConfigTab::getData(), SelectConfigTab::getData(), IndentConfigTab::getData(), setOverwriteMode(), toggleInsert(), and toggleVertical().

void KateView::setCursorPosition int  line,
int  col,
bool  mark = false
[virtual]
 

Implements KTextEditor::View.

Definition at line 1536 of file kateview.cpp.

References setCursorPositionInternal().

void KateView::setCursorPositionInternal int  line,
int  col
 

Sets the current cursor position

Definition at line 1563 of file kateview.cpp.

References KateViewInternal::center(), myDoc, myViewInternal, KateViewInternal::updateCursor(), KateDocument::updateViews(), PointStruc::x, and PointStruc::y.

Referenced by setCursorPosition().

void KateView::setDontChangeHlOnSave  ) 
 

Definition at line 2351 of file kateview.cpp.

References myDoc, and KateDocument::setDontChangeHlOnSave().

void KateView::setEncoding QString  e  ) 
 

Definition at line 1608 of file kateview.cpp.

References myDoc, KateDocument::setEncoding(), and KateDocument::updateViews().

Referenced by EditConfigTab::getData().

void KateView::setEol int   )  [slot]
 

Set the end of line mode (Unix, Macintosh or Dos)

Definition at line 2366 of file kateview.cpp.

References KateDocument::eolMode, isReadOnly(), myDoc, and KateDocument::setModified().

void KateView::setFocus  )  [virtual, slot]
 

Definition at line 2486 of file kateview.cpp.

References gotFocus().

void KateView::setHl int  n  )  [virtual, slot]
 

Sets the highlight number n

Reimplemented from Kate::View.

Definition at line 2356 of file kateview.cpp.

References myDoc, KateDocument::setDontChangeHlOnSave(), KateDocument::setHighlight(), and KateDocument::updateViews().

void KateView::setIconBorder bool  enable  )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2534 of file kateview.cpp.

References KateViewInternal::iconBorderWidth, KateViewInternal::leftBorder, myIconBorder, and myViewInternal.

Referenced by readSessionConfig(), and toggleIconBorder().

void KateView::setModified bool  m = true  ) 
 

Sets the modification status of the document

Definition at line 1633 of file kateview.cpp.

References myDoc, and KateDocument::setModified().

void KateView::setOverwriteMode bool  b  )  [virtual]
 

Implements KTextEditor::View.

Definition at line 1690 of file kateview.cpp.

References cfOvr, configFlags, isOverwriteMode(), and setConfig().

void KateView::setPos int  x,
int  y
[inline, protected]
 

Definition at line 725 of file kateview.h.

References myViewInternal, and KateViewInternal::setPos().

void KateView::setReadOnly bool   ) 
 

Sets the read-only flag of the document

Definition at line 1629 of file kateview.cpp.

References myDoc, and KateDocument::setReadOnly().

void KateView::setTabWidth int   ) 
 

Definition at line 1603 of file kateview.cpp.

References myDoc, KateDocument::setTabWidth(), and KateDocument::updateViews().

Referenced by EditConfigTab::getData().

void KateView::setText const QString  ) 
 

Discard old text without warning and set new text

Definition at line 1738 of file kateview.cpp.

References myDoc, KateDocument::setText(), and KateDocument::updateViews().

void KateView::setUndoSteps int   ) 
 

Definition at line 1617 of file kateview.cpp.

References myDoc, and KateDocument::setUndoSteps().

Referenced by EditConfigTab::getData().

void KateView::shiftBottom  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 605 of file kateview.h.

References cmBottom, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftCursorLeft  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 579 of file kateview.h.

References cmLeft, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftCursorRight  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 581 of file kateview.h.

References cmRight, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftDown  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 593 of file kateview.h.

References cmDown, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftEnd  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 589 of file kateview.h.

References cmEnd, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftHome  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 587 of file kateview.h.

References cmHome, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftPageDown  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 601 of file kateview.h.

References cmPageDown, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftPageUp  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 599 of file kateview.h.

References cmPageUp, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftTop  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 603 of file kateview.h.

References cmTop, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftUp  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 591 of file kateview.h.

References cmUp, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftWordLeft  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 583 of file kateview.h.

References cmWordLeft, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::shiftWordRight  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 585 of file kateview.h.

References cmWordRight, doCursorCommand(), and selectFlag.

Referenced by keyPressEvent().

void KateView::slotDecFontSizes  )  [slot]
 

Definition at line 2646 of file kateview.cpp.

References KateDocument::getFont(), myDoc, and KateDocument::setFont().

void KateView::slotEditCommand  )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2523 of file kateview.cpp.

void KateView::slotFileStatusChanged  )  [slot]
 

Definition at line 1362 of file kateview.cpp.

References getEol().

Referenced by KateView().

void KateView::slotHighlightChanged  )  [slot]
 

Definition at line 1398 of file kateview.cpp.

Referenced by KateView().

void KateView::slotIncFontSizes  )  [slot]
 

Definition at line 2639 of file kateview.cpp.

References KateDocument::getFont(), myDoc, and KateDocument::setFont().

void KateView::slotNewUndo  )  [slot]
 

Definition at line 1369 of file kateview.cpp.

References i18n, nextRedoType(), nextUndoType(), t, undoState(), and undoTypeName().

Referenced by KateView(), and slotUpdate().

void KateView::slotUpdate  )  [slot]
 

Definition at line 1354 of file kateview.cpp.

References config(), and slotNewUndo().

Referenced by KateView().

int KateView::tabWidth  ) 
 

Definition at line 1599 of file kateview.cpp.

References myDoc, and KateDocument::tabChars.

Referenced by EditConfigTab::EditConfigTab().

void KateView::tagAll  )  [inline, protected]
 

Definition at line 724 of file kateview.h.

References myViewInternal, and KateViewInternal::tagAll().

Referenced by KateDocument::clear(), and KateDocument::updateFontData().

void KateView::tagLines int  start,
int  end,
int  x1,
int  x2
[inline, protected]
 

Definition at line 723 of file kateview.h.

References myViewInternal, and KateViewInternal::tagLines().

QString KateView::text  ) 
 

Gets the complete document content as string

Definition at line 1712 of file kateview.cpp.

References myDoc, and KateDocument::text().

QString KateView::textLine int  num  ) 
 

Gets a text line

Definition at line 1721 of file kateview.cpp.

References KateDocument::getTextLine(), and myDoc.

Referenced by bookmarkMenuAboutToShow(), currentTextLine(), KateCommands::SedReplace::execCmd(), exposeFound(), and initSearch().

void KateView::toggleBookmark  )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2568 of file kateview.cpp.

References Kate::Document::Bookmark, currentLine(), KateDocument::getTextLine(), myDoc, KateDocument::tagLines(), and KateDocument::updateViews().

void KateView::toggleIconBorder  )  [virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 2550 of file kateview.cpp.

References myIconBorder, and setIconBorder().

void KateView::toggleInsert  )  [slot]
 

Toggles Insert mode

Definition at line 1698 of file kateview.cpp.

References cfOvr, configFlags, and setConfig().

Referenced by keyPressEvent().

void KateView::toggleVertical  )  [slot]
 

Toggles "Vertical Selections" option

Definition at line 1702 of file kateview.cpp.

References cfVerticalSelect, configFlags, and setConfig().

void KateView::top  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 602 of file kateview.h.

References cmTop, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::topOfView  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 596 of file kateview.h.

References cmTopOfView, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::uncomment  )  [inline, slot]
 

removes comment signs in the current line

Definition at line 569 of file kateview.h.

References cmUncomment, and doEditCommand().

void KateView::undo  )  [inline, virtual, slot]
 

Undoes the last operation. The number of undo steps is configurable

Reimplemented from Kate::View.

Definition at line 519 of file kateview.h.

References cmUndo, and doEditCommand().

Referenced by undoHistory().

void KateView::undoHistory  )  [virtual, slot]
 

Displays the undo history dialog

Reimplemented from Kate::View.

Definition at line 1835 of file kateview.cpp.

References i18n, newUndo(), redo(), redoMultiple(), undo(), and undoMultiple().

void KateView::undoMultiple int  count  )  [slot]
 

Undoes <count> operations. Called by slot undo().

Definition at line 1815 of file kateview.cpp.

References KateViewInternal::getVConfig(), isReadOnly(), myDoc, myViewInternal, KateDocument::undo(), and KateDocument::updateViews().

Referenced by undoHistory().

int KateView::undoState  ) 
 

Definition at line 1645 of file kateview.cpp.

References isReadOnly(), myDoc, and KateDocument::undoState.

Referenced by slotNewUndo().

int KateView::undoSteps  ) 
 

Definition at line 1613 of file kateview.cpp.

References myDoc, and KateDocument::undoSteps.

Referenced by EditConfigTab::EditConfigTab().

void KateView::undoTypeList QValueList< int > &  lst  ) 
 

Returns a list of all available undo types, in undo order.

Definition at line 1660 of file kateview.cpp.

References myDoc, and KateDocument::undoTypeList().

Referenced by UndoHistory::newUndo().

const char * KateView::undoTypeName int  undoType  ) 
 

Returns a short text description of the given undo type, which is obtained with nextUndoType(), nextRedoType(), undoTypeList(), and redoTypeList(), suitable for display in a menu entry. It is not translated; use i18n() before displaying this string.

Definition at line 1670 of file kateview.cpp.

References KateActionGroup::typeName().

Referenced by UndoHistory::newUndo(), and slotNewUndo().

void KateView::unIndent  )  [inline, slot]
 

Moves the current line or the selection one position to the left

Definition at line 545 of file kateview.h.

References cmUnindent, and doEditCommand().

void KateView::up  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 590 of file kateview.h.

References cmUp, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::updateCursor PointStruc newCursor,
int  flags
[inline, protected]
 

Definition at line 720 of file kateview.h.

References myViewInternal, and KateViewInternal::updateCursor().

void KateView::updateCursor PointStruc newCursor  )  [inline, protected]
 

Definition at line 719 of file kateview.h.

References myViewInternal, and KateViewInternal::updateCursor().

void KateView::updateCursor  )  [inline, protected]
 

Definition at line 718 of file kateview.h.

References myViewInternal, and KateViewInternal::updateCursor().

Referenced by KateDocument::clear(), KateDocument::recordEnd(), KateDocument::redo(), and KateDocument::updateFontData().

void KateView::updateView int  flags  )  [inline, protected]
 

Definition at line 728 of file kateview.h.

References myViewInternal, and KateViewInternal::updateView().

Referenced by setConfig(), and KateDocument::updateViews().

QString KateView::word int  x,
int  y
 

Gets the word at position x, y. Can be used to find the word under the mouse cursor

Definition at line 1730 of file kateview.cpp.

References KateDocument::fontHeight, KateDocument::getTextLine(), KateDocument::getWord(), KateDocument::lastLine(), myDoc, myViewInternal, KateDocument::textPos(), PointStruc::x, KateViewInternal::xPos, PointStruc::y, and KateViewInternal::yPos.

void KateView::wordLeft  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 582 of file kateview.h.

References cmWordLeft, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::wordRight  )  [inline, virtual, slot]
 

Reimplemented from Kate::View.

Definition at line 584 of file kateview.h.

References cmWordRight, and doCursorCommand().

Referenced by keyPressEvent().

void KateView::writeConfig  )  [virtual]
 

Writes config entries i

Reimplemented from Kate::View.

Definition at line 2228 of file kateview.cpp.

References KGlobal::config(), config(), configFlags, searchFlags, KateConfig::setGroup(), and KateConfig::writeEntry().

Referenced by ~KateView().

void KateView::writeSessionConfig KateConfig  )  [virtual]
 

Writes session config into the KateConfig object

Reimplemented from Kate::View.

Definition at line 2252 of file kateview.cpp.

References KateViewInternal::cursor, myIconBorder, myViewInternal, KateConfig::writeEntry(), PointStruc::x, KateViewInternal::xPos, PointStruc::y, and KateViewInternal::yPos.


Friends And Related Function Documentation

friend class KateDocument [friend]
 

Definition at line 274 of file kateview.h.

friend class KateIconBorder [friend]
 

Definition at line 275 of file kateview.h.

Referenced by KateView().

friend class KateViewInternal [friend]
 

Definition at line 272 of file kateview.h.

Referenced by KateView().


Member Data Documentation

bool KateView::active [private]
 

Definition at line 812 of file kateview.h.

Referenced by isActive(), KateView(), and setActive().

int KateView::configFlags [protected]
 

Definition at line 422 of file kateview.h.

Referenced by config(), doReplaceAction(), KateViewInternal::getVConfig(), isOverwriteMode(), KateView(), markedText(), KateViewInternal::paintCursor(), KateViewInternal::paintEvent(), KateViewInternal::paintTextLines(), readConfig(), setConfig(), setOverwriteMode(), toggleInsert(), toggleVertical(), and writeConfig().

QList<Kate::Mark> KateView::list [private]
 

Definition at line 814 of file kateview.h.

KateDocument* KateView::myDoc [protected]
 

Definition at line 711 of file kateview.h.

Referenced by applyColors(), askReplaceEnd(), bookmarkMenuAboutToShow(), clearBookmarks(), config(), configDialog(), continueSearch(), currentColumn(), currentTextLine(), currentWord(), deleteReplacePrompt(), doc(), doCursorCommand(), doEditCommand(), doReplaceAction(), exposeFound(), find(), findAgain(), flush(), getColors(), getDoc(), getEol(), getHl(), gotoLine(), gotoMark(), hasMarkedText(), initSearch(), insertText(), isLastView(), isModified(), isReadOnly(), KateView(), keyPressEvent(), markedText(), nextRedoType(), nextUndoType(), numLines(), redoMultiple(), redoTypeList(), replace(), setConfig(), setCursorPositionInternal(), setDontChangeHlOnSave(), setEncoding(), setEol(), setHl(), setModified(), setReadOnly(), setTabWidth(), setText(), setUndoSteps(), slotDecFontSizes(), slotIncFontSizes(), tabWidth(), text(), textLine(), toggleBookmark(), undoMultiple(), undoState(), undoSteps(), undoTypeList(), word(), and ~KateView().

bool KateView::myIconBorder [private]
 

Definition at line 813 of file kateview.h.

Referenced by iconBorder(), KateView(), KateIconBorder::paintEvent(), KateIconBorder::paintLine(), readSessionConfig(), setIconBorder(), toggleIconBorder(), and writeSessionConfig().

uint KateView::myViewID [protected]
 

Definition at line 856 of file kateview.h.

Referenced by KateView().

KateViewInternal* KateView::myViewInternal [protected]
 

Definition at line 710 of file kateview.h.

Referenced by center(), clearDirtyCache(), currentCharNum(), currentColumn(), currentLine(), currentTextLine(), currentWord(), delLine(), doCursorCommand(), doEditCommand(), doReplaceAction(), eventFilter(), exposeFound(), find(), findAgain(), gotoLine(), gotoMark(), initSearch(), insertText(), insLine(), KateView(), keyPressEvent(), readSessionConfig(), redoMultiple(), replace(), resizeEvent(), setConfig(), setCursorPositionInternal(), setIconBorder(), setPos(), tagAll(), tagLines(), undoMultiple(), updateCursor(), KateDocument::updateFontData(), updateView(), word(), writeSessionConfig(), and ~KateView().

QDialog* KateView::replacePrompt [protected]
 

Definition at line 637 of file kateview.h.

Referenced by doReplaceAction(), KateView(), and replaceSlot().

int KateView::replaces [protected]
 

Definition at line 635 of file kateview.h.

Referenced by askReplaceEnd(), doReplaceAction(), and replaceAgain().

QPopupMenu* KateView::rmbMenu [protected]
 

Definition at line 648 of file kateview.h.

Referenced by installPopup(), KateView(), and KateViewInternal::mousePressEvent().

SConfig KateView::s [protected]
 

Definition at line 636 of file kateview.h.

Referenced by askReplaceEnd(), doReplaceAction(), find(), findAgain(), replace(), and replaceAgain().

int KateView::searchFlags [protected]
 

Definition at line 634 of file kateview.h.

Referenced by find(), findAgain(), KateView(), readConfig(), replace(), and writeConfig().

uint KateView::uniqueID = 0 [static, protected]
 

Definition at line 1184 of file kateview.cpp.

Referenced by KateView().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:18 2005 for OPIE by  doxygen 1.4.2