Changeset 206


Ignore:
Timestamp:
15/08/09 17:16:35 (4 years ago)
Author:
guyru
Message:

initial working code of simple pie plot

Location:
trunk/src
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile.am

    r202 r206  
    1616        ScoreDice.cpp \ 
    1717        simple_histogram.cpp \ 
     18        simple_pie_plot.cpp \ 
    1819        statistics.cpp \ 
    1920        statistics_dialog.cpp \ 
     
    3637        ScoreDice.h \ 
    3738        simple_histogram.h \ 
     39        simple_pie_plot.h \ 
    3840        statistics.h \ 
    3941        statistics_dialog.h \ 
  • trunk/src/statistics.cpp

    r205 r206  
    3737        try { 
    3838                load_data(); 
    39         } catch (exception &e) { 
     39        } catch (std::exception &e) { 
    4040                reset(); 
    4141        } 
  • trunk/src/statistics_dialog.cpp

    r202 r206  
    4646        games_started = new wxStaticText(this, wxID_ANY, wxT("")); 
    4747        games_finished = new wxStaticText(this, wxID_ANY, wxT("")); 
    48         histogram = new SimpleHistogram(this, wxID_ANY); 
     48        histogram = new simple_pie_plot::SimplePiePlot(this, wxID_ANY); 
    4949        statistics_reset_date = new wxStaticText(this, wxID_ANY, wxT("")); 
    5050} 
  • trunk/src/statistics_dialog.h

    r202 r206  
    2222 
    2323#include "statistics.h" 
    24 #include "simple_histogram.h" 
     24#include "simple_pie_plot.h" 
    2525#include <wx/wx.h> 
    2626#include <wx/dialog.h> 
     
    4747        wxStaticText *games_finished; 
    4848        wxStaticText *statistics_reset_date; 
    49         SimpleHistogram* histogram; 
     49        simple_pie_plot::SimplePiePlot* histogram; 
    5050 
    5151        statistics::Statistics* m_stats; 
Note: See TracChangeset for help on using the changeset viewer.