Logo Search packages:      
Sourcecode: yzis version File versions  Download package

YView Class Reference

#include <view.h>

Inheritance diagram for YView:

YViewIface NYView QYView

List of all members.

Detailed Description

Abstract object for a view.

MUST be reimplemented in the GUI. It's the basis to display the content of a buffer. One view is the display of some part of a buffer, it is used to receive inputs and displays corresponding outputs. Each YBuffer can have multiple views. YBuffer will take care of synchronizing every views so updates are propagated to all views.

Definition at line 56 of file view.h.

Public Member Functions

void abortPaintEvent ()
void alignViewBufferVertically (int line)
void alignViewVertically (int line)
QString append ()
void appendInputBuffer (const YKey &k)
void applyChanges (int y)
void applyStartPosition (const YCursor pos)
void bottomViewVertically (int line)
QString centerLine (const QString &)
void centerViewHorizontally (int column)
void centerViewVertically (int line=-1)
YSelection clipSelection (const YSelection &sel) const
void commitNextUndo ()
void commitPaintEvent ()
void commitUndoItem ()
YModecurrentMode () const
void displayInfo (const QString &)
void displayIntro ()
const YColordrawBgColor ()
const YColordrawBgSelColor ()
bool drawBold ()
const QChar & drawChar () const
const YColordrawColor (int col, int line) const
const YColordrawColor ()
int drawHeight () const
bool drawItalic ()
int drawLength () const
const QChar & drawLineFiller () const
const QChar & drawLineMarker () const
int drawLineNumber () const
bool drawNextCol ()
bool drawNextLine ()
const YColordrawOutline ()
bool drawOverline ()
bool drawPrevCol ()
bool drawPrevLine ()
const YColordrawSelColor ()
bool drawStrikeOutLine ()
int drawTotalHeight ()
bool drawUnderline ()
const QChar & fillChar () const
YZFoldPoolfolds () const
const YCursor getBufferCursor () const
QString getCharBelow (int delta)
int getColumnsVisible () const
int getCurrentLeft () const
int getCurrentTop () const
const YCursor getCursor () const
int getDrawCurrentLeft () const
int getDrawCurrentTop () const
const int getId () const
const YKeySequence & getInputBuffer () const
const YKeySequence & getLastInputBuffer () const
int getLinesVisible () const
bool getLocalBooleanOption (const QString &option) const
int getLocalIntegerOption (const QString &option) const
QStringList getLocalListOption (const QString &option) const
MapOption getLocalMapOption (const QString &option) const
YOptionValuegetLocalOption (const QString &option) const
QString getLocalOptionKey () const
QString getLocalStringOption (const QString &option) const
YCursor getRelativeScreenCursor () const
YCursor getScreenPosition () const
YSelectionPoolgetSelectionPool () const
void gotodxdy (YViewCursor *viewCursor, const int x, const int y, bool applyCursor=true)
void gotodxdy (YViewCursor *viewCursor, QPoint nextpos, bool applyCursor=true)
void gotodxdy (int nextx, int nexty, bool applyCursor=true)
void gotodxdy (QPoint nextpos, bool applyCursor=true)
void gotodxdyAndStick (const int x, const int y)
void gotodxdyAndStick (const QPoint cursor)
void gotodxy (YViewCursor *viewCursor, int nextx, int nexty, bool applyCursor=true)
void gotodxy (int nextx, int nexty, bool applyCursor=true)
void gotoLastLine (YViewCursor *viewCursor, bool applyCursor=true)
void gotoLastLine ()
void gotoLine (YViewCursor *viewCursor, int line, bool applyCursor=true)
void gotoLine (int line)
void gotoStickyCol (YViewCursor *viewCursor, int Y, bool applyCursor=true)
void gotoStickyCol (int Y)
void gotoxdy (YViewCursor *viewCursor, int nextx, int nexty, bool applyCursor=true)
void gotoxdy (int nextx, int nexty, bool applyCursor=true)
void gotoxy (YViewCursor *viewCursor, int nextx, int nexty, bool applyCursor=true)
void gotoxy (int nextx, int nexty, bool applyCursor=true)
void gotoxy (YViewCursor *viewCursor, const QPoint nextpos, bool applyCursor=true)
void gotoxy (const QPoint nextpos, bool applyCursor=true)
void gotoxyAndStick (const int x, const int y)
void gotoxyAndStick (const QPoint cursor)
virtual void guiDisplayInfo (const QString &)
virtual void guiDrawCell (QPoint pos, const YDrawCell &cell, void *arg)=0
virtual void guiDrawClearToEOL (QPoint pos, const QChar &clearChar)=0
virtual void guiDrawSetLineNumber (int y, int n, int h)=0
virtual void guiDrawSetMaxLineNumber (int max)=0
virtual void guiEndPaintEvent ()=0
virtual QString guiGetCommandLineText () const =0
virtual void guiHighlightingChanged ()=0
virtual void guiNotifyContentChanged (const YSelection &s)=0
virtual void guiPaintEvent (const YSelection &drawMap)
virtual bool guiPopupFileSaveAs ()=0
virtual void guiPreparePaintEvent (int y_min, int y_max)=0
virtual void guiScroll (int dx, int dy)=0
virtual void guiSelectionChanged ()
virtual void guiSetCommandLineText (const QString &)=0
virtual void guiSetFocusCommandLine ()=0
virtual void guiSetFocusMainWindow ()=0
virtual YStatusBarIfaceguiStatusBar ()=0
virtual void guiUpdateCursor ()=0
virtual void guiUpdateFileInfo ()
virtual void guiUpdateFileName ()
virtual void guiUpdateMode ()=0
void indent ()
void initChanges (QPoint pos)
void initDraw (int sLeft, int sTop, int rLeft, int rTop, bool draw=true)
void initDraw ()
int initDrawContents (int clipy)
bool isColumnVisible (int column, int line) const
bool isLineVisible (int l) const
bool isRecording () const
int lineHeight () const
int lineIncrement () const
YModePoolmodePool () const
bool moveDown (YViewCursor *viewCursor, int nb_lines=1, bool applyCursor=true)
bool moveDown (int nb_lines=1, bool applyCursor=true)
bool moveLeft (YViewCursor *viewCursor, int nb_cols=1, bool wrap=false, bool applyCursor=true)
bool moveLeft (int nb_cols=1, bool wrap=false, bool applyCursor=true)
bool moveRight (YViewCursor *viewCursor, int nb_cols=1, bool wrap=false, bool applyCursor=true)
bool moveRight (int nb_cols=1, bool wrap=false, bool applyCursor=true)
QString moveToEndOfLine (YViewCursor *viewCursor, bool applyCursor=true)
QString moveToEndOfLine ()
QString moveToFirstNonBlankOfLine (YViewCursor *viewCursor, bool applyCursor=true)
QString moveToFirstNonBlankOfLine ()
QString moveToStartOfLine (YViewCursor *viewCursor, bool applyCursor=true)
QString moveToStartOfLine ()
bool moveUp (YViewCursor *viewCursor, int nb_lines=1, bool applyCursor=true)
bool moveUp (int nb_lines=1, bool applyCursor=true)
YBuffermyBuffer () const
YLineSearchmyLineSearch ()
virtual void printToFile (const QString &path)
void purgeInputBuffer ()
void recalcScreen ()
void recordMacro (const QList< QChar > &regs)
void redo (int count=1)
virtual void refreshScreen ()
virtual void registerModifierKeys (const QString &)
const QList< QChar > registersRecorded () const
void reindent (const QPoint pos)
void removePaintEvent (const YCursor from, const YCursor to)
void saveInputBuffer ()
void sendBufferPaintEvent (int line, int n)
void sendCursor (YViewCursor cursor)
void sendPaintEvent (YSelectionMap map, bool isBufferMap=true)
void sendPaintEvent (int curx, int cury, int curw, int curh)
void sendPaintEvent (const YCursor from, const YCursor to)
void sendRefreshEvent ()
void setPaintAutoCommit (bool enable=true)
void setStickyCol (int col)
void setVisibleArea (int c, int l, bool refresh=true)
void stopRecordMacro ()
QString toString () const
void undo (int count=1)
virtual void unregisterModifierKeys (const QString &)
void updateCursor ()
void updateFileInfo ()
void updateFileName ()
void updateMode ()
void updateStickyCol (YViewCursor *viewCursor)
void updateStickyCol ()
const YViewCursorviewCursor () const
YViewCursorvisualCursor ()
YSelectionMap visualSelection () const
 YView (YBuffer *_b, YSession *sess, int cols, int lines)
