:
frmContactEditorGeopositionADT( parent )
{
+
+ // Setup the window.
+
EditorMode = FALSE;
sliPriority->Disable();
}
void frmContactEditorGeoposition::EnablePriority( wxCommandEvent& event )
{
+ // Enable/Disable the priority setting.
+
if (chkUsePref->IsChecked()){
sliPriority->Enable();
} else {
void frmContactEditorGeoposition::SetEditorMode(bool EditMode, SectionType SectType)
{
+ // Setup the editor mode.
+
// Set the editor mode for adding or editing a timezone.
if (EditMode == FALSE){
intiter = GeopositionListPrefPtr->find(GeopositionListIndex);
- if (intiter->first == GeopositionListIndex && intiter->second > 0){
+ if (intiter->first == GeopositionListIndex && intiter->second > 0 &&
+ intiter != GeopositionListPrefPtr->end()){
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
void frmContactEditorGeoposition::ProcessAction( wxCommandEvent& event )
{
+ // Process action.
+
long ListCtrlIndex;
if (EditorMode == FALSE){
void frmContactEditorGeoposition::CloseWindow( wxCommandEvent& event )
{
+
+ // Close this window.
+
this->Close();
+
}
void frmContactEditorGeoposition::SetupPointers(std::map<int, wxString> *GeopositionList,
std::map<int, wxString> *GeopositionListAltID,
std::map<int, wxString> *GeopositionListPID,
std::map<int, wxString> *GeopositionListType,
+ std::map<int, wxString> *GeopositionListDataType,
std::map<int, wxString> *GeopositionListTokens,
std::map<int, wxString> *GeopositionListMediatype,
std::map<int, int> *GeopositionListPref,
GeopositionListAltIDPtr = GeopositionListAltID;
GeopositionListPIDPtr = GeopositionListPID;
GeopositionListTypePtr = GeopositionListType;
+ GeopositionListDataTypePtr = GeopositionListDataType;
GeopositionListTokensPtr = GeopositionListTokens;
GeopositionListPrefPtr = GeopositionListPref;
GeopositionListCtrlPtr = GeopositionListCtrl;