source: trunk/src/statistics_dialog.h @ 208

Revision 208, 2.2 KB checked in by guyru, 3 years ago (diff)

Render legend in the SimplePiePlot? widget

Line 
1/***************************************************************************
2 *   Copyright (C) 2006-2009 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_STATISTICS_DIALOG_INC
21#define OPENYAHTZEE_STATISTICS_DIALOG_INC
22
23#include "statistics.h"
24#include "simple_pie_plot.h"
25#include <wx/wx.h>
26#include <wx/dialog.h>
27#include <wx/listctrl.h>
28#include <wx/spinctrl.h>
29
30namespace statistics_dialog {
31
32class StatisticsDialog : public wxDialog
33{
34public:
35        StatisticsDialog(wxWindow* parent, statistics::Statistics* stats);
36
37        void OnClose(wxCommandEvent& event);
38        void OnReset(wxCommandEvent& event);
39        void OnConfigure(wxCommandEvent& event);
40private:
41        void CreateControls();
42        void LoadData( );
43        void DoLayout();
44        void ConnectEventTable();
45
46        wxStaticText *games_started;
47        wxStaticText *games_finished;
48        wxStaticText *statistics_reset_date;
49        simple_pie_plot::SimplePiePlot* pie_plot;
50
51        statistics::Statistics* m_stats;
52};
53
54} // namespace statistics_dialog
55
56
57#endif
Note: See TracBrowser for help on using the repository browser.