SubWindowFactory Class Reference

QMdiArea with ROSE sub-widgets. More...

#include <SubWindowFactory.h>

List of all members.

Public Member Functions

 SubWindowFactory (QWidget *parent=NULL)
virtual ~SubWindowFactory ()
void registerSubWindow (WidgetCreatorInterface *winInterface)
QList< QAction * > getActions () const

Private Slots

void addSubWindowAction ()
void linkAction ()

Private Member Functions

bool eventFilter (QObject *object, QEvent *event)
void rebuildSystemMenus ()

Private Attributes

QList< WidgetCreatorInterface * > interfaces
QMap< QMdiSubWindow *, QWidget * > openWidgets
QMap< QPair< QWidget *, QWidget * >,
bool > 
linked


Detailed Description

QMdiArea with ROSE sub-widgets.

This class implements a QMdiArea which can create ROSE widgets, and link them together. The use can link widgets together by using a custom widgets-menu which is located in the top left corner of a subwidget The link mechanism relies on the fact that the subwidgets, i.e. widget which are created by the WidgetCreatorInterface have the following signals and slots:

Definition at line 26 of file SubWindowFactory.h.


Constructor & Destructor Documentation

SubWindowFactory::SubWindowFactory ( QWidget *  parent = NULL  )  [inline]

Definition at line 32 of file SubWindowFactory.h.

SubWindowFactory::~SubWindowFactory (  )  [virtual]

Definition at line 20 of file SubWindowFactory.cpp.


Member Function Documentation

void SubWindowFactory::addSubWindowAction (  )  [private, slot]

Definition at line 47 of file SubWindowFactory.cpp.

Referenced by registerSubWindow().

bool SubWindowFactory::eventFilter ( QObject *  object,
QEvent *  event 
) [private]

Definition at line 106 of file SubWindowFactory.cpp.

Here is the call graph for this function:

QList< QAction * > SubWindowFactory::getActions (  )  const

Definition at line 35 of file SubWindowFactory.cpp.

Here is the call graph for this function:

void SubWindowFactory::linkAction (  )  [private, slot]

Definition at line 78 of file SubWindowFactory.cpp.

Referenced by rebuildSystemMenus().

void SubWindowFactory::rebuildSystemMenus (  )  [private]

Definition at line 136 of file SubWindowFactory.cpp.

Referenced by addSubWindowAction(), and eventFilter().

Here is the caller graph for this function:

void SubWindowFactory::registerSubWindow ( WidgetCreatorInterface winInterface  ) 

Definition at line 25 of file SubWindowFactory.cpp.

Here is the call graph for this function:


Member Data Documentation

QList<WidgetCreatorInterface *> SubWindowFactory::interfaces [private]

Definition at line 51 of file SubWindowFactory.h.

Referenced by addSubWindowAction(), getActions(), registerSubWindow(), and ~SubWindowFactory().

QMap<QPair<QWidget *, QWidget *>, bool> SubWindowFactory::linked [private]

Definition at line 54 of file SubWindowFactory.h.

Referenced by eventFilter(), linkAction(), and rebuildSystemMenus().

QMap<QMdiSubWindow *, QWidget *> SubWindowFactory::openWidgets [private]

Definition at line 53 of file SubWindowFactory.h.

Referenced by addSubWindowAction(), eventFilter(), and rebuildSystemMenus().


The documentation for this class was generated from the following files:
Generated on Tue Sep 15 14:48:50 2009 for RoseQtWidgets by  doxygen 1.4.7