// Add Notebook page
mNotebook->AddPage( view, crea::std2wx(name) );
-
+
}
//======================================================================
wxPD_CAN_ABORT );
// TO DO : select the current tree handler
- mGimmick->AddFiles("Local database",filenames);
+ mGimmick->AddFiles(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),filenames);
mProgressDialog->Pulse(_T("Updating view..."));
- UpdateTreeViewLevel("Local database",1);
+ UpdateTreeViewLevel(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),1);
delete mProgressDialog;
DisplayAddSummary();
void WxGimmickView::OnAddDir(wxCommandEvent& event)
{
mViewer->StopPlayer();
+ std::string name = crea::wx2std(mNotebook->GetCurrentPage()->GetName());
long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST;
wxDirDialog* FD =
new wxDirDialog( 0,
wxPD_CAN_ABORT );
mCurrentDirectory = FD->GetPath();
-
- // TO DO : select the current tree handler
- mGimmick->AddDir("Local database",dirname,recurse);
-
+ mGimmick->AddDir(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),dirname,recurse);
mProgressDialog->Pulse(_T("Updating view..."));
- UpdateTreeViewLevel("Local database",1);
+ UpdateTreeViewLevel(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),1);
delete mProgressDialog;
DisplayAddSummary();