]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxGimmickReaderDialog.h
Added validation function (visible in ok button being enabled or not)
[creaImageIO.git] / src2 / creaImageIOWxGimmickReaderDialog.h
index 9526d374e428c154acc08f203113161dfc07a8a4..54f929c044b0f2eb7160c3af039a11dea5085311 100644 (file)
@@ -5,12 +5,13 @@
 
 #include <creaImageIOWxGimmickView.h>
 #include <creaWx.h>
-
+#include "wx/wx.h"
 namespace creaImageIO
 {
   /**
    * \ingroup GUI
    */
+       
   //=====================================================================
  //=====================================================================
   class /*CREAIMAGEIO_EXPORT*/ WxGimmickReaderDialog : public wxDialog
@@ -22,8 +23,9 @@ namespace creaImageIO
                          wxString title,
                          const wxPoint& pos, 
                          const wxSize& size,
-                         int image_min_type = GIMMICK_2D_IMAGE_SELECTION,
-                         int image_max_type = GIMMICK_3D_IMAGE_SELECTION,
+                         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; }
@@ -48,11 +50,13 @@ namespace creaImageIO
     void OnSelChanged(EventType& event);
     void OnContextualMenu(EventType& event);
     void OnMenuTest(wxCommandEvent& event);
-       //    void OnValid(wxCommandEvent& event);
+       void OnValid(wxCommandEvent& event);
     //    void OnButtonOk(wxCommandEvent& event);
     //    void OnButtonCancel(wxCommandEvent& event);
 
-    DECLARE_EVENT_TABLE();
+    DECLARE_EVENT_TABLE()
+       
+       
   private :
     
     Gimmick*       mGimmick;
@@ -70,11 +74,11 @@ namespace creaImageIO
 
   }; // class WxGimmickReaderDialog
   //=====================================================================
-
-  
+       
 } // EO namespace creaImageIO
 
 
+
 #endif // USE_WIDGETS
 // EOF
 #endif