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

NYSession Class Reference

#include <nysession.h>

Inheritance diagram for NYSession:

YSession YSessionIface

List of all members.

Detailed Description

Implementation of YSession for the NCurses frontend.

NYSession - Ncurses main class for the whole session

Definition at line 33 of file nysession.h.

Public Slots

void frontendGuiReady ()
bool processInput (int)

Public Member Functions

const YBufferList & buffers () const
YBuffercreateBuffer (const QString &path=QString())
YViewcreateBufferAndView (const QString &path=QString())
YViewcreateView (YBuffer *buffer)
YViewcurrentView ()
void deleteBuffer (YBuffer *b)
void deleteView (YView *v)
QStringList eventCall (const QString &event, YView *view=NULL)
void eventConnect (const QString &event, const QString &function)
bool exitRequest (int errorCode=0)
YBufferfindBuffer (const QString &path)
YViewfindViewByBuffer (const YBuffer *buffer)
 Find a view containing the buffer.
YViewfirstView ()
const YViewList getAllViews () const
YModeCommandgetCommandPool ()
YModeExgetExPool ()
YModeMap getModes () const
YInternalOptionPoolgetOptions ()
QStringList & getRegister (QChar r)
QList< QChar > getRegisters () const
const YTagStackgetTagStack () const
YTagStackgetTagStack ()
YInfogetYzisinfo ()
virtual void guiCreateBuffer (YBuffer *b)
 Inform the frontend of the buffer creation.
virtual void guiPopupMessage (const QString &message)
 Display the specified error/information message.
virtual bool guiPromptYesNo (const QString &title, const QString &message)
 Prompt a Yes/No question for the user.
virtual int guiPromptYesNoCancel (const QString &title, const QString &message)
 Prompt a Yes/No/Cancel question for the user.
virtual bool guiQuit (int errorCode)
 Ask the GUI to quit the app.
virtual void guiRemoveBuffer (YBuffer *b)
 Inform the frontend that the given buffer is being removed.
virtual void guiSetClipboardText (const QString &text, Clipboard::Mode mode)
virtual void guiSetFocusCommandLine ()
virtual void guiSetFocusMainWindow ()
virtual void guiSplitHorizontally (YView *view)
 Splits horizontally the mainwindow area to create a new view on the current buffer.
bool isOneBufferModified () const
YViewlastView ()
YViewnextView ()
void operator delete (void *p)
void * operator new (size_t tSize)
void parseCommandLine (int argc, char *argv[])
const YCursor previousJumpPosition ()
YViewprevView ()
void registerModifier (const QString &mod)
void removeBuffer (YBuffer *b)
virtual YResourceMgrresourceMgr ()
bool saveAll ()
void saveBufferExit ()
void saveJumpPosition (const QPoint cursor)
void saveJumpPosition ()
YzisSchemaManager * schemaManager ()
virtual void scriptSendMultipleKeys (const QString &text)
YSearchsearch ()
virtual CmdState sendKey (YView *view, YKey _key)
virtual CmdState sendMultipleKeys (YView *view, YKeySequence &keys, YKeySequence::const_iterator &parsePos)
void setCurrentView (YView *)
void setRegister (QChar r, const QStringList &value)
void showCmdLineHelp (const QString &progName)
void showCmdLineUnknowOption (const QString &opt)
void showCmdLineVersion ()
QString toString () const
void unregisterModifier (const QString &mod)
virtual QString version ()

Static Public Member Functions

static void createInstance ()
static bool getBooleanOption (const QString &option)
static int getIntegerOption (const QString &option)
static QStringList getListOption (const QString &option)
static QString getStringOption (const QString &option)
static void initDebug (int argc, char **argv)
static YSessionself ()

Protected Member Functions

void endModes ()
virtual YViewguiCreateView (YBuffer *buffer)
 Create new views on an existing buffer.
virtual void guiDeleteView (YView *view)
 Ask the frontend to delete the view.
void init ()
void initLanguage ()
void initModes ()
void initResource ()
void initScript ()
void runLuaScript ()
void sendInitkeys ()

Static Protected Member Functions

static void setInstance (YSession *instance)

Private Member Functions

virtual void guiChangeCurrentView (YView *)
 Switch the current view.
void initialiseKeycodes ()
 NYSession (const NYSession &)
NYSessionoperator= (const NYSession &)

Private Attributes

QString m_initialCommand

Static Private Attributes

static QMap< int, YKey > keycodes

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

Generated by  Doxygen 1.6.0   Back to index