//=========================================================================
wxVtkSceneManager::wxVtkSceneManager(wxGEditorTabPanel *parent, wxVtk3DBaseView *baseView,int idManager)
{
+ printf ("EED %p wxVtkSceneManager()\n" , this );
_parent = parent;
_numBoxes=0;
_idManager=idManager;
if( _baseView!=NULL )
{
+//EED02JUIN2010
_baseView->GetWxVTKRenderWindowInteractor()->SetDropTarget((wxDropTarget*)parent);
configureBaseView();
_worldState=NOTHING_HAPPENS;
void wxVtkSceneManager::disconnectDrop()
{
- _baseView->GetWxVTKRenderWindowInteractor()->SetDropTarget(NULL);
+ printf ("EED %p ~wxVtkSceneManager::disconnectDrop()\n" , this );
+//EED02JUIN2010 _baseView->GetWxVTKRenderWindowInteractor()->SetDropTarget(NULL);
+// _baseView->GetWxVTKRenderWindowInteractor()->SetDropTarget( new tmpClasswxTextDropTarget() );
}
//=========================================================================
wxVtkSceneManager::~wxVtkSceneManager()
{
+ printf ("EED %p ~wxVtkSceneManager()\n" , this );
+ disconnectDrop();
}
//=========================================================================
wxGUIEditorGraphicBBS::wxGUIEditorGraphicBBS(wxFrame *parent)
: wxFrame(parent, -1, _T("bbtkGEditor"),wxDefaultPosition, wxSize(1200,800))
{
+
+ printf ("EED %p wxGUIEditorGraphicBBS()\n" , this );
+
_frameAUIMgr = new wxAuiManager(this);
//=========================================================================
wxGUIEditorGraphicBBS::~wxGUIEditorGraphicBBS()
{
- _frameAUIMgr->UnInit();
+ printf ("EED %p ~wxGUIEditorGraphicBBS()\n" , this );
+
+//EED02JUIN2010 delete _tabsMgr;
+
+ _frameAUIMgr->UnInit();
+
+
}
//=========================================================================
#endif
//command += ConfigurationFile::GetInstance().Get_bin_path();
- command +="C:/temp/bbtkBIN/RelWithDebInfo//";
+//EED command +="C:/temp/bbtkBIN/RelWithDebInfo//";
+//EED command +="C:/Program Files/CreaTools/bbtk-0.9.5/bin";
+ command +=".";
+
#ifdef MACOSX
command += separator + "bbi.app/Contents/MacOS/bbi\" ";
//=========================================================================
wxGEditorTabPanel::wxGEditorTabPanel()
{
+ printf ("EED %p wxGEditorTabPanel 1 ()\n" , this );
}
//=========================================================================
wxGEditorTabPanel::wxGEditorTabPanel(wxWindow *parent,int id):wxPanel(parent),wxTextDropTarget()
{
+ printf ("EED %p wxGEditorTabPanel 2 ()\n" , this );
_id=id;
_panelAUIMgr = new wxAuiManager(this);
_sceneManager = NULL;
//=========================================================================
wxGEditorTabPanel::~wxGEditorTabPanel()
{
- _sceneManager->disconnectDrop();
+printf ("EED %p ~wxGEditorTabPanel()\n" , this );
+//ED02JUIN2010 _sceneManager->disconnectDrop();
}
//=========================================================================
{
wxVtk3DBaseView *baseview = new wxVtk3DBaseView(this);
baseview->Configure();
-
_sceneManager=new wxVtkSceneManager(this,baseview,_id);
-
_panelAUIMgr->AddPane((wxWindow*)baseview->GetWxVTKRenderWindowInteractor(),wxAuiPaneInfo().Fixed().CenterPane());
+//EED02JUIN2010
+
_panelAUIMgr->Update();
}
namespace bbtk
{
+ class tmpClasswxTextDropTarget : public wxTextDropTarget
+ {
+ public:
+ virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& data) { return false;}
+ };
+
+
+
class wxVtkSceneManager;
class wxTabPanelsManager;
- class wxGEditorTabPanel : public wxTextDropTarget, public wxPanel
+ class wxGEditorTabPanel : public wxPanel, public wxTextDropTarget
{
public:
wxGEditorTabPanel();
//=========================================================================
wxTabPanelsManager::wxTabPanelsManager(wxGUIEditorGraphicBBS *parent)
{
+ printf ("EED %p wxTabPanelsManager()\n" , this );
_parent = parent;
_lastId = 0;
_notebook = _parent->getAuiNotebook();
//=========================================================================
wxTabPanelsManager::~wxTabPanelsManager()
{
+ printf ("EED %p ~wxTabPanelsManager()\n" , this );
}
//=========================================================================