AccCtrl->SetPopupMinWidth(250);
treAccounts->AssignImageList(AccImgList);
//bmpIcon->Hide();
- wxRect AccTextCtrlSize = AccCtrl->GetTextRect();
/*wxStaticBitmap* BeepBoop = new wxStaticBitmap(AccCtrl, wxID_ANY, wxNullBitmap, wxPoint(AccTextCtrlSize.GetX() + 3, AccTextCtrlSize.GetY() + 2), wxDefaultSize, 0);
// wxCommandEvent Accepts a referenced event command.
//-------------------------------------------------------------------
- Close(this);
+ Close();
}
if (ActiveItemIcon == 2){
std::multimap<wxTreeItemId, int>::iterator AGTiter = AccountGroupTreeId.find(ActiveItemId);
- std::multimap<int, wxString>::iterator AGFiter = AccountGroupFilename.find(AGTiter->second);
std::multimap<int, int>::iterator AGLiter = AccountGroupList.find(AGTiter->second);
int ActiveAccountG = AGLiter->second;
{
long intSelected = -1;
- int intSelectedData = 0;
long ContactSeekNum = -1;
// intSelected = lstContacts->GetSelection();
wxString ContactLine;
vCard Person;
- int ContactLineLen;
+ size_t ContactLineLen;
bool ExtraLineSeek = FALSE;
- int QuoteBreakPoint;
+ int QuoteBreakPoint = 0;
bool PropertyFind = FALSE;
bool QuoteMode = FALSE;
// Check if a contact has been selected.
long intSelected = -1;
- int intSelectedData = 0;
long intContactSeekNum = -1;
// intSelected = lstContacts->GetSelection();
wxString nextchar;
long intSelected = -1;
- int intSelectedData = 0;
long intContactSeekNum = -1;
intSelected = lstContacts->GetNextItem(intSelected,
wxString nextchar;
//std::fstream vcardfile;
- long intSelected = -1;
- int intSelectedData = 0;
- long intContactSeekNum = -1;
-
Person.LoadFile(uc->ContactFilename);
wxMemoryInputStream istream(bigimgs_contactpersonicon48_png, sizeof(bigimgs_contactpersonicon48_png));
ActTmrPtr->SetupData(AccDirFull, AccName);
ActTmrPtr->SetupPointers(this, ActMgrPtr, ETagProcTimer.GetPointer(AccDirFull));
- ActTmrPtr->Start(preferences.accounts.GetAccountRefresh(i) * 1000);
+ ActTmrPtr->Start((int)(preferences.accounts.GetAccountRefresh(i) * 1000));
ActTmrPtr->SetOwner(this);
ActTmrPtr->Notify();
}
- intSelectedData = lstContacts->GetItemData(longSelected);
+ intSelectedData = (int)lstContacts->GetItemData(longSelected);
if (ucd->ContactFilename == ContactsFileIndex[intSelectedData]){
}
- intSelectedData = lstContacts->GetItemData(longSelected);
+ intSelectedData = (int)lstContacts->GetItemData(longSelected);
// Compare the filename with the one received.
// If they match then select it.
// Check if a contact is selected.
long intSelected = -1;
- int intSelectedData = 0;
long intContactSeekNum = -1;
wxString wxSContactName;
int QResponse = wxMessageBox(_("The list of contacts on the server is empty. Upload all locally stored contacts for this account now?"), _("No contacts on server"), wxYES_NO, this);
+ if (QResponse == wxNO){
+
+ return;
+
+ }
+
wxCommandEvent event2(ACTMGR_RESUMEPROC);
event2.SetInt(*qrn->QResponse);
event2.SetClientData(qrn->PausePtr);
}
- intSelectedData = lstContacts->GetItemData(longSelected);
+ intSelectedData = (int)lstContacts->GetItemData(longSelected);
// Compare the filename with the one received.
// If they match then select it.
if (WData->DataType == 0){
- // Contact Window
-
- int intID = mnuContactWindows->GetId();
-
// Get the window title and use that.
frmContact *frmContactPtr = static_cast<frmContact*>(WData->WindowPointer);
} else if (WData->DataType == 1){
- // Contact Editor Window
-
- int intID = mnuContactEditorWindows->GetId();
-
// Get the window title and use that.
frmContactEditor *frmCEPtr = static_cast<frmContactEditor*>(WData->WindowPointer);
}
- int FileID = lstContacts->GetItemData(longSelected);
+ int FileID = (int)lstContacts->GetItemData(longSelected);
ArrData.Insert(ContactsFileIndex[FileID],
ContactsCollected, 1);
// Get the file information and add to the list.
- int FileID = lstContacts->GetItemData(longSelected);
+ int FileID = (int)lstContacts->GetItemData(longSelected);
ArrData->Insert(ContactsFileIndex[FileID],
ContactsCollected, 1);