AnatomyPage Class Reference

#include <anatomypage.h>

List of all members.

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)


Detailed Description

Class used to represent the information linked to the anatomical groups.
Author:
Lynn Hazan


Constructor & Destructor Documentation

AnatomyPage::AnatomyPage ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructor.

AnatomyPage::~AnatomyPage (  ) 

Destructor.


Member Function Documentation

void AnatomyPage::setAttributes ( const QMap< QString, QMap< int, QString > > &  attributes  ) 

Initializes the attribute table, sitting the values of each attribute for each channel.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following files:
Generated on Sat Sep 15 16:04:45 2007 for ndmanager.kdevelop by  doxygen 1.5.1