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

QYSession Class Reference

#include <qysession.h>

Inheritance diagram for QYSession:

YSession YSessionIface

List of all members.


Detailed Description

Application Shell.

This is the application "Shell". It has a menubar, toolbar, and statusbar but relies on the "Part" to do all the real work.

Author:
Yzis Team <yzis-dev@yzis.org>

Definition at line 44 of file qysession.h.


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 ()
void frontendGuiReady ()
const YViewList getAllViews () const
YModeCommandgetCommandPool ()
YModeExgetExPool ()
YModeMap getModes () const
YInternalOptionPoolgetOptions ()
QStringList & getRegister (QChar r)
QList< QChar > getRegisters () const
const YTagStackgetTagStack () const
YTagStackgetTagStack ()
YInfogetYzisinfo ()
void guiChangeCurrentView (YView *)
 Switch the current view.
virtual void guiCreateBuffer (YBuffer *b)
 Inform the frontend of the buffer creation.
YViewguiCreateView (YBuffer *buffer)
 Create new views on an existing buffer.
void guiDeleteView (YView *view)
 Ask the frontend to delete the view.
void guiPopupMessage (const QString &message)
 Display the specified error/information message.
bool guiPromptYesNo (const QString &title, const QString &message)
 Prompt a Yes/No question for the user.
int guiPromptYesNoCancel (const QString &title, const QString &message)
 Prompt a Yes/No/Cancel question for the user.
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)
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 ()
 QYSession (QWidget *w=0)
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 ()
void viewFilenameChanged (QYView *view, const QString &filename)
virtual ~QYSession ()

Static Public Member Functions

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 applyConfig ()
void closeView ()
void endModes ()
void init ()
void initLanguage ()
void initModes ()
void initResource ()
void initScript ()
void openURL (const QString &)
void runLuaScript ()
void sendInitkeys ()
void setupActions ()

Static Protected Member Functions

static void setInstance (YSession *instance)

Protected Attributes

QTabWidget * mTabWidget

Private Slots

void slotAbout ()
void slotFileNew ()
void slotFileOpen ()
void slotFileQuit ()
void slotFrontendGuiReady ()
void slotPreferences ()

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

Generated by  Doxygen 1.6.0   Back to index