From 7ecf7bf3d89fe77fab3453731c57eb49df35c983 Mon Sep 17 00:00:00 2001 From: gonzalez <> Date: Tue, 9 Oct 2012 16:01:42 +0000 Subject: [PATCH] Feature #1666 Plug Package Implemented --- .../bbtkwxGUIEditorGraphicBBS.cxx | 11 +++++++---- .../bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index 3695c51..1699a9f 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -950,8 +950,8 @@ void wxGUIEditorGraphicBBS::OnCreateBlackBox(wxCommandEvent& event) { } //========================================================================= void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) { - printf("EED wxGUIEditorGraphicBBS::OnPlugPackage ... not implemented ..\n"); -/* this is the right code but it's left to include the corresponding commented libraries + //printf("EED wxGUIEditorGraphicBBS::OnPlugPackage ... not implemented ..\n"); + //this is the right code but it's left to include the corresponding commented libraries long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST; wxDirDialog* FD = new wxDirDialog( 0, @@ -979,7 +979,10 @@ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) { DoRegeneratePackageDoc(pname); DoRegenerateBoxesLists(); - wxMessageBox(_T("Package successfully plugged"),_T("Plug package"),wxOK | wxICON_INFORMATION); + + _pkgBrowser->RebuildList(); + + wxMessageBox(_T("Package successfully plugged. Please restart bbEditor to see the new package in the package browser."),_T("Plug package"),wxOK | wxICON_INFORMATION); userResponse = wxID_CANCEL; } else @@ -996,7 +999,7 @@ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) { } } }while(userResponse != wxID_CANCEL); -*/ + } //========================================================================= void wxGUIEditorGraphicBBS::OnEditConfig(wxCommandEvent& event) { diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h index b42475d..ee35ab0 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h @@ -71,6 +71,7 @@ #include #include #include +#include #include #include -- 2.47.1