]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx
Changes with manualBaseModel. It improves the functionality with the new
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxInstantChooserPanel.cxx
index b40caf42caf7c3af1c31a7f6a1f748b01d83960b..ea1cfeaf9a1180866d618e6e63f90d2c61e33758 100644 (file)
@@ -153,7 +153,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                }
                else
                {
-                       for(int i=0; i<_concepts->size(); i++)
+                       for(int i=0; i< (int)(_concepts->size()); i++)
                        {
                                changeResolutionAtConceptControl( (*_concepts)[i] );
                        }
@@ -194,7 +194,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                {
                        int size = _concepts->size();
                        wxConceptControl * aConcept = NULL;
-                       int accum = 0;
+//                     int accum = 0;
 
                        for(int i = 0; i < eventConcept->getNumCheckBox();i++){
                                if(i!=groupID){
@@ -211,8 +211,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                                                aConcept->clearCheckAt( groupID );
                                        }                                       
                                }
-                       }               
-                       
+                       }                       
                }
        }
 
@@ -265,7 +264,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
        void wxInstantChooserPanel :: setInstant(std::vector<int> choiceInstant)
        {               
                int max = _concepts->size();
-               if( choiceInstant.size() == max )
+               if( (int)(choiceInstant.size()) == max )
                {
                        int i = 0;
                        while(i< max)
@@ -474,7 +473,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                bool isChecked = false;
 
                int i,size = _concepts->size();
-               wxConceptControl * aConcept = NULL;                     
+//             wxConceptControl * aConcept = NULL;                     
                for ( i=0; i<size && !isChecked; i++ )
                {       
                        if( (*_concepts)[i]->getName().compare( theConceptName ) == 0 )
@@ -499,4 +498,5 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                                addConcept( conceptNameVect[i], 1, conceptSizeVect[i], 1);
                        } // if
                }
-       }
\ No newline at end of file
+       }
+