Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Public Member Functions | Private Attributes | List of all members
AtomDCWidget Class Reference

The class AtomDCWidget defines a widget controling the properties of an instance of an AtomDC. More...

#include <AtomDCWidget.h>

Public Slots

void usedInTableClicked (int, int)

Public Member Functions

 AtomDCWidget (AtomDC *, QWidget *parent=0)
 Default construtor.
void updateProperties (AtomDC *)
 change the currently managed AtomDC and update the value of the properties
 ~AtomDCWidget ()

Private Attributes

QLabel * infoLabel
AtomDCmyDC
 the currently selected atom's AtomDC
QTableWidget * usedInTable

Detailed Description

The class AtomDCWidget defines a widget controling the properties of an instance of an AtomDC.

This widget is special as there is only one AtomDCWidget instance for ALL the atoms of a physical model. When the user selects an atom for the first time, the widget is created and displayed. When the user selects another atom, the widget is updated with the property of the selected atom (via method updateProperties(...) ). see PMManagerDC for the control of the instance.

Constructor & Destructor Documentation

AtomDCWidget::AtomDCWidget ( AtomDC adc,
QWidget *  parent = 0 
)

Default construtor.

References infoLabel, usedInTable, and usedInTableClicked().

AtomDCWidget::~AtomDCWidget ( )
inline

Member Function Documentation

void AtomDCWidget::updateProperties ( AtomDC adc)

change the currently managed AtomDC and update the value of the properties

References cellPixmap, AtomDC::getAtom(), infoLabel, myDC, structuralComponentPixmap, and usedInTable.

Referenced by PMManagerDC::getAtomDCWidget().

void AtomDCWidget::usedInTableClicked ( int  row,
int  column 
)
slot

Member Data Documentation

QLabel* AtomDCWidget::infoLabel
private

Referenced by AtomDCWidget(), and updateProperties().

AtomDC* AtomDCWidget::myDC
private

the currently selected atom's AtomDC

Referenced by updateProperties(), and usedInTableClicked().

QTableWidget* AtomDCWidget::usedInTable
private

Referenced by AtomDCWidget(), and updateProperties().


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