]> Creatis software - creaImageIO.git/blob - src2/creaImageIOWxGimmickReaderDialog.h
1bf53de07799e83e87dc989cd5539ec173184a95
[creaImageIO.git] / src2 / creaImageIOWxGimmickReaderDialog.h
1 #ifndef __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
2 #define __creaImageIOWxGimmickReaderDialog_h_INCLUDED__
3
4 #ifdef USE_WXWIDGETS
5
6 #include <creaImageIOWxGimmickView.h>
7 #include <creaWx.h>
8
9 namespace creaImageIO
10 {
11   /**
12    * \ingroup GUI
13    */
14   //=====================================================================
15  //=====================================================================
16   class /*CREAIMAGEIO_EXPORT*/ WxGimmickReaderDialog : public wxDialog
17   {
18   public:
19     WxGimmickReaderDialog();    
20     WxGimmickReaderDialog(wxWindow *parent, 
21                           const wxWindowID id,
22                           wxString title,
23                           const wxPoint& pos, 
24                           const wxSize& size,
25                           int image_type = GIMMICK_3D_IMAGE_SELECTION,
26                           int threads = 0);
27     
28     Gimmick* GetGimmick() { return mGimmick; }
29     //    typedef WxGimmick ViewType;
30     typedef WxGimmickView::EventType EventType;
31
32     ~WxGimmickReaderDialog();
33
34     void GetSelectedImages(std::vector<vtkImageData*>& s)
35     { mView->GetSelectedImages(s); }
36     void GetSelectedFiles(std::vector<std::string>& s) 
37     { mView->GetSelectedFiles(s); }
38     
39     void OnSelChanged(EventType& event);
40     void OnContextualMenu(EventType& event);
41     void OnMenuTest(wxCommandEvent& event);
42     //    void OnButtonOk(wxCommandEvent& event);
43     //    void OnButtonCancel(wxCommandEvent& event);
44
45     DECLARE_EVENT_TABLE();
46   private :
47     
48     Gimmick*       mGimmick;
49     WxGimmickView* mView;
50
51     wxButton* mOkButton;
52     wxButton* mCancelButton;
53
54     enum 
55       {
56         TVID = 1
57         //      OKID = 2,
58         //      CANCELID = 3
59       };
60
61   }; // class WxGimmickReaderDialog
62   //=====================================================================
63
64   
65 } // EO namespace creaImageIO
66
67
68 #endif // USE_WIDGETS
69 // EOF
70 #endif