- Timestamp:
- 01/13/2008 03:28:16 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 4 edited
-
MainFrame.cpp (modified) (5 diffs)
-
MainFrame.h (modified) (2 diffs)
-
Makefile.am (modified) (2 diffs)
-
ObjectsID.h (modified) (1 diff)
-
dice_theme_dialog.cpp (added)
-
dice_theme_dialog.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainFrame.cpp
r130 r137 1 1 // $Header$ 2 2 /*************************************************************************** 3 * Copyright (C) 2006-200 7by Guy Rutenberg *3 * Copyright (C) 2006-2008 by Guy Rutenberg * 4 4 * guyrutenberg@gmail.com * 5 5 * * … … 34 34 #include "HighScoreDialog.h" 35 35 #include "SettingsDialog.h" 36 #include "dice_theme_dialog.h" 36 37 #include "About.h" 37 38 #include "UtilityFunctions.h" … … 136 137 gameMenu->Append(ID_SHOWHIGHSCORE,wxT("High &Scores"),wxT("Show high-scores table")); 137 138 gameMenu->Append(ID_SETTINGS,wxT("Settings"),wxT("Show settings dialog")); 139 gameMenu->Append(ID_THEMES,wxT("Dice Theme..."),wxT("Select a dice theme")); 138 140 gameMenu->Append(wxID_EXIT, wxT("E&xit\tAlt-X"), 139 141 wxT("Quit this program")); … … 333 335 Connect(ID_SHOWHIGHSCORE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnShowHighscore)); 334 336 Connect(ID_SETTINGS, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnSettings)); 337 Connect(ID_THEMES, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnDiceTheme)); 335 338 //END connecting the menu items' events 336 339 … … 577 580 Relayout(); 578 581 } 582 } 583 584 /** 585 * Shows the dice theme selection dialog. This event-handler is connected to 586 * Game->Dice Theme menu item. 587 * \param event 588 */ 589 void MainFrame::OnDiceTheme( wxCommandEvent& event) 590 { 591 DiceThemeDialog *dialog = new DiceThemeDialog(this,wxID_ANY); 592 593 if(dialog->ShowModal()!=wxID_OK) 594 return; 595 579 596 } 580 597 -
trunk/src/MainFrame.h
r130 r137 1 1 // $Header$ 2 2 /*************************************************************************** 3 * Copyright (C) 2006-200 7by Guy Rutenberg *3 * Copyright (C) 2006-2008 by Guy Rutenberg * 4 4 * guyrutenberg@gmail.com * 5 5 * * … … 52 52 void OnShowHighscore (wxCommandEvent& event); 53 53 void OnSettings (wxCommandEvent& event); 54 void OnDiceTheme( wxCommandEvent& event); 54 55 void OnCheckForUpdates (wxCommandEvent& event); 55 56 void OnSendComment (wxCommandEvent& event); -
trunk/src/Makefile.am
r136 r137 1 1 bin_PROGRAMS = openyahtzee 2 2 openyahtzee_SOURCES = openyahtzee.cpp MainFrame.cpp DBwrapper.cpp \ 3 SettingsDB.cpp HighScoreTableDB.cpp HighScoreDialog.cpp SettingsDialog.cpp \ 4 icon.xpm icon32.xpm wxDynamicBitmap.cpp About.cpp \ 5 UtilityFunctions.cpp ScoreDice.cpp dice_graphics.cpp 3 HighScoreTableDB.cpp HighScoreDialog.cpp SettingsDialog.cpp \ 4 SettingsDB.cpp icon.xpm icon32.xpm wxDynamicBitmap.cpp About.cpp \ 5 UtilityFunctions.cpp ScoreDice.cpp dice_graphics.cpp \ 6 dice_theme_dialog.cpp 6 7 7 8 # set the include path found by configure … … 20 21 HighScoreDialog.h SettingsDialog.h Icon.h icon32.ico wxDynamicBitmap.h \ 21 22 About.h UtilityFunctions.h ScoreDice.h dice_graphics.h DBwrapper.h \ 22 $(dice_graphics)23 dice_theme_dialog.h $(dice_graphics) 23 24 24 25 AM_CXXFLAGS = `wx-config --cxxflags` -
trunk/src/ObjectsID.h
r57 r137 28 28 ID_SHOWHIGHSCORE, 29 29 ID_SETTINGS, 30 ID_THEMES, 30 31 ID_CHECK_FOR_UPDATES, 31 32 ID_SENDCOMMENT,
Note: See TracChangeset
for help on using the changeset viewer.