virtual ~YView ()

Protected Member Functions

void setupKeys ()
bool stringHasOnlySpaces (const QString &what)

Protected Attributes

YDrawBuffer m_drawBuffer

Private Member Functions

void applyGoto (YViewCursor *viewCursor, bool applyCursor=true)
void gotodx (int x)
void gotody (int y)
void gotox (int x, bool forceGoBehindEOL=false)
void gotoy (int y)
void initGoto (YViewCursor *viewCursor)
void internalScroll (int dx, int dy)
void updateCurLine ()

Private Attributes

bool adjust
 if true, do not check for cursor visibility
int areaModTab
 tablength to wrap
YCursor beginChanges
 the current attribute being used by the GUI
bool drawMode
const int id
YViewCursor keepCursor
QChar lastChar
int lineDY
bool listChar
QChar m_lineFiller
QChar m_lineMarker
bool m_paintAll
int m_paintAutoCommit
YViewCursor mainCursor
int mColumnsVis
QChar mFillChar
YKeySequence mLastPreviousChars
int mLinesVis
YKeySequence mPreviousChars
QList< QChar > mRegs
 which regs to store macros in
YViewCursor mVisualCursor
bool opt_list
MapOption opt_listchars
int opt_schema
YCursor origPos
int rCurLineLength
 current line max width ( tab is 8 spaces )
int rCurrentLeft
int rCurrentTop
bool reverseSearch
const uchar * rHLa
int rHLAttributesLen
bool rHLnoAttribs
bool rightleft
int rMinCurLineLength
 current line min width( tab is 1 space )
YViewCursor scrollCursor
QString sCurLine
 current line
int sCurLineLength
 current line length
int sCurrentLeft
int sCurrentTop
int spaceWidth
int stickyCol
int tablength
 tabstop * spaceWidth
int tabstop
 cached value of tabstop option
YViewCursor workCursor
bool wrap


class YDrawBuffer

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index