OpenASIP
2.0
|
#include <DropDownMenu.hh>
Public Types | |
enum | MenuType { MENU_PATH, MENU_MODULE, MENU_OPERATION } |
Public Member Functions | |
DropDownMenu (MenuType type) | |
virtual | ~DropDownMenu () |
Private Member Functions | |
DropDownMenu (const DropDownMenu &) | |
Copying not allowed. More... | |
DropDownMenu & | operator= (const DropDownMenu &) |
Assignment not allowed. More... | |
void | onMenuEvent (wxCommandEvent &event) |
void | updateMenu () |
Class that models drop down menu.
Drop down menu is shown, when user clicks right mouse button over tree item or list item in main window.
Definition at line 44 of file DropDownMenu.hh.
Type of the drop down menu.
Enumerator | |
---|---|
MENU_PATH | Path menu. |
MENU_MODULE | Module menu. |
MENU_OPERATION | Operation menu. |
Definition at line 50 of file DropDownMenu.hh.
|
explicit |
Constructor.
param type The type of the drop down menu.
Definition at line 54 of file DropDownMenu.cc.
References OSEdConstants::CMD_ADD_MODULE, OSEdConstants::CMD_ADD_OPERATION, OSEdConstants::CMD_BUILD, OSEdConstants::CMD_MODIFY_BEHAVIOR, OSEdConstants::CMD_PROPERTIES, OSEdConstants::CMD_REMOVE_MODULE, OSEdConstants::CMD_REMOVE_OPERATION, OSEdConstants::CMD_SIMULATE, OSEdTextGenerator::instance(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdTextGenerator::TXT_MENU_ADD_MODULE, OSEdTextGenerator::TXT_MENU_ADD_OPERATION, OSEdTextGenerator::TXT_MENU_BUILD, OSEdTextGenerator::TXT_MENU_MODIFY_BEHAVIOR, OSEdTextGenerator::TXT_MENU_MODIFY_PROPERTIES, OSEdTextGenerator::TXT_MENU_REMOVE_MODULE, OSEdTextGenerator::TXT_MENU_REMOVE_OPERATION, and OSEdTextGenerator::TXT_MENU_SIMULATE.
|
virtual |
|
private |
Copying not allowed.
|
private |
Handles the menu commands.
event | The event to be handled. |
Definition at line 123 of file DropDownMenu.cc.
|
private |
Assignment not allowed.
|
private |
Updates the menus enabled/disabled status.
Definition at line 131 of file DropDownMenu.cc.
References CommandRegistry::firstCommand(), GUICommand::id(), GUICommand::isEnabled(), and CommandRegistry::nextCommand().