OSB_GUI::ToItem Class Reference

Inheritance diagram for OSB_GUI::ToItem:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::ToItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract base for all tariff object items.

Definition at line 228 of file tolists.h.

Public Member Functions

Protected Member Functions


Constructor & Destructor Documentation

OSB_GUI::ToItem::ToItem ( QListViewItem parent  )  [explicit]

Constructor with parent.


Member Function Documentation

virtual bool OSB_GUI::ToItem::commandEvent ( ToMenuCmd  cmd  )  [virtual]

Execute command from tariff object menu.

Parameters:
cmd Command to execute.
Returns:
true if the command can be executed, else false.
The default implementation handles the following commands:

Implements OSB_GUI::ToListItem.

Reimplemented in OSB_GUI::TcsItem, OSB_GUI::ToGroupItem, OSB_GUI::ToCfgItem, and OSB_GUI::TsItem.

virtual int OSB_GUI::ToItem::compare ( QListViewItem i,
int  col,
bool  asc 
) const [virtual]

Compare with other listview items.

Compares by objId() if the other item (i) is also a ToItem, otherwise calls QListViewItem::compare().

Reimplemented in OSB_GUI::ToGroupItem, and OSB_GUI::ToCfgItem.

virtual void OSB_GUI::ToItem::delObject (  )  [pure virtual]

Delete the tariff object.

Implemented in OSB_GUI::TzItem, OSB_GUI::RsItem, OSB_GUI::ScItem, OSB_GUI::ScsItem, OSB_GUI::TcItem, OSB_GUI::TcsItem, OSB_GUI::TfItem, OSB_GUI::RfItem, OSB_GUI::DcItem, OSB_GUI::TpItem, OSB_GUI::TpsItem, and OSB_GUI::TsItem.

virtual void OSB_GUI::ToItem::editObject (  )  [pure virtual]

Edit the tariff object.

Implemented in OSB_GUI::TzItem, OSB_GUI::RsItem, OSB_GUI::ScItem, OSB_GUI::ScsItem, OSB_GUI::TcItem, OSB_GUI::TcsItem, OSB_GUI::TfItem, OSB_GUI::RfItem, OSB_GUI::DcItem, OSB_GUI::TpItem, OSB_GUI::TpsItem, and OSB_GUI::TsItem.

virtual long OSB_GUI::ToItem::objId (  )  const [protected, pure virtual]

Return the id of the tariff object as long.

Implemented in OSB_GUI::TzItem, OSB_GUI::RsItem, OSB_GUI::ScItem, OSB_GUI::ScsItem, OSB_GUI::TcItem, OSB_GUI::TcsItem, OSB_GUI::TfItem, OSB_GUI::RfItem, OSB_GUI::DcItem, OSB_GUI::TpItem, OSB_GUI::TpsItem, and OSB_GUI::TsItem.

void OSB_GUI::ToItem::set ( const std::string &  name  )  [protected]

Set the name of the tariff object.

virtual bool OSB_GUI::ToItem::setupMenu ( ToMenu toMenu  )  [virtual]

Configure the tariff object menu.

Parameters:
toMenu Tariff object menu to configure.
Removes all entries from toMenu and adds to following commands:

Implements OSB_GUI::ToListItem.

Reimplemented in OSB_GUI::TcsItem, OSB_GUI::ToGroupItem, OSB_GUI::ToCfgItem, and OSB_GUI::TsItem.

virtual void OSB_GUI::ToItem::showObject (  )  const [pure virtual]

Show the tariff object.

Implemented in OSB_GUI::TzItem, OSB_GUI::RsItem, OSB_GUI::ScItem, OSB_GUI::ScsItem, OSB_GUI::TcItem, OSB_GUI::TcsItem, OSB_GUI::TfItem, OSB_GUI::RfItem, OSB_GUI::DcItem, OSB_GUI::TpItem, OSB_GUI::TpsItem, and OSB_GUI::TsItem.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:21:55 2006 for OSB Library by  doxygen 1.4.7