KUninstallerApp Class Reference

[KUninstaller Index] [KUninstaller Hierarchy]


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

#include <kuninstaller.h>

Inherits: KTMainWindow

Public Members

Public Slots

Private Members


Detailed Description

This Class is the base class for the 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 KUninstallerView is created which creates the view.


KUninstallerApp()

construtor

~KUninstallerApp()

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 resizeEvent( QResizeEvent *e)

overloaded for change resize

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

print the actual file

void slotFileCloseWindow()

close the current window

void slotFileQuit()

exits the application

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

void slotSearch()

Starts the Searching for appication parts

void slotRemove()

Removes the selected appication parts

void slotNew()

Refreshes the View for new searching

void slotStop()

Stops the Searching

void slotUndo()

Undos the last deleting action if the backup feature is enabled

void slotConfigure()

Configuration of the application

void slotBackup()

Deleting all application backups

QPopupMenu *file_menu

file_menu contains all items of the menubar entry "File"

QPopupMenu *edit_menu

edit_menu contains all items of the menubar entry "Edit"

QPopupMenu *view_menu

view_menu contains all items of the menubar entry "View"

QPopupMenu *help_menu

help_menu contains all items of the menubar entry "Help"

KUninstallerView *view

doc represents your actual document and is created only once. It keeps information such as filename and does the serialization of your files.

bool bViewToolbar

flag if toolbar is visible or not. Used for kconfig and checking the view-menu entry view toolbar. bViewStatusbar does the same for the statusbar.

KMenuBar::menuPosition menu_bar_pos

used for KConfig to store and restore menubar position. Same with tool_bar_pos. If more menubars or toolbars are created, you should add positions as well and implement them in saveOptions() and readOptions().


  • Author: Geri House
  • Documentation generated by geri@komet on Die Okt 26 18:30:10 MEST 1999
Kdoc