Changeset 202 for trunk/src/statistics_dialog.cpp
- Timestamp:
- 05/04/2009 12:22:36 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/statistics_dialog.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/statistics_dialog.cpp
r199 r202 46 46 games_started = new wxStaticText(this, wxID_ANY, wxT("")); 47 47 games_finished = new wxStaticText(this, wxID_ANY, wxT("")); 48 histogram = new SimpleHistogram(this, wxID_ANY); 48 49 statistics_reset_date = new wxStaticText(this, wxID_ANY, wxT("")); 49 50 } … … 61 62 tmp = wxT("Last reset: ") + reset_time.Format(); 62 63 statistics_reset_date->SetLabel(tmp); 64 65 vector<int> score_dist = m_stats->score_distribution(); 66 vector<double> dist (score_dist.begin(), score_dist.end()); 67 histogram->SetData(dist); 63 68 } 64 69 … … 71 76 game_counts->AddStretchSpacer(10); 72 77 game_counts->Add(games_finished); 73 top_sizer->Add(game_counts, 10,wxEXPAND);78 top_sizer->Add(game_counts,0,wxEXPAND,10); 74 79 75 80 wxStaticBoxSizer* score_distribution = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Score Distribution") ), wxHORIZONTAL); 76 top_sizer->Add(score_distribution,10,wxEXPAND); 81 score_distribution->Add(histogram, 1, wxEXPAND, 10); 82 top_sizer->Add(score_distribution,10,wxEXPAND, 10); 77 83 78 top_sizer->Add(statistics_reset_date, 10,wxEXPAND);84 top_sizer->Add(statistics_reset_date,0,wxEXPAND,10); 79 85 80 86 wxBoxSizer *button_sizer = new wxBoxSizer( wxHORIZONTAL );
Note: See TracChangeset
for help on using the changeset viewer.
