Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmContactEditorPicture: Implemented priority control
[xestiaab/.git] / source / contacteditor / frmContactEditorPicture.h
index 930a495..e28939d 100644 (file)
@@ -1,3 +1,21 @@
+// frmContactEditorPicture.h - frmContactEditorPicture 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 <http://www.gnu.org/licenses/>
+
 #ifndef __frmContactEditorPicture__
 #define __frmContactEditorPicture__
 
@@ -10,6 +28,7 @@ Subclass of frmContactEditorPictureADT, which is generated by wxFormBuilder.
 #include <string>
 #include "../AppXestiaAddrBk.h"
 #include "../enums.h"
+#include "../widgets/XABPriorityCtrl.h"
 
 //// end generated include
 
@@ -18,7 +37,6 @@ class frmContactEditorPicture : public frmContactEditorPictureADT
 {
        protected:
                // Handlers for frmContactEditorPictureADT events.
-               void EnablePriority( wxCommandEvent& event );
                void ProcessData( wxCommandEvent& event );
                void CloseWindow( wxCommandEvent& event );
        public:
@@ -35,10 +53,12 @@ class frmContactEditorPicture : public frmContactEditorPictureADT
                        std::map<int, wxString> *PictureListMediatype,  
                        std::map<int, int> *PictureListPref,
                        wxListCtrl *PictureListCtrl,
-                       int PictureIndex );
+                       int PictureIndex,
+                       bool PictureLogoIn );
        //// end generated class members
        
-               bool EditorMode;
+               bool EditorMode = FALSE;
+               bool PictureLogo = FALSE;
                std::map<int, std::string> *PictureListPtr;
                std::map<int, wxString> *PictureListAltIDPtr;
                std::map<int, wxString> *PictureListPIDPtr;
@@ -49,9 +69,9 @@ class frmContactEditorPicture : public frmContactEditorPictureADT
                std::map<int, wxString> *PictureListMediatypePtr;               
                std::map<int, int> *PictureListPrefPtr;
                wxListCtrl *PictureListCtrlPtr;
-               int PictureListIndex;
+               int PictureListIndex = 0;
                SectionType EditSectionType;
-       
+               XABPriorityCtrl *priorityCtrl = nullptr;
 };
 
 #endif // __frmContactEditorPicture__
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