From fbe4a2d7d9dccb1489223f03430ae2bc04bccb53 Mon Sep 17 00:00:00 2001 From: Frederic Cervenansky Date: Wed, 9 Dec 2009 17:18:14 +0000 Subject: [PATCH] corrections on wxRedaerDialogBox --- src2/creaImageIOMultiThreadImageReader.cpp | 2 +- src2/creaImageIOWxGimmickReaderDialog.cpp | 17 +++++++++-------- src2/creaImageIOWxGimmickReaderDialog.h | 12 +++++++----- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src2/creaImageIOMultiThreadImageReader.cpp b/src2/creaImageIOMultiThreadImageReader.cpp index 1b96fc9..8a965f5 100644 --- a/src2/creaImageIOMultiThreadImageReader.cpp +++ b/src2/creaImageIOMultiThreadImageReader.cpp @@ -142,7 +142,7 @@ namespace creaImageIO //(*i)->Delete(); } } - // mThreadedImageReaderList.clear(); + mThreadedImageReaderList.clear(); // Wait a little to be sure that all threads have stopped // A better way to do this ? // wxMilliSleep(1000); diff --git a/src2/creaImageIOWxGimmickReaderDialog.cpp b/src2/creaImageIOWxGimmickReaderDialog.cpp index baac5a5..4823d40 100644 --- a/src2/creaImageIOWxGimmickReaderDialog.cpp +++ b/src2/creaImageIOWxGimmickReaderDialog.cpp @@ -1,6 +1,9 @@ #include #include - +#include +#ifdef _DEBUG +#define new DEBUG_NEW +#endif namespace creaImageIO { // CTor @@ -32,7 +35,7 @@ namespace creaImageIO { GimmickDebugMessage(1,"WxGimmickReaderDialog::WxGimmickReaderDialog" <Add( mView,1,wxGROW,0); + mtopsizer->Add( mView,1,wxGROW,0); wxSizer* bsizer = this->CreateSeparatedButtonSizer(wxOK|wxCANCEL); /*mOkButton = new wxButton(this, wxID_OK, _T("OK"), wxPoint(170,50)); @@ -67,12 +70,9 @@ namespace creaImageIO mCancelButton = (wxButton*)FindWindowById(GetEscapeId(), this); mOkButton->Enable(false); + mtopsizer->Add ( bsizer, 0, wxGROW ); -topsizer->Add(mOkButton, 0, wxGROW); -topsizer->Add(mCancelButton, 0, wxGROW); - topsizer->Add ( bsizer, 0, wxGROW ); - - SetSizer( topsizer ); + SetSizer( mtopsizer ); Layout(); } @@ -90,6 +90,7 @@ topsizer->Add(mCancelButton, 0, wxGROW); { mGimmick->Finalize(); } + } ///Callback method on a selection diff --git a/src2/creaImageIOWxGimmickReaderDialog.h b/src2/creaImageIOWxGimmickReaderDialog.h index 069b6a0..94b29b2 100644 --- a/src2/creaImageIOWxGimmickReaderDialog.h +++ b/src2/creaImageIOWxGimmickReaderDialog.h @@ -6,16 +6,17 @@ #include #include #include "wx/wx.h" - - - namespace creaImageIO { - //===================================================================== + /** + * \ingroup GUI + */ + + //===================================================================== //===================================================================== class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog { - public: + public: WxGimmickReaderDialog(); WxGimmickReaderDialog(wxWindow *parent, const wxWindowID id, @@ -63,6 +64,7 @@ namespace creaImageIO wxButton* mOkButton; wxButton* mCancelButton; + wxBoxSizer *mtopsizer; enum { -- 2.47.1