MDIChild< T, managerT > Class Template Reference

#include <mdiapplication.h>

Inheritance diagram for MDIChild< T, managerT >:

MDIChildBase List of all members.

Public Member Functions

 MDIChild (managerT *manager, QWidget *parent=0)
virtual ~MDIChild ()
virtual QWidget * widgetPtr () const
virtual bool event (QEvent *e)

template<class T, class managerT>
class MDIChild< T, managerT >


Constructor & Destructor Documentation

template<class T, class managerT>
MDIChild< T, managerT >::MDIChild ( managerT *  manager,
QWidget *  parent = 0 
) [inline]

The parent should be left as null, as the main reason for this MDI framework is to have managed top-level children. However, it may be set to a container (such as a big grey window, like Windows MDI apps do).

Will automatically add ourself to the MDIApplication

Asserts that the manager is non-null.

template<class T, class managerT>
virtual MDIChild< T, managerT >::~MDIChild (  )  [inline, virtual]

Calls the manager's removeChildWindow() method on us.


Member Function Documentation

template<class T, class managerT>
virtual QWidget* MDIChild< T, managerT >::widgetPtr (  )  const [inline, virtual]

This assumes that this class is a derivative of QWidget.

Implements MDIChildBase.

template<class T, class managerT>
virtual bool MDIChild< T, managerT >::event ( QEvent *  e  )  [inline, virtual]

Catches Close, WindowActivate, WindowDeactivate and WindowStateChange.

On a Close event, this will call childWindowCloseRequest().

Asserts that the event is non-null.


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