wxBitmap bmp_delete(delete_xpm);
wxBitmap bmp_centerview(centerview_xpm);
wxBitmap bmp_box(box_xpm);
+ wxBitmap bmp_executablebox(executablebox_xpm);
wxBitmap bmp_complexbox(complexbox_xpm);
wxBitmap bmp_complexinputport(complexinputport_xpm);
wxBitmap bmp_complexoutputport(complexoutputport_xpm);
toolbar->AddSeparator();
toolbar->AddTool(ID_BTNBOX,_T("New Box"),bmp_box, wxNullBitmap, wxITEM_NORMAL,_T("New Box"), _T("Nex Box"));
toolbar->AddSeparator();
+ toolbar->AddTool(ID_BTEXECUTABLEBOX,_T("Select as executable Box"),bmp_executablebox, wxNullBitmap, wxITEM_NORMAL,_T("Select as executable Box"), _T("Select as executable Box"));
+ toolbar->AddSeparator();
toolbar->AddTool(ID_BTNCOMPLEXBOX,_T("Complex box"),complexbox_xpm, wxNullBitmap, wxITEM_NORMAL,_T("Complex box"), _T("Complex box"));
toolbar->SetToggle(ID_BTNCOMPLEXBOX,true);
toolbar->AddTool(ID_ADDCOMPLEXBOXINPUT,_T("Add input to Complex box"),bmp_complexinputport, wxNullBitmap, wxITEM_NORMAL,_T("Add input to Complex box"), _T("Add input to Complex box"));
Connect(ID_DELETEALL,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnDeleteAllBoxesActualDiagram));
Connect(ID_CENTERVIEW,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnCenterViewActualDiagram));
Connect(ID_BTNBOX,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnClickBtnBox));
+ Connect(ID_BTEXECUTABLEBOX,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnClickBtnExecutableBox));
Connect(ID_BTNCOMPLEXBOX,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnClickBtnComplexBox));
Connect(ID_ADDCOMPLEXBOXINPUT,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnAddComplexBoxInput));
Connect(ID_ADDCOMPLEXBOXOUTPUT,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnAddComplexBoxOutput));
helpMenu->Append(ID_HELP_BBEDITOR, _T("&Help..."), _T("Help"));
Connect(ID_HELP_BBEDITOR,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnHelpBBeditor));
+ // Create Tool menu
+ wxMenu *menuTools = new wxMenu;
+ menuTools->Append( ID_bbEditor_Tool_Menu_CreatePackage, _T("Create &package") );
+ menuTools->Append( ID_bbEditor_Tool_Menu_CreateBlackBox, _T("Create &blackbox") );
+ menuTools->Append( ID_bbEditor_Tool_Menu_PlugPackage, _T("Plug package") );
+ menuTools->Append( ID_bbEditor_Tool_Menu_EditConfig, _T("&Edit bbtk config") );
+ menuTools->Append( ID_bbEditor_Tool_Menu_ShowHTMLDoc, _T("Show &HTML documentation") );
+ menuTools->Append( ID_bbEditor_Tool_Menu_CreateIndex, _T("&Generate index") );
+
+ Connect(ID_bbEditor_Tool_Menu_CreatePackage,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnCreatePackage));
+ Connect(ID_bbEditor_Tool_Menu_CreateBlackBox,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnCreateBlackBox));
+ Connect(ID_bbEditor_Tool_Menu_PlugPackage,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnPlugPackage));
+ Connect(ID_bbEditor_Tool_Menu_EditConfig,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnEditConfig));
+ Connect(ID_bbEditor_Tool_Menu_ShowHTMLDoc,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnShowHTMLDoc));
+ Connect(ID_bbEditor_Tool_Menu_CreateIndex,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnCreateIndex));
+
// Append the created menu to the menu bar
wxMenuBar *menuBar = new wxMenuBar();
- menuBar->Append(fileMenu, _T("&File"));
- menuBar->Append(editMenu, _T("&Edit"));
- menuBar->Append(helpMenu, _T("&Help"));
+ menuBar->Append( fileMenu, _T("&File") );
+ menuBar->Append( editMenu, _T("&Edit") );
+ menuBar->Append( menuTools, _T("&Tool") );
+ menuBar->Append( helpMenu, _T("&Help") );
// Attach this menu bar to the frame
SetMenuBar(menuBar);
//=========================================================================
+ void wxGUIEditorGraphicBBS::OnClickBtnExecutableBox(wxCommandEvent& event)
+ {
+ printf("EED wxGUIEditorGraphicBBS::OnClickBtnExecutableBox .... not implemented ...\n");
+ }
+
+ //=========================================================================
void wxGUIEditorGraphicBBS::OnClickBtnComplexBox(wxCommandEvent& event)
{
void wxGUIEditorGraphicBBS::OnHelpBBeditor(wxCommandEvent& event)
{
- printf("wxGUIEditorGraphicBBS::OnHelpBBeditor ......\n");
+ printf("wxGUIEditorGraphicBBS::OnHelpBBeditor ....not implemented..\n");
}
+ //=========================================================================
+ void wxGUIEditorGraphicBBS::OnCreatePackage(wxCommandEvent& event)
+ {
+ printf("EED wxGUIEditorGraphicBBS::OnCreatePackag ... not implemented ..\n");
+ }
+
+
+ //=========================================================================
+ void wxGUIEditorGraphicBBS::OnCreateBlackBox(wxCommandEvent& event)
+ {
+ printf("EED wxGUIEditorGraphicBBS::OnCreateBlackBox ... not implemented ..\n");
+ }
+ //=========================================================================
+ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event)
+ {
+ printf("EED wxGUIEditorGraphicBBS::OnPlugPackage ... not implemented ..\n");
+ }
+ //=========================================================================
+ void wxGUIEditorGraphicBBS::OnEditConfig(wxCommandEvent& event)
+ {
+ printf("EED wxGUIEditorGraphicBBS::OnEditConfig ... not implemented ..\n");
+ }
+ //=========================================================================
+ void wxGUIEditorGraphicBBS::OnShowHTMLDoc(wxCommandEvent& event)
+ {
+ printf("EED wxGUIEditorGraphicBBS::OnShowHTMLDoc ... not implemented ..\n");
+ }
+ //=========================================================================
+ void wxGUIEditorGraphicBBS::OnCreateIndex(wxCommandEvent& event)
+ {
+ printf("EED wxGUIEditorGraphicBBS::OnCreateIndex ... not implemented ..\n");
+ }
+
+
+
//=========================================================================