SimCenterCommon
Common functionality used within different SimCenter projects
SimCenterComponentSelection Class Reference

#include <SimCenterComponentSelection.h>

Inheritance diagram for SimCenterComponentSelection:
Collaboration diagram for SimCenterComponentSelection:

Public Slots

void selectionChangedSlot (const QItemSelection &, const QItemSelection &)
 displayComponent method to display a component More...
 

Public Member Functions

 SimCenterComponentSelection (QWidget *parent=0)
 
virtual ~SimCenterComponentSelection ()
 
virtual bool addComponent (QString text, QWidget *theWidget)
 addComponent method to add component to selection options. More...
 
virtual QWidget * swapComponent (QString text, QWidget *theWidget)
 swapComponent method to add component to selection options. More...
 
virtual bool displayComponent (QString text)
 swapComponent method to add component to selection options. More...
 

Detailed Description

Definition at line 64 of file SimCenterComponentSelection.h.

Constructor & Destructor Documentation

SimCenterComponentSelection::SimCenterComponentSelection ( QWidget *  parent = 0)
explicit

Definition at line 50 of file SimCenterComponentSelection.cpp.

SimCenterComponentSelection::~SimCenterComponentSelection ( )
virtual

Definition at line 101 of file SimCenterComponentSelection.cpp.

Member Function Documentation

bool SimCenterComponentSelection::addComponent ( QString  text,
QWidget *  theWidget 
)
virtual

addComponent method to add component to selection options.

Parameters
QStringtext to appear in selection
SimCenterAppWidget* the SimCenterAppWidget to appear when selection made
Returns
bool true or false indicating success or failure to add

Definition at line 111 of file SimCenterComponentSelection.cpp.

bool SimCenterComponentSelection::displayComponent ( QString  text)
virtual

swapComponent method to add component to selection options.

Parameters
QStringtext associated with widget to be swapped
SimCenterAppWidget* the SimCenterAppWidget to appear when selection made
Returns
QWidget * - old widget or NULL if not found

Definition at line 177 of file SimCenterComponentSelection.cpp.

void SimCenterComponentSelection::selectionChangedSlot ( const QItemSelection &  ,
const QItemSelection &   
)
slot

displayComponent method to display a component

Parameters
QStringtext associated with widget to be displayed
Returns
bool true or false indicating success or failure to add selectionChangedSlot slot invoked when slection is changed.
Parameters
QItemSelectionnew item selected

Definition at line 128 of file SimCenterComponentSelection.cpp.

QWidget * SimCenterComponentSelection::swapComponent ( QString  text,
QWidget *  theWidget 
)
virtual

swapComponent method to add component to selection options.

Parameters
QStringtext associated with widget to be swapped
SimCenterAppWidget* the SimCenterAppWidget to appear when selection made
Returns
QWidget * - old widget or NULL if not found

Definition at line 153 of file SimCenterComponentSelection.cpp.


The documentation for this class was generated from the following files: