]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxGimmickTools.cpp
GetLabel vs GetValue
[creaImageIO.git] / src2 / creaImageIOWxGimmickTools.cpp
index f2f082a74f7503795220f7dd6a5f79007cd897c1..d0392f50e3633a6c4315f2f89f27ffe5e7f8bd33 100644 (file)
@@ -30,10 +30,10 @@ namespace creaImageIO
                wxFlexGridSizer * sizer = new wxFlexGridSizer(2,5);
                sizer->Add( new wxStaticText(this, -1, _T(" ")), 1, wxGROW );
                sizer->Add( new wxStaticText(this, -1, _T(" ")), 1, wxGROW );
-               sizer->Add( _inputPath, 1, wxGROW );
-               sizer->Add( inputDir, 1, wxGROW );
-               sizer->Add( _outputPath, 1, wxGROW );
-               sizer->Add( outputDir, 1, wxGROW );
+               sizer->Add( _inputPath,   1, wxGROW );
+               sizer->Add( inputDir,     1, wxGROW );
+               sizer->Add( _outputPath,  1, wxGROW );
+               sizer->Add( outputDir,    1, wxGROW );
                sizer->Add( new wxStaticText(this, -1, _T(" ")), 1, wxGROW );
                sizer->Add( new wxStaticText(this, -1, _T(" ")), 1, wxGROW );
                sizer->Add( _addCheckBox, 1, wxGROW );
@@ -53,12 +53,12 @@ namespace creaImageIO
 
        wxString WxGimmickTools::getInputDir()
        {
-               return _inputPath->GetLabel();
+               return _inputPath->GetValue();
        }
 
        wxString WxGimmickTools::getOutputDir()
        {
-               return _outputPath->GetLabel();
+               return _outputPath->GetValue();
        }
 
        bool WxGimmickTools::getCheckBoxValue()
@@ -72,10 +72,8 @@ namespace creaImageIO
                wxDirDialog* FD = new wxDirDialog( 0, _T("Select the Input Directory"), _currentDir, style);
                              
                if (FD->ShowModal()==wxID_OK)
-               {
-                         
+               {  
                        _inputPath->SetValue(FD->GetPath());
-
                }
        }