KLoggerApp Class Reference

[KLogger Index] [KLogger Hierarchy] [Headers]


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

#include <klogger.h>

Inherits: KTMainWindow (kdeui)

Public Members

Public Slots

Private Members


Detailed Description

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


KLoggerApp() [public]

construtor

~KLoggerApp() [public]

destructor

void initMenuBar() [public]

initMenuBar creates the menu_bar and inserts the menuitems

void initToolBar() [public]

creates the toolbars.

void initStatusBar() [public]

setup the statusbar

void initMapView() [public]

setup the view of the map

void initDBView() [public]

setup the view of the db-access

void saveOptions() [public]

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

void readOptions() [public]

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

void enableCommand(int id_) [public]

enable menuentries/toolbar items

void disableCommand(int id_) [public]

disable menuentries/toolbar items

bool queryExit() [public]

overloaded for Message box on last window exit

void showCoords(QPoint coord) [public]

display the coordinates in the statusbar

void commandCallback(int id_) [public slot]

switch argument for slot selection by menu or toolbar ID

void statusCallback(int id_) [public slot]

switch argument for Statusbar help entries on slot selection

void slotFileNewWindow() [public slot]

open a new application window

void slotFileNew() [public slot]

generate a new document in the actual view

void slotFileOpen() [public slot]

open a document

void slotFileSave() [public slot]

save a document

void slotFileSaveAs() [public slot]

save a document under a different filename

void slotFileClose() [public slot]

close the actual file

void slotFilePrint() [public slot]

print the actual file

void slotFileCloseWindow() [public slot]

close the current window

void slotFileQuit() [public slot]

exits the application

void slotEditCut() [public slot]

put the marked text/object into the clipboard and remove

void slotEditCopy() [public slot]

put the marked text/object into the clipboard

void slotEditPaste() [public slot]

paste the clipboard into the document

void slotViewToolBar() [public slot]

toggle the toolbar

void slotViewToolBar1() [public slot]

toggle the private toolbar

void slotViewStatusBar() [public slot]

toggle the statusbar

void slotStatusMsg(const char *text) [public slot]

change the status message to text

void slotStatusHelpMsg(const char *text) [public slot]

change the status message of the whole statusbar temporary

void slotStatusHelpMsga() [public slot]

change the status message of the whole statusbar temporary

QPopupMenu *file_menu[private]

file_menu contains all items of the menubar entry "File"

QPopupMenu *edit_menu[private]

edit_menu contains all items of the menubar entry "Edit"

QPopupMenu *view_menu[private]

view_menu contains all items of the menubar entry "View"

QPopupMenu *logger_menu[private]

logger_menu contains all items of the menubar entry "???"

QPopupMenu *help_menu[private]

help_menu contains all items of the menubar entry "Help"

KLoggerView *view[private]

view is the main widget which represents your working area. The View class should handle all events of the view widget. It is kept empty so you can create your view according to your application's

KLoggerDoc *doc[private]

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

bool bViewToolbar[private]

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[private]

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: Heiner Lamprecht
  • Documentation generated by heiner@Tharbad on Fri Jun 25 22:35:51 CEST 1999
Kdoc