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

Last change on this file since 17 was 17, checked in by guyru, 7 years ago

several bug fixes to the high score table

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1// $Header$
2/***************************************************************************
3 *   Copyright (C) 2006 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// -*- C++ -*- generated by wxGlade 0.4 on Wed Oct 11 10:39:57 2006
23//this file was originally base on the output of wxGlades but i had to make many changes - Guy
24
25#include <wx/wx.h>
26// begin wxGlade: ::dependencies
27// end wxGlade
28#include <wx/spinctrl.h>
29#include <wx/tglbtn.h>
30#include "ObjectsID.h"
31
32
33#ifndef SETTINGSDIALOG_H
34#define SETTINGSDIALOG_H
35
36struct SettingsDialogData {
37        int highscoresize;
38        bool reset;
39};
40
41class SettingsDialog: public wxDialog {
42public:
43    // begin wxGlade: SettingsDialog::ids
44    // end wxGlade
45
46    SettingsDialog(wxWindow* parent, int id);
47       
48        SettingsDialogData GetData();
49        void SetData(SettingsDialogData data);
50       
51        void OnResetHighScore(wxCommandEvent& event);
52private:
53    // begin wxGlade: SettingsDialog::methods
54    void set_properties();
55    void do_layout();
56    // end wxGlade
57        void ConnectEventTable();
58       
59
60
61protected:
62    // begin wxGlade: SettingsDialog::attributes
63    wxStaticText* label_1;
64    wxSpinCtrl* spin_ctrl;
65    wxToggleButton* button_3; //the reset button
66    wxButton* button_1;
67    wxButton* button_2;
68
69        DECLARE_EVENT_TABLE();
70    // end wxGlade
71       
72}; // wxGlade: end class
73
74
75#endif // SETTINGSDIALOG_H
Note: See TracBrowser for help on using the repository browser.