1 /******************************************************* 2 Copyright (C) 2014 Stefano Giorgio 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 ********************************************************/ 18 19 #pragma once 20 21 #include "mmOptionBaseSettings.h" 22 23 class mmOptionViewSettings : public mmOptionSettingsBase 24 { 25 wxDECLARE_EVENT_TABLE(); 26 27 public: 28 mmOptionViewSettings(); 29 30 mmOptionViewSettings(wxWindow *parent 31 , wxWindowID id = wxID_ANY 32 , const wxPoint &pos = wxDefaultPosition 33 , const wxSize &size = wxDefaultSize 34 , long style = wxTAB_TRAVERSAL 35 , const wxString &name = wxPanelNameStr); 36 37 ~mmOptionViewSettings(); 38 39 public: 40 virtual void SaveSettings(); 41 42 private: 43 void Create(); 44 45 wxArrayString viewAccountStrings(bool translated, const wxString& input_string, int& row_id); 46 void OnNavTreeColorChanged(wxCommandEvent& event); 47 48 private: 49 /// Colour Buttons. 50 wxButton* m_UDFCB1; 51 wxButton* m_UDFCB2; 52 wxButton* m_UDFCB3; 53 wxButton* m_UDFCB4; 54 wxButton* m_UDFCB5; 55 wxButton* m_UDFCB6; 56 wxButton* m_UDFCB7; 57 58 wxChoice* m_choice_visible; 59 wxChoice* m_choice_trans_visible; 60 wxChoice* m_choice_font_size; 61 62 wxCheckBox* m_budget_financial_years; 63 wxCheckBox* m_budget_include_transfers; 64 wxCheckBox* m_budget_setup_without_summary; 65 wxCheckBox* m_budget_summary_without_category; 66 wxCheckBox* m_ignore_future_transactions; 67 68 wxCheckBox* m_display_internet_news; 69 70 enum 71 { 72 ID_DIALOG_OPTIONS_VIEW_ACCOUNTS = wxID_HIGHEST + 10 73 }; 74 }; 75