OSB_GUI::ToMenu Class Reference

Inheritance diagram for OSB_GUI::ToMenu:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Menu to maintain tariff objects.

Definition at line 55 of file tomenu.h.

Public Types

Signals

Public Member Functions

Private Slots

Private Member Functions


Member Enumeration Documentation

enum OSB_GUI::ToMenu::Command

Enumerator:
cmdShow  Show the tariff object.
cmdEdit  Edit the tarif object.
cmdStatus  Change status of the tariff object.
cmdDelete  Delete the tariff object.
cmdNewObject  Create new tariff object.
cmdNewVersion  Create new version of tariff objects.
cmdCopyVersion  Copy the tariff object.
cmdGoto  Goto to tariff object with id.
cmdUser  First user defined command.

Definition at line 58 of file tomenu.h.


Constructor & Destructor Documentation

OSB_GUI::ToMenu::ToMenu ( QWidget parent,
const char *  name = "toMenu_" 
) [explicit]

Constructor with Qt arguments.

OSB_GUI::ToMenu::ToMenu ( const ToMenu  )  [private]

Prevent copying: not implemented.


Member Function Documentation

void OSB_GUI::ToMenu::activationEvent ( int  id  )  [private, slot]

Handle signals activated() from the base class.

Emit sigCommand(), see there for details.

void OSB_GUI::ToMenu::addCmd ( Command  cmd,
bool  enable = true 
)

Add a predefined command.

Parameters:
cmd Command to add.
enable Flag to enable or disable the command.

void OSB_GUI::ToMenu::addUserCmd ( int  cmd,
const std::string &  text,
bool  enable = true,
const QKeySequence &  accel = QKeySequence() 
)

Add a user defined command.

Parameters:
cmd Command to add, it should be cmdUser plus an integer constant.
text Menu text.
enable Flag to enable or disable the command.
accel keyboard accelerator for the command.

void OSB_GUI::ToMenu::clearCommands ( bool  disable = false  ) 

Remove all menu items.

Parameters:
disable Flag to disable the menu.

void OSB_GUI::ToMenu::languageChange (  ) 

Process a language change.

ToMenu& OSB_GUI::ToMenu::operator= ( const ToMenu  )  [private]

Prevent assignment: not implemented.

void OSB_GUI::ToMenu::sigCommand ( ToMenuCmd  cmd  )  [signal]

Command activated, i.e. selected by the user.

This signal is set emitted on activated() from the base class. It is not sent if the command is not enabled.

Parameters:
cmd The selected command.


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