1 // frmPreferences.h - frmPreferences form functions header
3 // (c) 2016-2017 Xestia Software Development.
5 // This file is part of Xestia Calendar.
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.
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.
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__
24 Subclass of frmPreferencesADT, which is generated by wxFormBuilder.
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"
41 //// end generated include
43 /** Implementing frmPreferencesADT */
44 class frmPreferences : public frmPreferencesADT
47 void ReloadAccounts();
48 wxImageList *accImgList = new wxImageList(16,16,true,wxIMAGE_LIST_SMALL);
51 int accountUnsupportedID = 0;
52 XCALPreferences *preferences;
53 wxString prefFilename;
54 bool firstLoad = TRUE;
55 bool *reloadAccountConfig;
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 );
68 frmPreferences( wxWindow* parent );
70 void SetupPointers( bool *reloadAccountInc );
71 //// end generated class members
75 #endif // __frmPreferences__