OSB_GUI::DlgRfBase Class Reference

Inheritance diagram for OSB_GUI::DlgRfBase:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Base for dialogs to show and edit rating functions.

It provides functionality the edit the members of a rating function.

Definition at line 97 of file dlgrf.h.

Public Member Functions

Protected Member Functions

Private Slots

Private Member Functions


Constructor & Destructor Documentation

OSB_GUI::DlgRfBase::DlgRfBase ( QWidget parent,
const char *  name,
bool  modal = false,
WFlags  fl = 0 
)

Constructor with Qt arguments.


Member Function Documentation

void OSB_GUI::DlgRfBase::display ( const OSB_LIB::RatingFn rf,
const OSB_LIB::ChargeTraits ct,
bool  showOnly 
) [protected]

Set the widgets for a rating function.

Parameters:
rf Rating function display.
ct Charge traits of the rating function.
See showRf() for details.
showOnly Flag if the rating function is only displayed.
Note:
The function is not virtual. Derived classes should re-implement it taking their supported rating function as first argument and call this member is their own implementation.

virtual int OSB_GUI::DlgRfBase::editRf ( OSB_LIB::RatingFn rf,
OSB_LIB::ChargeTraits ct 
) [pure virtual]

Edit a rating function.

Parameters:
rf Rating function to edit and populate.
ct Charge traits of the rating function.
See showRf() for details.
Exceptions:
OSB_LIB::OsbException by derived classes if rf does not have the correct type.
Returns:
The QDialog execution code. rf is populated only if it is QDialog::Accepted.

Implemented in OSB_GUI::DlgRfSc, and OSB_GUI::DlgRfSlot.

virtual const OSB_LIB::RatingFn* OSB_GUI::DlgRfBase::getRf (  )  const [private, pure virtual]

Get the rating function.

This member is called from testRf(). This functionality is available only if the rating function is shown.

Returns:
Reference to the rating function that is currently being shown.
The pointer may be 0 if the rating function currently being edited or is otherwise not available.

Implemented in OSB_GUI::DlgRfSc, and OSB_GUI::DlgRfSlot.

virtual void OSB_GUI::DlgRfBase::languageChange (  )  [protected, virtual]

Process a language change.

Reimplemented in OSB_GUI::DlgRfSc, and OSB_GUI::DlgRfSlot.

virtual int OSB_GUI::DlgRfBase::showRf ( const OSB_LIB::RatingFn rf,
const OSB_LIB::ChargeTraits ct 
) [pure virtual]

Show a rating function.

Parameters:
rf Rating function to show.
ct Charge traits of the rating function.
They should be default constructed if the rating function's charge trait are not defined yet.
Exceptions:
OSB_LIB::OsbException by derived classes if rf does not have the correct type.
Returns:
The QDialog execution code.

Implemented in OSB_GUI::DlgRfSc, and OSB_GUI::DlgRfSlot.

void OSB_GUI::DlgRfBase::testRf (  )  [private, slot]

Test the rating function.

void OSB_GUI::DlgRfBase::updateRf ( OSB_LIB::RatingFn rf,
OSB_LIB::ChargeTraits ct 
) [protected]

Write widgets content to rating function.

Parameters:
rf Rating function to populate.
ct Gets the charge traits of the rating function.


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