// Sets the current directory to the home dir
mCurrentDirectory = std2wx(gimmick->GetHomeDirectory());
+
// Connect the AddProgress callback
gimmick->ConnectAddProgressObserver
( boost::bind( &WxGimmickView::OnAddProgress , this, _1 ) );
if (FD->ShowModal()==wxID_OK)
{
+ time(&mstart);
std::string dirname = wx2std (FD->GetPath());
bool recurse = isNeedRecursive(dirname);
if (recurse)
mess << "Files\tscanned\t: " << p.GetNumberScannedFiles() << "\n";
mess << "Files\thandled\t: " << p.GetNumberHandledFiles() << "\n\n";
mess << "Files\tadded \t: " << p.GetNumberAddedFiles() << "\n\n";
+ time_t end;
+ time(&end);
+ mess << "time to scan :" << difftime(end,mstart) << "sec";
wxMessageBox(std2wx(mess.str()),_T("Addition result"),wxOK,this);
}