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

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

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 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        bool animate;
40};
41
42class SettingsDialog: public wxDialog {
43public:
44    // begin wxGlade: SettingsDialog::ids
45    // end wxGlade
46
47    SettingsDialog(wxWindow* parent, int id);
48       
49        SettingsDialogData GetData();
50        void SetData(SettingsDialogData data);
51       
52        void OnResetHighScore(wxCommandEvent& event);
53private:
54    // begin wxGlade: SettingsDialog::methods
55    void connect_event_table();
56    void do_layout();
57    // end wxGlade
58        void ConnectEventTable();
59       
60
61
62protected:
63        wxStaticText* label_1;
64        wxSpinCtrl* spin_ctrl;
65        wxCheckBox* checkbox_reset; //the reset button
66       
67        wxCheckBox* animate_checkbox;
68       
69};
70
71
72#endif // SETTINGSDIALOG_H
Note: See TracBrowser for help on using the repository browser.