source: trunk/src/settings_dialog.h @ 163

Last change on this file since 163 was 163, checked in by guyru, 5 years ago

remove old settings dialog and switch to new one

File size: 2.0 KB
Line 
1/***************************************************************************
2 *   Copyright (C) 2006-2008 by Guy Rutenberg   *
3 *   guyrutenberg@gmail.com   *
4 *                                                                         *
5 *   This program is free software; you can redistribute it and/or modify  *
6 *   it under the terms of the GNU General Public License as published by  *
7 *   the Free Software Foundation; either version 2 of the License, or     *
8 *   (at your option) any later version.                                   *
9 *                                                                         *
10 *   This program is distributed in the hope that it will be useful,       *
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13 *   GNU General Public License for more details.                          *
14 *                                                                         *
15 *   You should have received a copy of the GNU General Public License     *
16 *   along with this program; if not, write to the                         *
17 *   Free Software Foundation, Inc.,                                       *
18 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19 ***************************************************************************/
20#ifndef OPENYAHTZEE_SETTINGS_DIALOG_INC
21#define OPENYAHTZEE_SETTINGS_DIALOG_INC
22
23#include <wx/wx.h>
24#include "configuration.h"
25
26namespace settings_dialog {
27
28class SettingsDialog: public wxDialog {
29public:
30        SettingsDialog(wxWindow* parent, configuration::Configuration* config);
31       
32        void onOK (wxCommandEvent& event);     
33private:
34        void connectEventTable();
35        void createControls();
36        void loadSettings();
37        void doLayout();
38
39        configuration::Configuration *m_config;
40       
41        wxCheckBox* animate_checkbox;
42        wxCheckBox* subtotal_checkbox;
43        wxCheckBox* score_hints_checkbox;
44        wxCheckBox* horizontal_checkbox;
45       
46};
47}
48#endif // OPENYAHTZEE_SETTINGS_DIALOG_INC
49
Note: See TracBrowser for help on using the repository browser.