Debian Codegraph @

src/highscores_dialog.h

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2006-2008 by Guy Rutenberg *
3 * [email protected] *
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_HIGHSCORES_DIALOG_INC
21 #define OPENYAHTZEE_HIGHSCORES_DIALOG_INC
22
23 #include "configuration.h"
24 #include <wx/wx.h>
25 #include <wx/dialog.h>
26 #include <wx/listctrl.h>
27 #include <wx/spinctrl.h>
28
29 namespace highscores_dialog {
30
31 class HighscoresDialog : public wxDialog
32 {
33 public:
34 HighscoresDialog(wxWindow* parent,configuration::Configuration* config, int highlight_rank = 0);
35
36 void onClose(wxCommandEvent& event);
37 void onClear(wxCommandEvent& event);
38 void onConfigure(wxCommandEvent& event);
39 void onResize(wxSizeEvent& event);
40 private:
41 void createControls();
42 void loadData( );
43 void doLayout();
44 void connectEventTable();
45
46 int highlight_rank;
47 configuration::Configuration* m_config;
48
49 wxListCtrl *highscoreslist;
50 };
51
52
53 class HighscoresSettingsDialog : public wxDialog
54 {
55 public:
56 HighscoresSettingsDialog(wxWindow* parent, configuration::Configuration* config);
57
58 void onOk(wxCommandEvent& event);
59 private:
60 void doLayout();
61 wxSpinCtrl *spin_ctrl;
62
63 configuration::Configuration* m_config;
64 };
65
66
67 enum {
68 ID_CONFIGURE,
69 };
70
71 }
72
73
74 #endif