]> Creatis software - creaImageIO.git/commitdiff
*** empty log message ***
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Thu, 27 Aug 2009 11:58:49 +0000 (11:58 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Thu, 27 Aug 2009 11:58:49 +0000 (11:58 +0000)
src2/creaImageIOWxDescriptorPanel.cpp
src2/creaImageIOWxDescriptorPanel.h
src2/creaImageIOWxGimmickView.cpp

index f37554b50881cfa3cd40ee0efc97eefd2a2117ea..d5bb0f601a01129e782e588b80d60fc4007838a0 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)
 {
 
   
@@ -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,
index 2f95e814be73513e6eed47edc0bb3cf5a8a109f7..626c44d242dadd1f2900c5073c33a357c1382149 100644 (file)
@@ -39,7 +39,7 @@ namespace creaImageIO
   {
   public:
     WxDescriptorPanel();    
-       WxDescriptorPanel(wxWindow *parent);
+       WxDescriptorPanel(wxWindow *parent, const std::string path);
     ~WxDescriptorPanel();
 
        // Get file to load Descriptor
@@ -141,6 +141,9 @@ namespace creaImageIO
        // List of added level
        std::map<int, std::string> lvlist;
 
+       // DB Gimmick path
+       std::string m_path;
+
   }; // class WxDescriptorPanel
   //=====================================================================
 
index 522b0547258f52655e1b3cc96a00118e30b52e21..ed5060d0de73d11de586a3b3457fd6763dc24b26 100644 (file)
@@ -1081,7 +1081,7 @@ namespace creaImageIO
   void WxGimmickView::OnCreateDB(wxCommandEvent& event)
   {
     
-         WxDescriptorPanel * DescriptorPan = new WxDescriptorPanel(this);
+         WxDescriptorPanel * DescriptorPan = new WxDescriptorPanel(this, mGimmick->GetHomeDirectory());
                DescriptorPan->Layout();
                if ( DescriptorPan->ShowModal() == ID_DSCP_APPLY)
                {