initToolbar();
initTabPanelsManager();
initPackageBrowser();
-
+ initHelpHTMLBrowser();
CreateStatusBar();
_frameAUIMgr->Update();
Connect(15,wxEVT_COMMAND_TOOL_CLICKED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnToolLeftClick));
}
+ //=========================================================================
+ void wxGUIEditorGraphicBBS::initHelpHTMLBrowser()
+ {
+
+ _helpHtmlBrowser = new WxGUIHtmlBrowser(this,wxSize(200,0));
+ _frameAUIMgr->AddPane(_helpHtmlBrowser,wxAuiPaneInfo().Right().MinSize(200,200));
+ }
//=========================================================================
void wxGUIEditorGraphicBBS::initMenu()
helpMenu->Append(wxID_ABOUT, _T("&About..."), _T("About"));
fileMenu->Append(wxID_EXIT, _T("E&xit"), _T("Exit"));
+ Connect(wxID_EXIT,wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(wxGUIEditorGraphicBBS::OnExit));
+
// now append the freshly created menu to the menu bar...
wxMenuBar *menuBar = new wxMenuBar();
menuBar->Append(fileMenu, _T("&File"));
{
_pkgBrowser = new WxGUIPackageBrowser2(this);
_pkgBrowser->IncludeAll();
- _frameAUIMgr->AddPane(_pkgBrowser,wxAuiPaneInfo().Left().MinSize(200,200).CloseButton(false));
-
+ _frameAUIMgr->AddPane(_pkgBrowser,wxAuiPaneInfo().Left().MinSize(200,200).CloseButton(false));
}
/*****************************************************
}
}
+ void wxGUIEditorGraphicBBS::OnExit(wxCommandEvent& event)
+ {
+ Close(true);
+ }
+
} // EO namespace bbtk
#ifndef __WxGUIEditorGraphicBBS_h__
#define __WxGUIEditorGraphicBBS_h__
+//Includes same project
+#include "wxTabPanelsManager.h"
+#include "wxart_new.xpm"
+
+//Includes creaMaracasVisu
+
+//Includes bbtk
+#include <bbtkWxGUIPackageBrowser2.h>
+#include <bbtkWxGUIHtmlBrowser.h>
+#include <bbtkBlackBoxDescriptor.h>
+
+//Includes vtk
+
+//Includes wxWidgets
#include <wx/frame.h>
#include <wx/aui/aui.h>
#include <wx/aui/auibook.h>
-#include <bbtkWxGUIPackageBrowser2.h>
#include <wx/panel.h>
#include <wx/toolbar.h>
#include <wx/bitmap.h>
#include <wx/menu.h>
-#include "wxart_new.xpm"
#include <wx/dnd.h>
-#include <bbtkBlackBoxDescriptor.h>
-
-#include "wxTabPanelsManager.h"
-
namespace bbtk
{
void initMenu();
void initTabPanelsManager();
void initPackageBrowser();
+ void initHelpHTMLBrowser();
void OnToolLeftClick(wxCommandEvent& event);
+ void OnExit(wxCommandEvent& event);
private:
wxTabPanelsManager *_tabsMgr;
wxAuiNotebook *_notebook;
WxGUIPackageBrowser2 *_pkgBrowser;
+ WxGUIHtmlBrowser *_helpHtmlBrowser;
std::string _dataDir;