Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmContactEditorKey: Implemented priority control
[xestiaab/.git] / source / contacteditor / frmContactEditorKey.h
1 // frmContactEditorKey.h - frmContactEditorKey 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 __frmContactEditorKey__
20 #define __frmContactEditorKey__
22 /**
23 @file
24 Subclass of frmContactEditorKeyADT, which is generated by wxFormBuilder.
25 */
27 #include <map>
28 #include "../AppXestiaAddrBk.h"
29 #include "../enums.h"
30 #include "../widgets/XABPriorityCtrl.h"
32 //// end generated include
34 /** Implementing frmContactEditorKeyADT */
35 class frmContactEditorKey : public frmContactEditorKeyADT
36 {
37         protected:
38                 // Handlers for frmContactEditorKeyADT events.
39                 void ProcessAction( wxCommandEvent& event );
40                 void CloseWindow( wxCommandEvent& event );
41                 void ProcessKeyType( wxCommandEvent& event );
42                 void ProcessKeyType();          
43                 void ConvertURLType( wxCommandEvent& event );
44                 void ConvertKeyType( wxCommandEvent& event );           
45         public:
46                 /** Constructor */
47                 frmContactEditorKey( wxWindow* parent );
48                 void SetEditorMode(bool EditMode);              
49                 void SetupPointers(std::map<int, wxString> *KeyList,
50                         std::map<int, wxString> *KeyListAltID,
51                         std::map<int, wxString> *KeyListPID,
52                         std::map<int, bool>     *KeyListKeyType,                        
53                         std::map<int, wxString> *KeyListDataType,                       
54                         std::map<int, wxString> *KeyListType,
55                         std::map<int, wxString> *KeyListTokens,
56                         std::map<int, int> *KeyListPref,
57                         wxListCtrl *KeyListCtrl,
58                         int KeyIndex );                 
59         //// end generated class members
60         
61                 bool EditorMode;
62                 std::map<int, wxString> *KeyListPtr;
63                 std::map<int, wxString> *KeyListAltIDPtr;
64                 std::map<int, wxString> *KeyListPIDPtr;
65                 std::map<int, bool>     *KeyListKeyTypePtr;
66                 std::map<int, wxString> *KeyListDataTypePtr;            
67                 std::map<int, wxString> *KeyListTypePtr;
68                 std::map<int, wxString> *KeyListTokensPtr;
69                 std::map<int, int> *KeyListPrefPtr;
70                 wxListCtrl *KeyListCtrlPtr;
71                 int KeyListIndex;
72                 SectionType EditSectionType;
73                 XABPriorityCtrl *priorityCtrl = nullptr;
74 };
76 #endif // __frmContactEditorKey__
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