{
// 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)
{
std::string wc("*.dscp");
wxFileDialog* FD = new wxFileDialog( 0,
_T("Select file"),
- _T(""),
+ crea::std2wx(m_path),
_T(""),
crea::std2wx(wc),
style,
{
public:
WxDescriptorPanel();
- WxDescriptorPanel(wxWindow *parent);
+ WxDescriptorPanel(wxWindow *parent, const std::string path);
~WxDescriptorPanel();
// Get file to load Descriptor
// List of added level
std::map<int, std::string> lvlist;
+ // DB Gimmick path
+ std::string m_path;
+
}; // class WxDescriptorPanel
//=====================================================================
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)
{