]> Creatis software - bbtk.git/commitdiff
more std2wx
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 26 Mar 2008 15:03:51 +0000 (15:03 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 26 Mar 2008 15:03:51 +0000 (15:03 +0000)
kernel/src/bbtkWxGUITextEditor.cxx

index 95901c4868fc6987f829983884f312a789ca7817..26116ff62e36b45d22f66afd5ecd80cc40f06789 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUITextEditor.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/03/26 14:57:01 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/03/26 15:03:51 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -450,7 +450,7 @@ namespace bbtk
     if (mwxNotebook->GetPageCount()==0) return;  
     GetCurrentPage()->Save(mFileNameFilter);
     mwxNotebook->SetPageText(mwxNotebook->GetSelection(),
-                            GetCurrentPage()->GetPageName());
+                            std2wx(GetCurrentPage()->GetPageName()));
   }
   //================================================================  
 
@@ -584,14 +584,15 @@ namespace bbtk
     //      pos+1,
     //      (long)mwxInputText->GetValue().length())+1;
     
-    mwxPosition->SetLabel(wxString(mess));
+   // mwxPosition->SetLabel(wxString(mess));
+    mwxPosition->SetLabel(std2wx(mess));    
     mwxPosition->Show();
     
     if (text->IsModified()) 
       {
        std::string title("*");
        title += GetCurrentPage()->GetPageName();
-       mwxNotebook->SetPageText(mwxNotebook->GetSelection(),title);
+       mwxNotebook->SetPageText(mwxNotebook->GetSelection(),std2wx(title));
       }
   }
   //================================================================