Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmContactEditorAddress: Implemented priority control
[xestiaab/.git] / source / contacteditor / frmContactEditorAddress.h
1 // frmContactEditorAddress.h - frmContactEditorAddress form header.
2 //
3 // (c) 2012-2015 Xestia Software Development.
4 //
5 // This file is part of Xestia Address Book.
6 //
7 // Xestia Address Book is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
10 //
11 // Xestia Address Book is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
19 #ifndef __frmContactEditorAddress__
20 #define __frmContactEditorAddress__
22 #include <map>
24 /**
25 @file
26 Subclass of frmContactEditorAddressADT, which is generated by wxFormBuilder.
27 */
29 #include "../AppXestiaAddrBk.h"
31 //// end generated include
33 #include "../enums.h"
34 #include "../widgets/XABPriorityCtrl.h"
36 /** Implementing frmContactEditorAddressADT */
37 class frmContactEditorAddress : public frmContactEditorAddressADT
38 {
39         protected:
40                 // Handlers for frmContactEditorAddressADT events.
41                 void InitAddressEditor( wxInitDialogEvent& event );
42                 void ProcessData( wxCommandEvent& event );
43                 void CopyAddress( wxCommandEvent& event );              
44                 void CloseWindow( wxCommandEvent& event );
45         public:
46                 /** Constructor */
47                 frmContactEditorAddress( wxWindow* parent );
48                 void SetEditorMode(bool EditMode, SectionType SectType);
49                 void SetupPointers( std::map<int, wxString> *AddressList,
50                         std::map<int, wxString> *AddressListTown,
51                         std::map<int, wxString> *AddressListCounty,
52                         std::map<int, wxString> *AddressListPostCode,
53                         std::map<int, wxString> *AddressListCountry,
54                         std::map<int, wxString> *AddressListLabel,
55                         std::map<int, wxString> *AddressListLang,               
56                         std::map<int, wxString> *AddressListAltID,
57                         std::map<int, wxString> *AddressListPID,
58                         std::map<int, wxString> *AddressListTokens,
59                         std::map<int, wxString> *AddressListGeo,
60                         std::map<int, wxString> *AddressListTimezone,
61                         std::map<int, wxString> *AddressListType,
62                         std::map<int, wxString> *AddressListMediatype,
63                         std::map<int, int> *AddressListPref,
64                         wxListCtrl *AddressListCtrl,
65                         int AddressIndex );
66                 
67         private:
68                 bool EditorMode;
69                 std::map<int, wxString> *AddressListPtr;
70                 std::map<int, wxString> *AddressListTownPtr;
71                 std::map<int, wxString> *AddressListCountyPtr;
72                 std::map<int, wxString> *AddressListPostCodePtr;
73                 std::map<int, wxString> *AddressListCountryPtr;
74                 std::map<int, wxString> *AddressListLabelPtr;
75                 std::map<int, wxString> *AddressListLangPtr;            
76                 std::map<int, wxString> *AddressListAltIDPtr;
77                 std::map<int, wxString> *AddressListPIDPtr;
78                 std::map<int, wxString> *AddressListTokensPtr;
79                 std::map<int, wxString> *AddressListGeoPtr;
80                 std::map<int, wxString> *AddressListTimezonePtr;
81                 std::map<int, wxString> *AddressListTypePtr;
82                 std::map<int, wxString> *AddressListMediatypePtr;
83                 std::map<int, int> *AddressListPrefPtr;
84                 wxListCtrl *AddressListCtrlPtr;
85                 int AddressListIndex;
86                 SectionType EditSectionType;
87                 XABPriorityCtrl *priorityCtrl = nullptr;
88         //// end generated class members
89         
90 };
92 #endif // __frmContactEditorAddress__
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy