]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOWxSimpleDlg.cpp
std::string vs wxString
[creaImageIO.git] / src / creaImageIOWxSimpleDlg.cpp
index 4a343719f32c0a6d827918cc71a2a6cb0f0792de..5bc3cd7a38195423fc05319efbdc84d1a2d127b9 100644 (file)
@@ -1,12 +1,11 @@
 #include "creaImageIOWxSimpleDlg.h"
 #include "creaImageIOWxGimmickReaderDialog.h"
 
-
 namespace creaImageIO
 {
 
        ///Ctor
-        WxSimpleDlg::WxSimpleDlg(wxWindow *parent, wxString i_title)
+   WxSimpleDlg::WxSimpleDlg(wxWindow *parent, wxString i_title)
     : wxDialog(parent, -1,_T("DISPLAY IMAGES"), wxDefaultPosition, wxSize(230,150))
    {
           if(!i_title.empty())
@@ -25,13 +24,13 @@ namespace creaImageIO
           wxButton *gimmickBut = new wxButton(this, -1,_T("Select Gimmick"), wxPoint(10,70) );
           Connect( gimmickBut->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxSimpleDlg::OnReadGimmick ); 
 
-          //TO DO  Button to select Bruker directory
+          /// \TODO  Button to select Bruker directory
        
        Layout(); 
        
        }
 //////////////////////////////////////////////////////////////////////
-//                                                                                                                                     //
+//                                                                  //
 //////////////////////////////////////////////////////////////////////
          void WxSimpleDlg::OnReadFile(wxCommandEvent& event)
          {
@@ -68,7 +67,7 @@ namespace creaImageIO
          void WxSimpleDlg::OnReadDirectory(wxCommandEvent &event)
          {
             long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST;
-                wxDirDialog* FD = new wxDirDialog( 0, _T("Select the directory to display"), "", style);
+                wxDirDialog* FD = new wxDirDialog( 0, _T("Select the directory to display"), _T(""), style);
                 
                 if (FD->ShowModal()==wxID_OK)
                 {  
@@ -104,7 +103,6 @@ namespace creaImageIO
                 Close();
           }
 
-
  //////////////////////////////////////////////////////////////////////
 // Return the results vector                                                                           //
 //////////////////////////////////////////////////////////////////////