DEFINE_EVENT_TYPE(SE_SEARCHFINISHED);
DEFINE_EVENT_TYPE(SE_UPDATERESULT);
DEFINE_EVENT_TYPE(SE_DELETERESULT);
+DEFINE_EVENT_TYPE(SE_OPENCONTACT);
+DEFINE_EVENT_TYPE(SE_EDITCONTACT);
+DEFINE_EVENT_TYPE(SE_REVEALCONTACT);
BEGIN_EVENT_TABLE(frmSearch, wxFrame)
EVT_COMMAND(wxID_ANY, SE_ADDSEARCHSETTING, frmSearch::AddSearchSetting)
EVT_COMMAND(wxID_ANY, SE_SEARCHFINISHED, frmSearch::SearchFinished)
EVT_COMMAND(wxID_ANY, SE_UPDATERESULT, frmSearch::UpdateResult)
EVT_COMMAND(wxID_ANY, SE_DELETERESULT, frmSearch::DeleteResult)
+ EVT_COMMAND(wxID_ANY, SE_OPENCONTACT, frmSearch::OpenContact)
+ EVT_COMMAND(wxID_ANY, SE_EDITCONTACT, frmSearch::EditContact)
+ EVT_COMMAND(wxID_ANY, SE_REVEALCONTACT, frmSearch::RevealContact)
END_EVENT_TABLE()
//namespace boostfs = boost::filesystem;
vCardFilenameFull.Append(AccountDir);
vCardFilenameFull.Append(vCardFilename);
-
Person.LoadFile(vCardFilenameFull);
-
- /*if (boostfs::path(vcarddir_iter->path()).extension() == ".vcf" ||
- boostfs::path(vcarddir_iter->path()).extension() == ".VCF" ||
- boostfs::path(vcarddir_iter->path()).extension() == ".vcard" ||
- boostfs::path(vcarddir_iter->path()).extension() == ".VCARD"){*/
vcardfilenamewxs = vCardFilenameFull;
-
- /*vCard Person;
- std::fstream vcardfile;
-
- vcardfilename = boostfs::path(vcarddir_iter->path()).filename();
- vcardfilenamewxs.Append(AccountDir);
- vcardfilenamewxs.Append(wxString::FromUTF8(vcardfilename.c_str()));
-
- // Open the vCard file up and get the setting names and values from the
- // file.
-
- vcardfile.open(vcardfilenamewxs.mb_str(), std::ios::in);
-
- while(getline(vcardfile, l)){
-
- lwxs.Clear();
- setname.Clear();
- setvalue.Clear();
- lwxs.Append(wxString::FromUTF8(l.c_str()));
- vcardfileline.SetString(lwxs, wxT(":"));
- setname = vcardfileline.GetNextToken();
- setvalue = vcardfileline.GetString();
-
- Person.Add(setname, setvalue, TRUE);
-
- }
-
- vcardfile.close();*/
// Check if file has version 4.0, first name (FN)
// begin and end vCard portions.
}
+}
+
+void frmSearch::ShowContactMenu( wxMouseEvent& event ){
+
+ ContactMenu->SetupPointers(this, lstResults);
+
+ PopupMenu(ContactMenu->MenuPointer(), wxDefaultPosition);
+
}
\ No newline at end of file