X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOWxGimmickReaderDialog.h;h=069b6a09eb911fa57600f4b51011af191554b27a;hb=37692ca5ea7fb8414cb70bcae0ce16e51da57568;hp=dbd874cf2751484dc8cccc925ac1f9a007996a5d;hpb=45e8123561479c77ffffbcd3a6453f9dd4d12169;p=creaImageIO.git diff --git a/src2/creaImageIOWxGimmickReaderDialog.h b/src2/creaImageIOWxGimmickReaderDialog.h index dbd874c..069b6a0 100644 --- a/src2/creaImageIOWxGimmickReaderDialog.h +++ b/src2/creaImageIOWxGimmickReaderDialog.h @@ -6,57 +6,59 @@ #include #include #include "wx/wx.h" + + + namespace creaImageIO { - /** - * \ingroup GUI - */ - - //===================================================================== + //===================================================================== //===================================================================== - class /*CREAIMAGEIO_EXPORT*/ WxGimmickReaderDialog : public wxDialog + class CREAIMAGEIO_EXPORT WxGimmickReaderDialog : public wxDialog { - public: - WxGimmickReaderDialog(); - WxGimmickReaderDialog(wxWindow *parent, + public: + WxGimmickReaderDialog(); + WxGimmickReaderDialog(wxWindow *parent, const wxWindowID id, + const std::string i_namedescp , + const std::string i_namedb , wxString title, - const wxPoint& pos, + const wxPoint& pos, const wxSize& size, int image_min_dim = GIMMICK_2D_IMAGE_SELECTION, int image_max_dim = GIMMICK_3D_IMAGE_SELECTION, int output_dim = NATIVE, int threads = 0); - - Gimmick* GetGimmick() { return mGimmick; } + + boost::shared_ptr GetGimmick() { return mGimmick; } // typedef WxGimmick ViewType; typedef WxGimmickView::EventType EventType; ~WxGimmickReaderDialog(); - //=============================================================================================== //Image Selection //=============================================================================================== - + void GetSelectedImages(std::vector& s, int dim) { mView->GetSelectedImages(s, dim); } + void GetSelectedImagesInVector(std::vector& s, int dim) + { mView->GetSelectedImagesInVector(s, dim); } void GetSelectedFiles(std::vector& s) { mView->GetSelectedFiles(s); } - + void OnSelChanged(EventType& event); void OnContextualMenu(EventType& event); void OnMenuTest(wxCommandEvent& event); - void OnValid(bool valid); - void OnExit(){mView->StopPlayer();} - // void OnButtonOk(wxCommandEvent& event); - // void OnButtonCancel(wxCommandEvent& event); - + void OnValid(bool valid); + void OnExit(){ mView->StopPlayer(); } + // void OnButtonOk(wxCommandEvent& event); + // void OnButtonCancel(wxCommandEvent& event); + private : - - Gimmick* mGimmick; + + boost::shared_ptr mGimmick; WxGimmickView* mView; wxButton* mOkButton; @@ -75,7 +77,6 @@ namespace creaImageIO } // EO namespace creaImageIO - #endif // USE_WIDGETS // EOF #endif