UnitListPage Class Reference

#include <unitlistpage.h>

List of all members.

Public Slots

void addUnit ()
void removeUnit ()
void currentChanged ()
void unitChanged (int row, int column)
void propertyModified ()
void resetModificationStatus ()

Public Member Functions

 UnitListPage (QWidget *parent=0, const char *name=0)
 ~UnitListPage ()
void setUnits (const QMap< int, QValueList< QString > > &units)
void getUnits (QMap< int, QValueList< QString > > &units) const
void setNbUnits (int nbUnits)
bool isModified () const

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)


Detailed Description

Class used to represent the information linked to the list of units.
Author:
Michael Zugaro


Constructor & Destructor Documentation

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

Constructor.

UnitListPage::~UnitListPage (  ) 

Destructor.


Member Function Documentation

void UnitListPage::setUnits ( const QMap< int, QValueList< QString > > &  units  ) 

Initializes the unit table.

Parameters:
units map containing the info for each unit.

void UnitListPage::getUnits ( QMap< int, QValueList< QString > > &  units  )  const

Returns the composition of the unit table.

Parameters:
units map containing the info for each unit.

void UnitListPage::setNbUnits ( int  nbUnits  )  [inline]

Initializes the number of units classified.

Parameters:
nbUnits number of units.

bool UnitListPage::isModified (  )  const [inline]

True if at least one property has been modified, false otherwise.

bool UnitListPage::eventFilter ( QObject *  object,
QEvent *  event 
) [protected]

Event filter to validate the entries in the unit table.

Parameters:
object target object for the event.
event event sent.

void UnitListPage::addUnit (  )  [inline, slot]

Adds a new line to the unit table.

void UnitListPage::removeUnit (  )  [slot]

Removes the selected lines from the unit table.

void UnitListPage::currentChanged (  )  [inline, slot]

selection moved to a different entry in the unit table.

void UnitListPage::unitChanged ( int  row,
int  column 
) [inline, slot]

Validates an entry in the unit table.

void UnitListPage::propertyModified (  )  [inline, slot]

Will be called when any properties is modified.

void UnitListPage::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:46 2007 for ndmanager.kdevelop by  doxygen 1.5.1