WidgetCreatorInterface Class Reference

Interface for WidgetCreators. More...

#include <WidgetCreatorInterface.h>

Inheritance diagram for WidgetCreatorInterface:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WidgetCreatorInterface (const QIcon &icon, const QString &text)
virtual void loadState ()
virtual void saveState ()
QString getName () const
QIcon getIcon () const
QAction * createAction () const
QWidget * addWidget (QWidget *parent=NULL)

Protected Member Functions

virtual QWidget * createWidget (QWidget *parent=NULL)=0

Protected Attributes

QAction * create_action
size_t counter

Detailed Description

Interface for WidgetCreators.

used by SubWindowFactory to create a widget to create a widget the pure virtual function createWidget() has to be reimplemented additionally a name and icon have to be specified for each widget

Definition at line 17 of file WidgetCreatorInterface.h.


Constructor & Destructor Documentation

WidgetCreatorInterface::WidgetCreatorInterface ( const QIcon &  icon,
const QString &  text 
) [inline]

Definition at line 21 of file WidgetCreatorInterface.h.


Member Function Documentation

QWidget * WidgetCreatorInterface::addWidget ( QWidget *  parent = NULL  ) 

Definition at line 8 of file WidgetCreatorInterface.cpp.

Referenced by SubWindowFactory::addSubWindowAction().

Here is the call graph for this function:

QAction* WidgetCreatorInterface::createAction (  )  const [inline]

Definition at line 36 of file WidgetCreatorInterface.h.

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

Here is the caller graph for this function:

virtual QWidget* WidgetCreatorInterface::createWidget ( QWidget *  parent = NULL  )  [protected, pure virtual]

Implemented in AsmInstructionBarCreator, AsmViewCreator, AstBrowserWidgetCreator, AstGraphWidgetCreator, BeautifiedAstCreator, CallGraphWidgetCreator, MetricsKiviatCreator, NodeInfoWidgetCreator, QRQueryBoxCreator, QRSourceBoxCreator, QRTreeBoxCreator, RoseCodeEditCreator, RoseFileSelectorCreator, and SrcBinViewCreator.

Referenced by addWidget().

Here is the caller graph for this function:

QIcon WidgetCreatorInterface::getIcon (  )  const [inline]

Definition at line 33 of file WidgetCreatorInterface.h.

Referenced by SrcBinViewCreator::createWidget(), RoseFileSelectorCreator::createWidget(), RoseCodeEditCreator::createWidget(), QRTreeBoxCreator::createWidget(), QRSourceBoxCreator::createWidget(), QRQueryBoxCreator::createWidget(), NodeInfoWidgetCreator::createWidget(), MetricsKiviatCreator::createWidget(), CallGraphWidgetCreator::createWidget(), BeautifiedAstCreator::createWidget(), AstGraphWidgetCreator::createWidget(), AstBrowserWidgetCreator::createWidget(), AsmViewCreator::createWidget(), and AsmInstructionBarCreator::createWidget().

Here is the caller graph for this function:

QString WidgetCreatorInterface::getName (  )  const [inline]

Definition at line 31 of file WidgetCreatorInterface.h.

Referenced by SrcBinViewCreator::createWidget(), RoseFileSelectorCreator::createWidget(), RoseCodeEditCreator::createWidget(), QRTreeBoxCreator::createWidget(), QRSourceBoxCreator::createWidget(), QRQueryBoxCreator::createWidget(), NodeInfoWidgetCreator::createWidget(), MetricsKiviatCreator::createWidget(), CallGraphWidgetCreator::createWidget(), BeautifiedAstCreator::createWidget(), AstGraphWidgetCreator::createWidget(), AstBrowserWidgetCreator::createWidget(), AsmViewCreator::createWidget(), and AsmInstructionBarCreator::createWidget().

Here is the caller graph for this function:

virtual void WidgetCreatorInterface::loadState (  )  [inline, virtual]

Definition at line 26 of file WidgetCreatorInterface.h.

virtual void WidgetCreatorInterface::saveState (  )  [inline, virtual]

Definition at line 28 of file WidgetCreatorInterface.h.


Member Data Documentation

size_t WidgetCreatorInterface::counter [protected]

Definition at line 47 of file WidgetCreatorInterface.h.

Referenced by addWidget(), SrcBinViewCreator::createWidget(), RoseFileSelectorCreator::createWidget(), RoseCodeEditCreator::createWidget(), QRTreeBoxCreator::createWidget(), QRSourceBoxCreator::createWidget(), QRQueryBoxCreator::createWidget(), NodeInfoWidgetCreator::createWidget(), MetricsKiviatCreator::createWidget(), CallGraphWidgetCreator::createWidget(), BeautifiedAstCreator::createWidget(), AstGraphWidgetCreator::createWidget(), AstBrowserWidgetCreator::createWidget(), AsmViewCreator::createWidget(), and AsmInstructionBarCreator::createWidget().

QAction* WidgetCreatorInterface::create_action [protected]

Definition at line 45 of file WidgetCreatorInterface.h.

Referenced by createAction(), getIcon(), and getName().


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