Changeset 199 for trunk/src/MainFrame.cpp
- Timestamp:
- 05/03/2009 05:12:43 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/MainFrame.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainFrame.cpp
r195 r199 34 34 #include "configuration.h" 35 35 #include "settings_dialog.h" 36 #include "statistics_dialog.h" 36 37 #include "../config.h" 37 38 #include <iostream> … … 150 151 gameMenu->Append(wxID_UNDO,wxT("&Undo\tCtrl+Z")); 151 152 gameMenu->Append(ID_SHOWHIGHSCORE,wxT("Show Highscores\tCtrl+H")); 153 gameMenu->Append(ID_STATISTICS,wxT("Statistics...")); 152 154 gameMenu->Append(ID_SETTINGS,wxT("Settings")); 153 155 gameMenu->Append(wxID_EXIT); … … 347 349 Connect(wxID_UNDO, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnUndo)); 348 350 Connect(ID_SHOWHIGHSCORE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnShowHighscore)); 351 Connect(ID_STATISTICS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnStatistics)); 349 352 Connect(ID_SETTINGS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnSettings)); 350 353 //END connecting the menu items' events … … 522 525 dialog->ShowModal(); 523 526 527 delete dialog; 528 } 529 530 void MainFrame::OnStatistics(wxCommandEvent &event) 531 { 532 statistics_dialog::StatisticsDialog *dialog = new statistics_dialog::StatisticsDialog(this, m_stats); 533 dialog->ShowModal(); 524 534 delete dialog; 525 535 }
Note: See TracChangeset
for help on using the changeset viewer.
