wxMemoryInputStream cstream(icons_accunsupported_png, sizeof(icons_accunsupported_png));
wxImage icons_acclocal_png(bstream, wxBITMAP_TYPE_PNG);
wxMemoryInputStream cstream(icons_accunsupported_png, sizeof(icons_accunsupported_png));
wxImage icons_acclocal_png(bstream, wxBITMAP_TYPE_PNG);
// Setup the preferences filename string. Default is the
// *nix systems one (/home/$USER/.xestiacal/preferences)
// Setup the preferences filename string. Default is the
// *nix systems one (/home/$USER/.xestiacal/preferences)
- bool SaveWindowPos = preferences->GetBoolData(wxT("SaveWindowPosition"));
- bool HideLocalABs = preferences->GetBoolData(wxT("HideLocalCalendars"));
+ bool saveWindowPos = preferences->GetBoolData(wxT("SaveWindowPosition"));
+ bool hideLocalABs = preferences->GetBoolData(wxT("HideLocalCalendars"));
}
wxListItem accountscol0, accountscol1, accountscol2, accountscol3;
}
wxListItem accountscol0, accountscol1, accountscol2, accountscol3;
accountscol0.SetId(0);
accountscol0.SetWidth(24);
lstAccounts->InsertColumn(0,accountscol0);
accountscol0.SetId(0);
accountscol0.SetWidth(24);
lstAccounts->InsertColumn(0,accountscol0);
accountscol2.SetWidth(96);
lstAccounts->InsertColumn(2,accountscol2);
accountscol2.SetWidth(96);
lstAccounts->InsertColumn(2,accountscol2);
wxMessageBox(_("Cannot modify the selected account settings as the account type is unsupported."), _("Unsupported account type"), wxICON_ERROR);
return;
}
wxMessageBox(_("Cannot modify the selected account settings as the account type is unsupported."), _("Unsupported account type"), wxICON_ERROR);
return;
}
- bool ContinueAcc = TRUE;
- wxString AccountDir;
- wxString AccountType;
- wxString AccountDirFull;
- wxString AccountDirDelFull;
- wxString AccountName;
- wxString AccName;
- long itemindex = 0;
+ bool continueAcc = TRUE;
+ wxString accountDir;
+ wxString accountType;
+ wxString accountDirFull;
+ wxString accountDirDelFull;
+ wxString accountName;
+ wxString accName;
+ long itemIndex = 0;
- cfgfile->Read("accountdir", &AccountDir);
- cfgfile->Read("type", &AccountType);
+ cfgFile->Read("accountdir", &accountDir);
+ cfgFile->Read("type", &accountType);
- cfgfile->SetPath(wxT("/"));
- ContinueAcc = cfgfile->GetNextGroup(AccountName, itemindex);
+ cfgFile->SetPath(wxT("/"));
+ continueAcc = cfgFile->GetNextGroup(accountName, itemIndex);
- AccountDirDelFull.Append(wxString::FromUTF8(getenv("HOME")));
- AccountDirDelFull.Append(wxT("/.xestiacal/accounts/"));
- AccountDirDelFull.Append(AccountDirFull);
+ accountDirDelFull.Append(wxString::FromUTF8(getenv("HOME")));
+ accountDirDelFull.Append(wxT("/.xestiacal/accounts/"));
+ accountDirDelFull.Append(accountDirFull);
- cfgfile->DeleteEntry(wxT("SaveWindowPosition"));
- cfgfile->DeleteEntry(wxT("WindowPositionX"));
- cfgfile->DeleteEntry(wxT("WindowPositionY"));
- cfgfile->DeleteEntry(wxT("WindowPositionHeight"));
- cfgfile->DeleteEntry(wxT("WindowPositionWidth"));
+ cfgFile->DeleteEntry(wxT("SaveWindowPosition"));
+ cfgFile->DeleteEntry(wxT("WindowPositionX"));
+ cfgFile->DeleteEntry(wxT("WindowPositionY"));
+ cfgFile->DeleteEntry(wxT("WindowPositionHeight"));
+ cfgFile->DeleteEntry(wxT("WindowPositionWidth"));
- cfgfile->Write(wxT("WindowPositionX"), frmMainPos.GetX());
- cfgfile->Write(wxT("WindowPositionY"), frmMainPos.GetY());
- cfgfile->Write(wxT("WindowPositionHeight"), frmMainPos.GetHeight());
- cfgfile->Write(wxT("WindowPositionWidth"), frmMainPos.GetWidth());
+ cfgFile->Write(wxT("WindowPositionX"), frmMainPos.GetX());
+ cfgFile->Write(wxT("WindowPositionY"), frmMainPos.GetY());
+ cfgFile->Write(wxT("WindowPositionHeight"), frmMainPos.GetHeight());
+ cfgFile->Write(wxT("WindowPositionWidth"), frmMainPos.GetWidth());
- cfgfile->Write(wxT("HideLocalCalendars"), wxT("true"));
- *ReloadAccountConfig = TRUE;
+ cfgFile->Write(wxT("HideLocalCalendars"), wxT("true"));
+ *reloadAccountConfig = TRUE;
- cfgfile->Write(wxT("HideLocalCalendars"), wxT("false"));
- *ReloadAccountConfig = TRUE;
+ cfgFile->Write(wxT("HideLocalCalendars"), wxT("false"));
+ *reloadAccountConfig = TRUE;