class KPartEdApp

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

Definition#include <kparted.h>
InheritsQMainWindow
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Private Members


Detailed Description

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

 KPartEdApp ()

construtor

KPartEdApp ()

destructor

void  initActions ()

initializes all QActions of the application

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 function

void  initStatusBar ()

setup the statusbar

void  initDoc ()

setup the document

void  initView ()

setup the mainview

bool  queryExit ()

overloaded for Message box on last window exit

void  slotFileNew ()

[slot]

generate a new document in the actual view

void  slotFileOpen ()

[slot]

open a document

void  slotFileSave ()

[slot]

save a document

void  slotFileSaveAs ()

[slot]

save a document under a different filename

void  slotFileClose ()

[slot]

close the actual file

void  slotFilePrint ()

[slot]

print the actual file

void  slotFileQuit ()

[slot]

exits the application

void  slotEditCut ()

[slot]

put the marked text/object into the clipboard and remove it from the document

void  slotEditCopy ()

[slot]

put the marked text/object into the clipboard

void  slotEditPaste ()

[slot]

paste the clipboard into the document

void  slotViewToolBar (bool toggle)

[slot]

toggle the toolbar

void  slotViewStatusBar (bool toggle)

[slot]

toggle the statusbar

void  slotHelpAbout ()

[slot]

shows an about dlg

KPartEdView * 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 needs by changing the view class.

KPartEdDoc * doc

[private]

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

QPopupMenu * fileMenu

[private]

file_menu contains all items of the menubar entry "File"

QPopupMenu * editMenu

[private]

edit_menu contains all items of the menubar entry "Edit"

QPopupMenu * viewMenu

[private]

view_menu contains all items of the menubar entry "View"

QPopupMenu * helpMenu

[private]

view_menu contains all items of the menubar entry "Help"

QToolBar * fileToolbar

[private]

the main toolbar

QAction * fileNew

[private]

actions for the application initialized in initActions() and used to en/disable them according to your needs during the program

QAction * fileOpen

[private]

QAction * fileSave

[private]

QAction * fileSaveAs

[private]

QAction * fileClose

[private]

QAction * filePrint

[private]

QAction * fileQuit

[private]

QAction * editCut

[private]

QAction * editCopy

[private]

QAction * editPaste

[private]

QAction * viewToolBar

[private]

QAction * viewStatusBar

[private]

QAction * helpAboutApp

[private]


Generated by: rich@pegasus on Fri Jul 13 17:33:54 2001, using kdoc 2.0a45.