#include <anatomypage.h>
Public Slots | |
| void | addGroup () |
| void | removeGroup () |
| void | slotValidate () |
| void | groupChanged (int row, int column) |
| void | attributeChanged (int row, int column) |
| void | propertyModified () |
| void | resetModificationStatus () |
Public Member Functions | |
| AnatomyPage (QWidget *parent=0, const char *name=0) | |
| ~AnatomyPage () | |
| void | setAttributes (const QMap< QString, QMap< int, QString > > &attributes) |
| void | getAttributes (QMap< QString, QMap< int, QString > > &attributesMap) const |
| void | setGroups (const QMap< int, QValueList< int > > &groups) |
| void | getGroups (QMap< int, QValueList< int > > &groups) const |
| void | setNbChannels (int nbChannels) |
| bool | isModified () const |
Protected Member Functions | |
| bool | eventFilter (QObject *object, QEvent *event) |
| AnatomyPage::AnatomyPage | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
Constructor.
| AnatomyPage::~AnatomyPage | ( | ) |
Destructor.
| void AnatomyPage::setAttributes | ( | const QMap< QString, QMap< int, QString > > & | attributes | ) |
Initializes the attribute table, sitting the values of each attribute for each channel.
| attributes | reference to the map given the correspondance between the attribute names and a map given for each channel the value of the attribute. |
| void AnatomyPage::getAttributes | ( | QMap< QString, QMap< int, QString > > & | attributesMap | ) | const |
Returns a map given the values of each attribute for each channel.
| attributesMap | map given the correspondance between the attribute names and a map given for each channel the value of the attribute. |
| void AnatomyPage::setGroups | ( | const QMap< int, QValueList< int > > & | groups | ) |
Initializes the group table.
| groups | map containing the list of channels for each group except the trash group. |
| void AnatomyPage::getGroups | ( | QMap< int, QValueList< int > > & | groups | ) | const |
Returns the composition of the anatomical groups.
| groups | map containing the list of channels for each group except trash group. |
| void AnatomyPage::setNbChannels | ( | int | nbChannels | ) | [inline] |
Initializes the number of channels used.
| nbChannels | number of channels. |
| bool AnatomyPage::isModified | ( | ) | const [inline] |
True if at least one property has been modified, false otherwise.
| bool AnatomyPage::eventFilter | ( | QObject * | object, | |
| QEvent * | event | |||
| ) | [protected] |
Event filter to validate the entries in the group table.
| object | target object for the event. | |
| event | event sent. |
| void AnatomyPage::addGroup | ( | ) | [inline, slot] |
Adds a new line to the group table.
| void AnatomyPage::removeGroup | ( | ) | [slot] |
Removes the selected lines from the group table.
| void AnatomyPage::slotValidate | ( | ) | [inline, slot] |
Validates the current entry in the group table.
| void AnatomyPage::groupChanged | ( | int | row, | |
| int | column | |||
| ) | [inline, slot] |
Validates the current entry in the group table.
| void AnatomyPage::attributeChanged | ( | int | row, | |
| int | column | |||
| ) | [inline, slot] |
Validates the current entry in the attribute table.
| void AnatomyPage::propertyModified | ( | ) | [inline, slot] |
Will be called when any properties is modified.
| void AnatomyPage::resetModificationStatus | ( | ) | [inline, slot] |
Resets the internal modification status to false.
1.5.1