X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmContact.cpp;h=d02be950d9b3802ab03fce61c7f11c8f2c21d709;hb=ab548c295ead1a577de99d205f3119ffc5a2272c;hp=a94c87656553cea46933c5d9b527b9b27829188e;hpb=8d1a72aa472b0930d2204dad74cc6db9f39ffb44;p=xestiaab%2F.git diff --git a/source/frmContact.cpp b/source/frmContact.cpp index a94c876..d02be95 100644 --- a/source/frmContact.cpp +++ b/source/frmContact.cpp @@ -39,6 +39,8 @@ void frmContact::CloseWindowProcessing(){ void frmContact::CloseWindow( wxCommandEvent& event ){ + // Close this window. + this->Close(); } @@ -50,6 +52,9 @@ void frmContact::CloseWindow( wxCloseEvent& event ){ wxFileSystem::AddHandler(new wxMemoryFSHandler); + // Check if frmContact is the main window, if not + // then do some clear up. + if (StartupMode == false){ if (MemoryFSListPtr->find(SessionID) == MemoryFSListPtr->end()){ @@ -95,6 +100,8 @@ void frmContact::CloseWindow( wxCloseEvent& event ){ bool frmContact::SetupContactData(vCard *vCardObj){ + // Setup the contact information. + wxFileSystem::AddHandler(new wxMemoryFSHandler); for (std::map::iterator striter = MemoryFSListPtr->begin(); @@ -114,7 +121,7 @@ bool frmContact::SetupContactData(vCard *vCardObj){ OldSessionID = SessionID; SessionID = wxString::Format(wxT("%i"), rand() % 32768); - LoadContactData(vCardObj, htmContactData, SessionID, OldSessionID, MemoryFSListPtr); + LoadContactData(vCardObj, htmContactData, SessionID, OldSessionID, MemoryFSListPtr, backgroundColour); ArrayvCardOutData FNList; FNList = vCardObj->GetByPartial(wxT("FN")); @@ -144,24 +151,40 @@ bool frmContact::SetupContactData(vCard *vCardObj){ void frmContact::SetMode(bool StartupModeIn){ + // Set the mode which frmContact will be operating. + StartupMode = StartupModeIn; } void frmContact::SetupPointers(std::map *MemoryFSListIncPtr){ + // Set the pointer for the Memory Filesystem map. + MemoryFSListPtr = MemoryFSListIncPtr; } void frmContact::SetUID(int UID){ + // Set the UID of the contact window. + ContactUID = UID; } wxString frmContact::GetFilename(){ + // Get the filename of the contact being displayed. + return vCardFilename; +} + +void frmContact::SetBackgroundColour(wxString backgroundColour){ + + // Set the background colour. + + this->backgroundColour = backgroundColour; + } \ No newline at end of file