Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Spacing clear up
[xestiacalendar/.git] / source / forms / preferences / frmPreferences.h
1 // frmPreferences.h - frmPreferences form functions header
2 //
3 // (c) 2016-2017 Xestia Software Development.
4 //
5 // This file is part of Xestia Calendar.
6 //
7 // Xestia Calendar 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 Calendar 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 Calendar. If not, see <http://www.gnu.org/licenses/>
19 #ifndef __frmPreferences__
20 #define __frmPreferences__
22 /**
23 @file
24 Subclass of frmPreferencesADT, which is generated by wxFormBuilder.
25 */
27 #include <wx/wx.h>
28 #include <wx/mstream.h>
29 #include <wx/dialog.h>
30 #include <wx/msgdlg.h>
31 #include <wx/fileconf.h>
33 #include "../../AppXestiaCalendar.h"
34 #include "../../bitmaps.h"
35 #include "../main/frmMain.h"
36 #include "../editaccount/frmEditAccount.h"
38 #include "preferences.h"
39 #include "dirs.h"
41 //// end generated include
43 /** Implementing frmPreferencesADT */
44 class frmPreferences : public frmPreferencesADT
45 {
46         private:
47                 void ReloadAccounts();
48                 wxImageList *accImgList =  new wxImageList(16,16,true,wxIMAGE_LIST_SMALL);
49                 int accountID = 0;
50                 int accountNetID = 0;
51                 int accountUnsupportedID = 0;
52                 XCALPreferences *preferences;
53                 wxString prefFilename;
54                 bool firstLoad = TRUE;
55                 bool *reloadAccountConfig;
56         protected:
57                 // Handlers for frmPreferencesADT events.
58                 void LoadPreferences( wxInitDialogEvent& event );
59                 void DisableButtons( wxListEvent& event );
60                 void EnableButtons( wxListEvent& event );
61                 void AddAccount( wxCommandEvent& event );
62                 void ModifyAccount( wxCommandEvent& event );
63                 void DeleteAccount( wxCommandEvent& event );
64                 void SavePreferences( wxCommandEvent& event );
65                 void CloseWindow( wxCommandEvent& event );
66         public:
67                 /** Constructor */
68                 frmPreferences( wxWindow* parent );
69                 ~frmPreferences();
70                 void SetupPointers( bool *reloadAccountInc );
71         //// end generated class members
72         
73 };
75 #endif // __frmPreferences__
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