libs/main

KoApplication Class Reference

Base class for all KOffice apps. More...

#include <KoApplication.h>

Inheritance diagram for KoApplication:

List of all members.

Signals

void documentClosed (const QString &ref)
void documentOpened (const QString &ref)

Public Member Functions

 KoApplication ()
virtual ~KoApplication ()
virtual bool start ()

Static Public Member Functions

static bool isStarting ()

Detailed Description

Base class for all KOffice apps.

This class handles arguments given on the command line and shows a generic about dialog for all KOffice apps.

In addition it adds the standard directories where KOffice applications can find their images etc.

If the last mainwindow becomes closed, KoApplication automatically calls QApplication::quit.

Definition at line 42 of file KoApplication.h.


Constructor & Destructor Documentation

KoApplication::KoApplication (  ) 

Creates an application object, adds some standard directories and initializes kimgio.

Definition at line 53 of file KoApplication.cpp.

KoApplication::~KoApplication (  )  [virtual]

Destructor.

Definition at line 249 of file KoApplication.cpp.


Member Function Documentation

void KoApplication::documentClosed ( const QString ref  )  [signal]

emitted when an old document is closed.

void KoApplication::documentOpened ( const QString ref  )  [signal]

emitted when a new document is opened.

bool KoApplication::isStarting (  )  [static]
Returns:
true if the application is starting

Definition at line 255 of file KoApplication.cpp.

bool KoApplication::start (  )  [virtual]

Call this to start the application.

Parses command line arguments and creates the initial shells and docs from them (or an empty doc if no cmd-line argument is specified ).

You must call this method directly before calling QApplication::exec.

It is valid behaviour not to call this method at all. In this case you have to process your command line parameters by yourself.

Definition at line 91 of file KoApplication.cpp.


The documentation for this class was generated from the following files: