]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOWxOutputDlg.cpp
(some of the) unused variables
[creaImageIO.git] / src / creaImageIOWxOutputDlg.cpp
index a9271911cb9e075253d261e58919b528a3c970da..3d2ac5117d0c96041fd2ca99f490188afd55d3f7 100644 (file)
@@ -14,7 +14,7 @@ namespace creaImageIO
                std::string sentence;
                sentence = "You select";
                std::string sentence2 = "You have the possibility to select output format :";
-               int nbsent= 0;
+               //int nbsent= 0;
                std::vector<std::string> outsentences;
                if (size == 1)
                {
@@ -71,12 +71,13 @@ namespace creaImageIO
 
 
          int start_point = 45;
-         wxStaticText * ExportText=new wxStaticText(this,-1,_T(sentence), wxPoint(5,10));
+         /// \TODO fix unused variable ExportText
+         wxStaticText * ExportText=new wxStaticText(this,-1,crea::std2wx(sentence), wxPoint(5,10));
          
          std::vector<std::string>::iterator it = outsentences.begin();
          for(int i = 0;it != outsentences.end(); it++, i++, start_point += 45)
          {
-                wxCheckBox *check = new wxCheckBox(this, -1, _T((*it)), wxPoint(5,start_point) );
+                wxCheckBox *check = new wxCheckBox(this, -1, crea::std2wx((*it)), wxPoint(5,start_point) );
                 if(i == deflt)
                         check->SetValue(true);
                 else
@@ -85,12 +86,14 @@ namespace creaImageIO
                  checkOut.push_back(check);
          }
          
-        checkAsking = new wxCheckBox(this, -1, _T(("Do you want to save this output and no more asking")), wxPoint(5,start_point) );
+        checkAsking = new wxCheckBox(this, -1, _T("Do you want to save this output and no more asking"), wxPoint(5,start_point) );
 
          // VALIDATION BUTTON
          wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(5,start_point+20) );
-         Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxOutputDlg::OnOk ); 
-       
+         
+         Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxOutputDlg::OnOk );
+         
+         /// \TODO fix unused variable Cancel
          wxButton *Cancel = new wxButton(this, wxID_CANCEL,_T("CANCEL"), wxPoint(100,start_point+20) );
          Layout();