+ }
+
+ void WxGimmickView::OnAddDB(wxCommandEvent& event)
+ {
+
+ //Select DB
+ long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST;
+ std::string wc("*.sqlite3*");
+ wxFileDialog* FD = new wxFileDialog( 0,
+ _T("Select file"),
+ _T(""),
+ _T(""),
+ crea::std2wx(wc),
+ style,
+ wxDefaultPosition);
+
+ if (FD->ShowModal()==wxID_OK)
+ {
+ wxBusyCursor busy;
+ wxArrayString files;
+ FD->GetPaths(files);
+ for(int i = 0; i< files.size(); i++)
+ {
+ // gimmick->addDB("remote_" + i.c_str(),files[i]);
+ // AddTreeHandler(gimmick->getTreeHandlerMap("remote_" + i.c_str()));
+ }
+ }
+
+