source: trunk/OpenYahtzee/src/SettingsDialog.h @ 127

Last change on this file since 127 was 127, checked in by guyru, 6 years ago

score hints settings dialog entry

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1// $Header$
2/***************************************************************************
3 *   Copyright (C) 2006-2007 by Guy Rutenberg   *
4 *   guyrutenberg@gmail.com   *
5 *                                                                         *
6 *   This program is free software; you can redistribute it and/or modify  *
7 *   it under the terms of the GNU General Public License as published by  *
8 *   the Free Software Foundation; either version 2 of the License, or     *
9 *   (at your option) any later version.                                   *
10 *                                                                         *
11 *   This program 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     *
17 *   along with this program; if not, write to the                         *
18 *   Free Software Foundation, Inc.,                                       *
19 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20 ***************************************************************************/
21
22#include <wx/wx.h>
23#include <wx/spinctrl.h>
24#include "ObjectsID.h"
25
26
27#ifndef SETTINGSDIALOG_H
28#define SETTINGSDIALOG_H
29
30struct SettingsDialogData {
31        int highscoresize;
32        bool reset;
33        bool animate;
34        bool subtotal;
35        bool horizontal;
36        bool score_hints;
37};
38
39class SettingsDialog: public wxDialog {
40public:
41        SettingsDialog(wxWindow* parent, int id);
42       
43        SettingsDialogData GetData();
44        void SetData(SettingsDialogData data);
45       
46        void OnResetHighScore(wxCommandEvent& event);
47private:
48        void DoLayout();
49        void ConnectEventTable();
50       
51
52
53protected:
54        wxStaticText* label_1;
55        wxSpinCtrl* spin_ctrl;
56        wxCheckBox* checkbox_reset; //the reset button
57       
58        wxCheckBox* animate_checkbox;
59        wxCheckBox* subtotal_checkbox;
60        wxCheckBox* score_hints_checkbox;
61        wxCheckBox* horizontal_checkbox;
62       
63};
64
65
66#endif // SETTINGSDIALOG_H
Note: See TracBrowser for help on using the repository browser.