- Timestamp:
- 10/14/2008 11:10:31 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
-
MainFrame.cpp (modified) (5 diffs)
-
MainFrame.h (modified) (1 diff)
-
ObjectsID.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainFrame.cpp
r178 r179 135 135 /*Create the menus*/ 136 136 wxMenu *gameMenu = new wxMenu; //create Game menu 137 wxMenu *help Menu = new wxMenu; //create Help menu137 wxMenu *help_menu = new wxMenu; //create Help menu 138 138 139 139 140 140 //insert menu items into menu Help 141 helpMenu->Append(ID_CHECK_FOR_UPDATES, wxT("&Check for Updates")); 142 helpMenu->AppendSeparator(); 143 helpMenu->Append(ID_SENDCOMMENT, wxT("&Send a Comment to Developers")); 144 helpMenu->AppendSeparator(); 145 helpMenu->Append(wxID_ABOUT, wxT("&About...\tF1")); 141 help_menu->Append(ID_HOWTOPLAY, wxT("How to Play\tF1")); 142 help_menu->Append(ID_FAQ, wxT("Frequently Asked Questions")); 143 help_menu->Append(ID_SENDCOMMENT, wxT("&Send Feedback")); 144 help_menu->Append(wxID_ABOUT); 146 145 147 146 //insert menu items into menu Game … … 155 154 wxMenuBar *menuBar = new wxMenuBar(); 156 155 menuBar->Append(gameMenu, wxT("&Game")); 157 menuBar->Append(help Menu, wxT("&Help"));156 menuBar->Append(help_menu, wxT("&Help")); 158 157 159 158 // ... and attach this menu bar to the frame … … 340 339 Connect(wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnQuit)); 341 340 Connect(wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnAbout)); 342 Connect(ID_CHECK_FOR_UPDATES, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnCheckForUpdates)); 341 Connect(ID_HOWTOPLAY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnHelpMenuLink)); 342 Connect(ID_FAQ, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnHelpMenuLink)); 343 343 Connect(ID_SENDCOMMENT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnSendComment)); 344 344 Connect(wxID_NEW, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnNewGame)); … … 392 392 } 393 393 394 /** 395 * Connects to the Open Yahtzee website on sourceforge.net and checks for 396 * updates to the game. 397 * \param event 398 */ 399 void MainFrame::OnCheckForUpdates (wxCommandEvent& event) 400 { 401 402 wxString link = wxT("http://openyahtzee.sourceforge.net/download/check-for-updates/");403 404 link += wxT(VERSION);405 394 void MainFrame::OnHelpMenuLink (wxCommandEvent& event) 395 { 396 wxString link; 397 switch (event.GetId()) { 398 case ID_HOWTOPLAY: 399 link = wxT("http://www.openyahtzee.org/wiki/HowToPlay"); 400 break; 401 case ID_FAQ: 402 link = wxT("http://www.openyahtzee.org/wiki/FAQ"); 403 break; 404 } 405 406 406 wxLaunchDefaultBrowser(link); 407 407 } … … 415 415 void MainFrame::OnSendComment (wxCommandEvent& event) 416 416 { 417 wxString link = wxT("http:// openyahtzee.sourceforge.net/feedback/");417 wxString link = wxT("http://www.guyrutenberg.com/contact-me"); 418 418 419 419 wxLaunchDefaultBrowser(link); -
trunk/src/MainFrame.h
r169 r179 51 51 void OnShowHighscore (wxCommandEvent& event); 52 52 void OnSettings (wxCommandEvent& event); 53 void OnCheckForUpdates (wxCommandEvent& event);54 53 void OnSendComment (wxCommandEvent& event); 54 void OnHelpMenuLink (wxCommandEvent& event); 55 55 56 56 void OnRollButton (wxCommandEvent& event); -
trunk/src/ObjectsID.h
r151 r179 27 27 ID_SETTINGS, 28 28 ID_THEMES, 29 ID_CHECK_FOR_UPDATES, 29 ID_HOWTOPLAY, 30 ID_FAQ, 30 31 ID_SENDCOMMENT, 31 32
Note: See TracChangeset
for help on using the changeset viewer.
