#include <mdiapplication.h>
Inheritance diagram for MDIApplication:

Public Member Functions | |
| MDIApplication (int &argc, char **argv) | |
| virtual | ~MDIApplication () |
| virtual QWidget * | topLevel () const |
| QList< MDIChildBase * > | childWindows () const |
| MDIChildBase * | activeChildWindow () const |
| virtual bool | childWindowCloseRequest (MDIChildBase *child) |
| virtual void | addChildWindow (MDIChildBase *child) |
| virtual void | removeChildWindow (MDIChildBase *child) |
| virtual void | setActiveChild (MDIChildBase *child) |
| MDIApplication::MDIApplication | ( | int & | argc, | |
| char ** | argv | |||
| ) | [inline] |
| virtual MDIApplication::~MDIApplication | ( | ) | [inline, virtual] |
| virtual QWidget* MDIApplication::topLevel | ( | ) | const [inline, virtual] |
| QList<MDIChildBase*> MDIApplication::childWindows | ( | ) | const [inline] |
| MDIChildBase* MDIApplication::activeChildWindow | ( | ) | const [inline] |
| virtual bool MDIApplication::childWindowCloseRequest | ( | MDIChildBase * | child | ) | [inline, virtual] |
Designed to be called by child windows when they want to be closed.
Warning: This class is in charge of physically closing de-allocating the child.
If you want to close a child window, use its close() method, which will still call this (indirectly), but will also execute any other code that it has added to its close event.
Re-implement this if you need to ask the user something before closing the window (e.g. "Save changes before closing?) or perform some other processing before it's closed. However, you should still call this version once you have finished, in order to perform the housekeeping that it provides.
This implementation calls simply deletes the child.
Returns true if the window was closes, false if the request was denied.
Asserts that the child window is non-null.
Reimplemented in DigestApplication.
| virtual void MDIApplication::addChildWindow | ( | MDIChildBase * | child | ) | [inline, virtual] |
| virtual void MDIApplication::removeChildWindow | ( | MDIChildBase * | child | ) | [inline, virtual] |
| virtual void MDIApplication::setActiveChild | ( | MDIChildBase * | child | ) | [inline, virtual] |
Reimplemented in DigestApplication.
1.5.2