]> Creatis software - bbtkGEditor.git/commitdiff
Feature #1666
authorgonzalez <>
Tue, 9 Oct 2012 16:01:42 +0000 (16:01 +0000)
committergonzalez <>
Tue, 9 Oct 2012 16:01:42 +0000 (16:01 +0000)
Plug Package Implemented

lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h

index 3695c51df9740e03f766335372bfa999459ef199..1699a9fa559793590a496b8e5ea5b344fd56e9bc 100644 (file)
@@ -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) {
index b42475d1cc84d2a430375f03ff97670f70dd6ba4..ee35ab0f39ae0c921b19dbb1e34635f221e16e5c 100644 (file)
@@ -71,6 +71,7 @@
 #include <bbtkWxGUIPackageBrowser2.h>
 #include <bbtkWxGUIHtmlBrowser.h>
 #include <bbtkBlackBoxDescriptor.h>
+#include <bbtkUtilities.h>
 #include <bbtkConfigurationFile.h>
 #include <bbtkSystemTools.h>