OpenASIP
2.0
|
#include <OSEdMainFrame.hh>
Public Member Functions | |
OSEdMainFrame (const wxString &title, const wxPoint &pos, const wxSize &size) | |
virtual | ~OSEdMainFrame () |
OSEdTreeView * | treeView () const |
CommandRegistry * | registry () const |
OSEdInformer * | informer () const |
wxStatusBar * | statusBar () const |
void | updateMenuBar () |
void | onCommandEvent (wxCommandEvent &event) |
Private Member Functions | |
OSEdMainFrame (const OSEdMainFrame &) | |
Copying not allowed. More... | |
OSEdMainFrame & | operator= (const OSEdMainFrame &) |
Assignment not allowed. More... | |
Private Attributes | |
CommandRegistry * | registry_ |
Command registry. More... | |
OSEdTreeView * | treeView_ |
Tree view. More... | |
OSEdInformer * | informer_ |
Informs listener classes for events that occurs. More... | |
wxStatusBar * | statusBar_ |
Status bar of the main window. More... | |
Main window of the application.
Contains a splitted window for showing data and a menu bar for executing actions.
Definition at line 49 of file OSEdMainFrame.hh.
OSEdMainFrame::OSEdMainFrame | ( | const wxString & | title, |
const wxPoint & | pos, | ||
const wxSize & | size | ||
) |
Constructor.
title | Window title. |
pos | Window position. |
size | Window size. |
Definition at line 82 of file OSEdMainFrame.cc.
References OSEdConstants::APPLICATION_NAME, Environment::bitmapsDirPath(), OSEdConstants::CMD_ABOUT, OSEdConstants::CMD_ADD_MODULE, OSEdConstants::CMD_ADD_OPERATION, OSEdConstants::CMD_BUILD, OSEdConstants::CMD_BUILD_ALL, OSEdConstants::CMD_MEMORY, OSEdConstants::CMD_MODIFY_BEHAVIOR, OSEdConstants::CMD_OPTIONS, OSEdConstants::CMD_PROPERTIES, OSEdConstants::CMD_QUIT, OSEdConstants::CMD_REMOVE_MODULE, OSEdConstants::CMD_REMOVE_OPERATION, OSEdConstants::CMD_SIMULATE, UserManualCmd::COMMAND_ID, FileSystem::DIRECTORY_SEPARATOR, OSEdTextGenerator::instance(), OSEdConstants::LOGO_NAME, Texts::TextGenerator::text(), WxConversion::toString(), WxConversion::toWxString(), OSEdTextGenerator::TXT_MENU_ABOUT, OSEdTextGenerator::TXT_MENU_ADD_MODULE, OSEdTextGenerator::TXT_MENU_ADD_OPERATION, OSEdTextGenerator::TXT_MENU_BUILD, OSEdTextGenerator::TXT_MENU_BUILD_ALL, OSEdTextGenerator::TXT_MENU_FILE, OSEdTextGenerator::TXT_MENU_HELP, OSEdTextGenerator::TXT_MENU_MEMORY, OSEdTextGenerator::TXT_MENU_MODIFY_BEHAVIOR, OSEdTextGenerator::TXT_MENU_MODIFY_PROPERTIES, OSEdTextGenerator::TXT_MENU_OPTIONS, OSEdTextGenerator::TXT_MENU_QUIT, OSEdTextGenerator::TXT_MENU_REMOVE_MODULE, OSEdTextGenerator::TXT_MENU_REMOVE_OPERATION, OSEdTextGenerator::TXT_MENU_SIMULATE, OSEdTextGenerator::TXT_MENU_TOOLS, and OSEdTextGenerator::TXT_MENU_USER_MANUAL.
|
virtual |
|
private |
Copying not allowed.
OSEdInformer * OSEdMainFrame::informer | ( | ) | const |
Returns informer instance.
Definition at line 261 of file OSEdMainFrame.cc.
References informer_.
void OSEdMainFrame::onCommandEvent | ( | wxCommandEvent & | event | ) |
Handles menu events.
event | Event to be handled. |
Definition at line 221 of file OSEdMainFrame.cc.
References CommandRegistry::createCommand(), GUICommand::Do(), OSEdTextGenerator::instance(), registry_, GUICommand::setParentWindow(), Texts::TextGenerator::text(), WxConversion::toWxString(), and OSEdTextGenerator::TXT_ERROR_NO_HANDLER.
|
private |
Assignment not allowed.
CommandRegistry * OSEdMainFrame::registry | ( | ) | const |
Returns the command registry.
Definition at line 251 of file OSEdMainFrame.cc.
References registry_.
Referenced by OSEdTreeView::onItemClicked().
wxStatusBar * OSEdMainFrame::statusBar | ( | ) | const |
Returns status bar of the frame.
Definition at line 271 of file OSEdMainFrame.cc.
References statusBar_.
Referenced by OSEdInfoView::onDropDownMenu(), OSEdTreeView::onDropDownMenu(), OSEdTreeView::onItemSelected(), and OSEdInfoView::onSelection().
OSEdTreeView * OSEdMainFrame::treeView | ( | ) | const |
Returns pointer to the tree view.
Definition at line 241 of file OSEdMainFrame.cc.
References treeView_.
Referenced by OSEdAddModuleCmd::Do(), OSEdSimulateCmd::Do(), OSEdPropertiesCmd::Do(), OSEdAddOperationCmd::Do(), OSEdBuildCmd::isEnabled(), and OSEd::OnInit().
void OSEdMainFrame::updateMenuBar | ( | ) |
Updates the menu bar disabled/enabled states.
Definition at line 279 of file OSEdMainFrame.cc.
References CommandRegistry::firstCommand(), GUICommand::id(), GUICommand::isEnabled(), CommandRegistry::nextCommand(), and registry_.
Referenced by OSEd::OnInit(), and OSEdInfoView::onSelection().
|
private |
Informs listener classes for events that occurs.
Definition at line 77 of file OSEdMainFrame.hh.
Referenced by informer(), and ~OSEdMainFrame().
|
private |
Command registry.
Definition at line 73 of file OSEdMainFrame.hh.
Referenced by onCommandEvent(), registry(), updateMenuBar(), and ~OSEdMainFrame().
|
private |
Status bar of the main window.
Definition at line 79 of file OSEdMainFrame.hh.
Referenced by statusBar().
|
private |