#include <unitlistpage.h>
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) |
| UnitListPage::UnitListPage | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
Constructor.
| UnitListPage::~UnitListPage | ( | ) |
Destructor.
| void UnitListPage::setUnits | ( | const QMap< int, QValueList< QString > > & | units | ) |
Initializes the unit table.
| units | map containing the info for each unit. |
| void UnitListPage::getUnits | ( | QMap< int, QValueList< QString > > & | units | ) | const |
Returns the composition of the unit table.
| units | map containing the info for each unit. |
| void UnitListPage::setNbUnits | ( | int | nbUnits | ) | [inline] |
Initializes the number of units classified.
| 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.
| 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.
1.5.1