// Create Help menu and its items
wxMenu *helpMenu = new wxMenu;
helpMenu->Append(wxID_ABOUT, _T("&About..."), _T("About"));
+ helpMenu->Append(ID_HELP_BBEDITOR, _T("&Help..."), _T("Help"));
+ Connect(ID_HELP_BBEDITOR,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnHelpBBeditor));
// Append the created menu to the menu bar
wxMenuBar *menuBar = new wxMenuBar();
//=========================================================================
-
void wxGUIEditorGraphicBBS::OnOpenDiagram(wxCommandEvent& event)
{
wxFileDialog * openFileDialog = new wxFileDialog(this,wxT("Open diagram"),wxEmptyString,wxT(""),wxT("*.bbg"),wxOPEN|wxFILE_MUST_EXIST);
if (openFileDialog->ShowModal() == wxID_OK)
{
wxString fileName = openFileDialog->GetPath();
-
ifstream inputStream;
-
//EED inputStream.open(fileName.c_str());
inputStream.open( (const char*) (fileName.mb_str()) );
-
-
-
_tabsMgr->addNewTab();
_tabsMgr->loadDiagram(inputStream);
void wxGUIEditorGraphicBBS::OnClickBtnBox(wxCommandEvent& event)
{
-
- BlackBoxDescriptor *bbDes = _pkgBrowser->GetActualSelected();
+ BlackBoxDescriptor *bbDes = _pkgBrowser->GetActualSelected();
if (bbDes!=NULL)
{
std::string typeName = bbDes->GetTypeName();
_tabsMgr->copySelectedBBoxesToComplexDiagram();
}
+
+ void wxGUIEditorGraphicBBS::OnHelpBBeditor(wxCommandEvent& event)
+ {
+ printf("wxGUIEditorGraphicBBS::OnHelpBBeditor ......\n");
+ }
+
+
+
//=========================================================================
void wxGUIEditorGraphicBBS::OnExit(wxCommandEvent& event)
{
Close(true);
}
+
+
//=========================================================================