KDDDLLApp Class Reference

[KDDDLL Index] [KDDDLL Heirarchy]


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

#include <kdddll.h>

Inherits: KTMainWindow

Public Members

Public Slots

Protected Members

Protected 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 KMyappView is created which creates your view.


KDDDLLApp()

construtor

~KDDDLLApp()

destructor

void enableCommand(int id_)

enable menuentries/toolbar items

void disableCommand(int id_)

disable menuentries/toolbar items

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 initMenuBar()

initMenuBar creates the menu_bar and inserts the menuitems

void initToolBars()

this creates the toolbars. Change the toobar look and add more in this function

void initStatusBar()

setup the statusbar

void initView()

setup the mainview

virtual void resizeEvent(QResizeEvent *evt)

resizeEvent for the main view

void addRecent(const char *filename)

add filename to the recentList

void dlgModified()

method asks the modified flag and creates a modified dialog for saving

bool queryExit()

overloaded for Message box on last window exit

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 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 slotAppExit()

exits the application

void slotViewToolBar_0()

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 dboffice@home on Tue Mar 2 19:33:13 CET 1999
Kdoc