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

NYView Class Reference

#include <nyview.h>

Inheritance diagram for NYView:

YView YViewIface

List of all members.


Detailed Description

Implementation of YView for the NCurses frontend.

Definition at line 52 of file nyview.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 QString guiGetCommandLineText (void) const
virtual void guiHighlightingChanged ()
virtual void guiPaintEvent (const YSelection &drawMap)
bool guiPopupFileSaveAs ()
void guiScroll (int dx, int dy)
virtual void guiSelectionChanged ()
virtual void guiSetCommandLineText (const QString &)
virtual void guiSetFocusCommandLine ()
virtual void guiSetFocusMainWindow ()
virtual YStatusBarIfaceguiStatusBar ()
virtual void guiUpdateCursor ()
virtual void guiUpdateFileInfo ()
virtual void guiUpdateFileName ()
virtual void guiUpdateMode ()
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
void map (void)
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 ()
 NYView (YBuffer *b)
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 restoreFocus ()
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)
void unmap (void)
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

Protected Member Functions

virtual void guiDrawCell (QPoint pos, const YDrawCell &cell, void *arg)
virtual void guiDrawClearToEOL (QPoint pos, const QChar &clearChar)
virtual void guiDrawSetLineNumber (int y, int n, int h)
virtual void guiDrawSetMaxLineNumber (int max)
void guiEndPaintEvent ()
virtual void guiNotifyContentChanged (const YSelection &s)
void guiPreparePaintEvent (int, int)
void setupKeys ()
bool stringHasOnlySpaces (const QString &what)

Protected Attributes

bool fakeLine
YDrawBuffer m_drawBuffer

Private Types

enum  e_focusable { w_editor, w_statusbar }

Private Member Functions

void drawCursor ()
void initialiseAttributesMap ()
void updateVis (bool refresh=true)

Private Attributes

QString commandline
WINDOW * editor
int height
NYStatusBar infobar
e_focusable m_focus
int marginLeft
WINDOW * statusbar
bool statusbarHasCommand
int width
WINDOW * window

Static Private Attributes

static int attributesMapInitialised = 0
static QMap< QRgb, unsigned
long int > 
mAttributesMap

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

Generated by  Doxygen 1.6.0   Back to index