// frmPreferences.h - Preferences 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 #ifndef __frmPreferences__ #define __frmPreferences__ /** @file Subclass of frmPreferencesADT, which is generated by wxFormBuilder. */ #include "AppXestiaAddrBk.h" #include "common/preferences.h" //// end generated include /** Implementing frmPreferencesADT */ class frmPreferences : public frmPreferencesADT { protected: void LoadPreferences( wxInitDialogEvent& event ); void EnableABButtons( wxListEvent& event ); void DisableABButtons( wxListEvent& event ); void DeleteABAccount( wxCommandEvent& event ); void ModifyABAccount( wxCommandEvent& event ); void ModifyABAccount( wxMouseEvent& event ); void SavePreferences( wxCommandEvent &event ); void AddABAccount( wxCommandEvent &event ); void EnableBackgroundColourPicker( wxCommandEvent &event ); void CloseWindow( wxCommandEvent &event ); private: void ReloadAccounts(); wxImageList *AccImgList = new wxImageList(16,16,true,wxIMAGE_LIST_SMALL); int AccountID = 0; int AccountNetID = 0; int AccountUnsupportedID = 0; XABPreferences *preferences; wxString preffilename; bool FirstLoad = TRUE; bool *ReloadAccountConfig; public: /** Constructor */ frmPreferences( wxWindow* parent ); ~frmPreferences(); void SetupPointers( bool *ReloadAccountInc ); //// end generated class members }; #endif // __frmPreferences__