KvirusApp Class Reference

[Kvirus Index] [Kvirus Heirarchy]


This Class is the base class for your application More...

#include <kvirus.h>

Inherits: KTMainWindow

Public Members

Public Slots


Detailed Description

This Class is the base class for your application. It sets up the main window and reads the config file as well as providing a menubar, toolbar and statusbar. For the main view, an instance of class KvirusView is created which creates your view.


KvirusApp()

construtor

~KvirusApp()

destructor

void initMenuBar()

initMenuBar creates the menu_bar and inserts the menuitems

void initToolBar()

this creates the toolbars. Change the toobar look and add new toolbars in this

void initStatusBar()

setup the statusbar

void initView()

setup the mainview

void saveOptions()

save the app-specific options on slotAppExit or by an Options dialog

void readOptions()

read the app-specific options on init() or by an Options dialog

void enableCommand(int id_)

enable menuentries/toolbar items

void disableCommand(int id_)

disable menuentries/toolbar items

bool queryExit()

overloaded for Message box on last window exit

void commandCallback(int id_)

switch argument for slot selection by menu or toolbar ID

void statusCallback(int id_)

switch argument for Statusbar help entries on slot selection

void slotFileNewWindow()

open a new application window

void slotFileNew()

generate a new document in the actual view

void slotFileOpen()

open a document

void slotFileSave()

save a document

void slotFileSaveAs()

save a document under a different filename

void slotFileClose()

close the actual file

void slotFilePrint()

print the actual file

void slotFileCloseWindow()

close the current window

void slotFileQuit()

exits the application

void slotEditCut()

put the marked text/object into the clipboard and remove

void slotEditCopy()

put the marked text/object into the clipboard

void slotEditPaste()

paste the clipboard into the document

void slotViewToolBar()

toggle the toolbar

void slotViewStatusBar()

toggle the statusbar

void slotStatusMsg(const char *text)

change the status message to text

void slotStatusHelpMsg(const char *text)

change the status message of the whole statusbar temporary


Documentation generated by sskang@yeesoo on Sat Jun 12 00:50:24 PDT 1999
Kdoc