:
frmContactEditorRolesADT( parent )
{
+
+ // Setup the window.
+
EditorMode = FALSE;
sliPriority->Disable();
}
void frmContactEditorRoles::EnablePriority( wxCommandEvent& event )
{
+
+ // Enable/disable the priority setting.
+
if (chkUsePref->IsChecked()){
sliPriority->Enable();
} else {
sliPriority->Disable();
}
+
}
void frmContactEditorRoles::ProcessAction( wxCommandEvent& event )
{
+
+ // Process action.
+
// Set if the editor is adding or editing an address.
// FALSE = Add
// TRUE = Edit
void frmContactEditorRoles::SetEditorMode(bool EditMode, SectionType SectType)
{
+
+ // Set the editor mode.
+
// Set if the editor is adding or editing an address.
// FALSE = Add
// TRUE = Edit
void frmContactEditorRoles::CloseWindow( wxCommandEvent& event )
{
+
+ // Close this window.
+
this->Close();
+
}
void frmContactEditorRoles::SetupPointers(std::map<int, wxString> *RolesList,
int RolesIndex )
{
+ // Setup the pointers.
+
RolesListPtr = RolesList;
RolesListLanguagePtr = RolesListLanguage;
RolesListAltIDPtr = RolesListAltID;