// frmContactEditorAddress.h - frmContactEditorAddress form header. // // (c) 2012-2015 Xestia Software Development. // // This file is part of Xestia Address Book. // // Xestia Address Book is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by the // Free Software Foundation, version 3 of the license. // // Xestia Address Book is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with Xestia Address Book. If not, see #ifndef __frmContactEditorAddress__ #define __frmContactEditorAddress__ #include /** @file Subclass of frmContactEditorAddressADT, which is generated by wxFormBuilder. */ #include "../AppXestiaAddrBk.h" //// end generated include #include "../enums.h" /** Implementing frmContactEditorAddressADT */ class frmContactEditorAddress : public frmContactEditorAddressADT { protected: // Handlers for frmContactEditorAddressADT events. void InitAddressEditor( wxInitDialogEvent& event ); void EnablePriority( wxCommandEvent& event ); void ProcessData( wxCommandEvent& event ); void CopyAddress( wxCommandEvent& event ); void CloseWindow( wxCommandEvent& event ); public: /** Constructor */ frmContactEditorAddress( wxWindow* parent ); void SetEditorMode(bool EditMode, SectionType SectType); void SetupPointers( std::map *AddressList, std::map *AddressListTown, std::map *AddressListCounty, std::map *AddressListPostCode, std::map *AddressListCountry, std::map *AddressListLabel, std::map *AddressListLang, std::map *AddressListAltID, std::map *AddressListPID, std::map *AddressListTokens, std::map *AddressListGeo, std::map *AddressListTimezone, std::map *AddressListType, std::map *AddressListMediatype, std::map *AddressListPref, wxListCtrl *AddressListCtrl, int AddressIndex ); private: bool EditorMode; std::map *AddressListPtr; std::map *AddressListTownPtr; std::map *AddressListCountyPtr; std::map *AddressListPostCodePtr; std::map *AddressListCountryPtr; std::map *AddressListLabelPtr; std::map *AddressListLangPtr; std::map *AddressListAltIDPtr; std::map *AddressListPIDPtr; std::map *AddressListTokensPtr; std::map *AddressListGeoPtr; std::map *AddressListTimezonePtr; std::map *AddressListTypePtr; std::map *AddressListMediatypePtr; std::map *AddressListPrefPtr; wxListCtrl *AddressListCtrlPtr; int AddressListIndex; SectionType EditSectionType; //// end generated class members }; #endif // __frmContactEditorAddress__