#include <creaImageIOSynchron.h>
#include <creaImageIOSettings.h>
-#ifdef _RELWITHDEBINFO
-#include <crtdbg.h>
-#define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
-#else
-#define DEBUG_NEW new
-#endif
+
#ifdef _DEBUG
#include <crtdbg.h>
std::cout <<"in GimmickView::ReadImagesNotThreaded GetWholeExtent ext =";
for (int jjj=0;jjj<6;jjj++)
std:cout << " [" << jjj << "]=" << ext[jjj];
-std::cout << endl;
+std::cout << std::endl;
if(ext[5] == 0)
{
try {
- // mGimmick = new Gimmick();
+// mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
mGimmick->Initialize();
int min_dim = GIMMICK_2D_IMAGE_SELECTION;
wxMINIMIZE_BOX |
wxCAPTION
),
- // mGimmick(0),
+ //mGimmick(0),
mView(0)
{
GimmickDebugMessage(1,"WxGimmickPanel::WxGimmickPanel"
try {
mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
- mGimmick->Initialize(i_namedescp,i_namedb);
-
+ mGimmick->Initialize(i_namedescp,i_namedb);
int min_dim = GIMMICK_2D_IMAGE_SELECTION;
int max_dim = GIMMICK_3D_IMAGE_SELECTION;
mView = new WxGimmickView(mGimmick,
if (mGimmick)
{
mGimmick->Finalize();
-// delete mGimmick;
}
}
// DECLARE_EVENT_TABLE();
private :
- boost::shared_ptr<Gimmick> mGimmick;
+ boost::shared_ptr<Gimmick> mGimmick;
WxGimmickView* mView;
///The sendImage signal
#define new DEBUG_NEW
#endif
+#ifdef _RELWITHDEBINFO
+#define new DEBUG_NEW
+#endif
+
namespace creaImageIO
{
// CTor
wxMINIMIZE_BOX |
wxCAPTION
),
- // mGimmick(0),
+ // mGimmick(0),
mView(0)
{
GimmickDebugMessage(1,"WxGimmickReaderDialog::WxGimmickReaderDialog"
try {
- mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
+ mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
mGimmick->Initialize(i_namedescp,i_namedb);
mView = new WxGimmickView(mGimmick,
topsizer->Add( mView,1,wxGROW,0);
- wxSizer* bsizer = CreateSeparatedButtonSizer(wxOK|wxCANCEL);
- mOkButton = (wxButton*)FindWindowById(GetAffirmativeId(), this);
+ wxSizer* bsizer = this->CreateSeparatedButtonSizer(wxOK|wxCANCEL);
+ /*mOkButton = new wxButton(this, wxID_OK, _T("OK"), wxPoint(170,50));
+ mCancelButton = new wxButton(this, wxID_CANCEL, _T("CANCEL"), wxPoint(210,50));
+ */ mOkButton = (wxButton*)FindWindowById(GetAffirmativeId(), this);
mCancelButton = (wxButton*)FindWindowById(GetEscapeId(), this);
mOkButton->Enable(false);
- topsizer->Add ( bsizer, 0, wxGROW );
+topsizer->Add(mOkButton, 0, wxGROW);
+topsizer->Add(mCancelButton, 0, wxGROW);
+ topsizer->Add ( bsizer, 0, wxGROW );
SetSizer( topsizer );
+
Layout();
}
}
if (mGimmick)
{
- mGimmick->Finalize();
- //delete mGimmick;
+ mGimmick->Finalize();
}
}
private :
- boost::shared_ptr<Gimmick> mGimmick;
+ boost::shared_ptr<Gimmick> mGimmick;
WxGimmickView* mView;
wxButton* mOkButton;
mCurrentDirectory = std2wx(gimmick->GetHomeDirectory());
// Connect the AddProgress callback
- gimmick->ConnectAddProgressObserver
- ( boost::bind( &WxGimmickView::OnAddProgress , this, _1 ) );
+ gimmick->ConnectAddProgressObserver
+ ( boost::bind( &WxGimmickView::OnAddProgress , this, _1 ) );
// Create the list of icons (mIcon)
CreateIconList();
SetSizer( sizer );
SetAutoLayout(true);
Layout();
- mListener=new Listener();
- mListener->ConnectObserver(boost::bind( &WxGimmickView::OnDriveMount, this, _1 ) );
- mListener->Create();
- mListener->Run();
- mListener->Pause();
+ //mListener=new Listener();
+ //mListener->ConnectObserver(boost::bind( &WxGimmickView::OnDriveMount, this, _1 ) );
+ //mListener->Create();
+ // mListener->Run();
+ // mListener->Pause();
mConstructed = true;
}
GimmickDebugMessage(1,"WxGimmickView::~WxGimmickView"
<<std::endl);
delete mIcon;
- if(mListener->IsAlive())
- {
- mListener->Delete();
- }
+ //if(mListener->IsAlive()) { mListener->Delete(); }
}
//======================================================================
void CreateIconList();
boost::shared_ptr<Gimmick> mGimmick;
-
+
Listener* mListener;
/// Callback for adding files