]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxDescriptorPanel.cpp
fix _T(...
[creaImageIO.git] / src2 / creaImageIOWxDescriptorPanel.cpp
index f37554b50881cfa3cd40ee0efc97eefd2a2117ea..4b826e91549eff59f91ffa8d12123a823990bc4c 100644 (file)
@@ -8,8 +8,8 @@ namespace creaImageIO
 {
   // CTor
                   
-WxDescriptorPanel::WxDescriptorPanel(wxWindow *parent)
-  : wxDialog(parent, -1,_T("Descriptor Creation"), wxDefaultPosition, wxSize(550,550))
+       WxDescriptorPanel::WxDescriptorPanel(wxWindow *parent, const std::string path)
+               : wxDialog(parent, -1,_T("Descriptor Creation"), wxDefaultPosition, wxSize(550,550)) , m_path(path)
 {
 
   
@@ -50,7 +50,7 @@ WxDescriptorPanel::WxDescriptorPanel(wxWindow *parent)
 
        
        wxString choices[3];
-       choices[0] = "Unknow Attribute";
+       choices[0] = _T("Unknow Attribute");
        std::map<std::string, std::string>::iterator it_att =ownatt.begin();
        for(int i = 1; it_att != ownatt.end(); it_att++, i++)
        {
@@ -553,7 +553,7 @@ WxDescriptorPanel::WxDescriptorPanel(wxWindow *parent)
           std::string wc("*.dscp");
           wxFileDialog* FD = new wxFileDialog( 0, 
                                         _T("Select file"),
-                                        _T(""),
+                                        crea::std2wx(m_path),
                                         _T(""),
                                         crea::std2wx(wc),
                                         style,