MDIApplication Class Reference

#include <mdiapplication.h>

Inheritance diagram for MDIApplication:

DigestApplication List of all members.

Public Member Functions

 MDIApplication (int &argc, char **argv)
virtual ~MDIApplication ()
virtual QWidget * topLevel () const
QList< MDIChildBase * > childWindows () const
MDIChildBaseactiveChildWindow () const
virtual bool childWindowCloseRequest (MDIChildBase *child)
virtual void addChildWindow (MDIChildBase *child)
virtual void removeChildWindow (MDIChildBase *child)
virtual void setActiveChild (MDIChildBase *child)

Constructor & Destructor Documentation

MDIApplication::MDIApplication ( int &  argc,
char **  argv 
) [inline]

virtual MDIApplication::~MDIApplication (  )  [inline, virtual]


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated on Mon Jul 30 09:46:52 2007 for Digest by  doxygen 1.5.2