KFLogApp Class Reference

[Kflog Index] [Kflog Hierarchy] [Headers]


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

#include <kflog.h>

Inherits: KTMainWindow (kdeui)

Public Members

Public Slots

Private Members


Detailed Description

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


KFLogApp() [public]

construtor

~KFLogApp() [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 initView() [public]

setup the view of the map

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 createMapObjectList() [public]

creates the MapObjectList

QList<MapObject>* getMapObjectList() [public]

returns the list of map-objects. We can not only return a pointer,

void slotShowMap() [public slot]

show the map

void slotShowDig() [public slot]

show creating

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 slotFileOpen() [public slot]

open a document

void slotFilePrint() [public slot]

print the actual file

void slotFileQuit() [public slot]

exits the application

void slotViewToolBar() [public slot]

toggle the 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

QPopupMenu* fileMenu[private]

fileMenu contains all items of the menubar entry "File"

QPopupMenu* viewMenu[private]

viewMenu contains all items of the menubar entry "View"

QPopupMenu* mapMenu[private]

mapMenu contains all items of the menubar entry "Map"

QPopupMenu* helpMenu[private]

helpMenu contains all items of the menubar entry "Help"

KFLogView *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

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 Mon Jul 26 18:16:35 CEST 1999
Kdoc