]> Creatis software - creaImageIO.git/commitdiff
Fixed add files problem and Mac compatibility
authorcaballero <caballero>
Wed, 29 Apr 2009 14:21:22 +0000 (14:21 +0000)
committercaballero <caballero>
Wed, 29 Apr 2009 14:21:22 +0000 (14:21 +0000)
appli/TestWxGimmickReaderDialog/main.cxx
src2/creaImageIOWxGimmickView.cpp
src2/creaImageIOWxTreeView.cpp

index 94838a8317fbfb7f844a61d1b1dd02cf9ed3ee7b..19afb0578a472c951c51a56509087fc92fb6a3ae 100644 (file)
@@ -61,9 +61,9 @@ bool myApp::OnInit( )
 
           //Puts images
        std::vector<vtkImageData*> images;
-       w.GetSelectedImages(images,output_dim);
-          
-       crea::VtkBasicSlicer(images.front());
+          w.GetSelectedImages(images,output_dim);
+
+          crea::VtkBasicSlicer(images.front());
        images.front()->Delete();
           w.OnExit();
 
index 824386795051727db757a73268c3759da8414d97..1e39a5542e3b35f7668a9ee5c82ab4524480538f 100644 (file)
@@ -36,19 +36,19 @@ namespace creaImageIO
 
   //================================================================
   // 
-  const int icon_number = 8;
+  const int icon_number = 9;
   // Icon ids
   typedef enum
     {
+         Icon_create_database,
       Icon_accept,
       Icon_add,
       Icon_folder_down,
       Icon_page_down,
+         Icon_database_add,
       Icon_remove,
-      Icon_database_add,
-      Icon_help,
          Icon_synchronize,
-         Icon_create_database
+      Icon_help
     }
     icon_id;
   //================================================================
@@ -780,7 +780,6 @@ namespace creaImageIO
    //=================================================
   BEGIN_EVENT_TABLE(WxGimmickView, wxPanel)
     EVT_TOOL(TOOL_CREATEDB_ID, WxGimmickView::OnCreateDB)
-       EVT_TOOL(TOOL_ADDFILES_ID, WxGimmickView::OnCreateDB)
     EVT_TOOL(TOOL_ADDFILES_ID, WxGimmickView::OnAddFiles)
     EVT_TOOL(TOOL_ADDDIR_ID, WxGimmickView::OnAddDir)
        EVT_TOOL(TOOL_ADDDATABASE_ID, WxGimmickView::OnAddDB)
index e644d5e1ba1420449c1d64564e440eb016b7216c..97460164e3126be0ee473543c6654c45fa3b390c 100644 (file)
@@ -583,7 +583,7 @@ namespace creaImageIO
     // Validate selected images if the selection is at image level
     if (level==(mLevelList.size()-1)) //&&mProcess) 
       {
-       if(event.GetEventType()==10145)
+       if(event.GetEventType()==wxEVT_COMMAND_LIST_ITEM_SELECTED)
          {
            ValidateSelectedImages (true);
          }