]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfMenuBar.h
BUG MACOS
[creaContours.git] / lib / Interface_Icons_NDimensions / interfMenuBar.h
index 28441b03d9132b4be75ee56bc46407bd48d0cc58..55905bfb8f7fb2eaa526fd2368682e0d76267e5a 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __interfMENUBARH__
 #define __interfMENUBARH__
 
+#include <string>
 #include <wx/wx.h>
 #include <vector>
 #include <wx/image.h>
@@ -45,7 +46,7 @@ public:
                this->SetAutoLayout( true );
                
                //first row of the sizer, the buttons are being added
-               for(int i = 0; i < vpath.size();i++){
+               for(int i = 0; i < (int)(vpath.size());i++){
                        std::string p = vpath[i];
                        wxBitmapButton* bitmapbutton = this->getButton(p, sizex, sizey);
                        flexsizer->Add(bitmapbutton,wxFIXED_MINSIZE);
@@ -53,7 +54,7 @@ public:
                }
                //second row of the sizer, the names are being added
                
-               for(int i = 0; i < vnom.size(); i++){
+               for(int i = 0; i < (int)(vnom.size()); i++){
                        //sizex = vectbutton[i]->GetSize().GetWidth();
                        std::string n = vnom[i];
                        vectbutton[i]->SetToolTip(wxString(n.c_str(),wxConvUTF8));
@@ -102,7 +103,7 @@ public:
        **      and name of the button. See addButton(<vect>, <vect>)
        **/
        virtual void setVectorFunction(std::vector<wxObjectEventFunction> vectf){
-               for(int i = 0; i < vectf.size();i++){
+               for(int i = 0; i < (int)(vectf.size());i++){
                        vectfunct.push_back(vectf[i]);
                }               
        }
@@ -113,7 +114,7 @@ public:
        **/
        virtual void connectEvents(wxEvtHandler* evtHandler){   
 
-               for(int i = 0; i < vectbutton.size();i++){
+               for(int i = 0; i < (int)(vectbutton.size());i++){
                        Connect(vectbutton[i]->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, vectfunct[i],NULL,evtHandler);
                }
        }
@@ -124,7 +125,7 @@ public:
        **/
        virtual void connectEvents(){   
 
-               for(int i = 0; i < vectbutton.size();i++){
+               for(int i = 0; i < (int)(vectbutton.size());i++){
                        Connect(vectbutton[i]->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, vectfunct[i],NULL,vecthand[i]);
                }
        }
@@ -136,7 +137,7 @@ public:
        **      @params const char      name of the button see wxContour_ActionCommandsID.h to view the commands
        **/
        virtual void setButtonName(int i, const char c){
-               if(i < vectbutton.size()){
+               if(i < (int)(vectbutton.size())){
                        std::string ac = c+"";
                        vectbutton[i]->SetName(wxString(ac.c_str(),wxConvUTF8));
                }
@@ -163,7 +164,7 @@ public:
 
        virtual void setEventHandlers(std::vector<wxEvtHandler*> hand){
 
-               for(int i = 0; i < hand.size();i++){
+               for(int i = 0; i < (int)(hand.size());i++){
                        vecthand.push_back(hand[i]);
                }
        }