- Timestamp:
- 10/05/2008 08:03:25 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 2 deleted
- 5 edited
- 1 moved
-
openyahtzee.sln (added)
-
openyahtzee.vcproj (added)
-
src/About.cpp (modified) (2 diffs)
-
src/Icon.h (deleted)
-
src/MainFrame.cpp (modified) (12 diffs)
-
src/Makefile.am (modified) (3 diffs)
-
src/highscores_dialog.cpp (modified) (2 diffs)
-
src/icon32.ico (deleted)
-
src/icon64.xpm (moved) (moved from trunk/src/icon.xpm) (1 diff)
-
src/openyahtzee.ico (added)
-
src/openyahtzee.rc (added)
-
src/settings_dialog.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/About.cpp
r130 r175 22 22 23 23 #include "About.h" 24 #include "icon .xpm"24 #include "icon64.xpm" 25 25 26 26 … … 36 36 //wxImage tempimage = logo->ConvertToImage(); 37 37 wxBitmap *logo = new wxBitmap; 38 *logo = wxBitmap(icon _xpm);38 *logo = wxBitmap(icon64_xpm); 39 39 40 40 notebook_main = new wxNotebook(this, -1, wxDefaultPosition, wxDefaultSize, 0); -
trunk/src/MainFrame.cpp
r174 r175 52 52 } // namespace dice 53 53 54 //include the icon file 55 #include "Icon.h" 54 #include "icon32.xpm" 56 55 57 56 //default values - design … … 75 74 { 76 75 //give the frame an icon 77 SetIcon(wxIcon( ICON));76 SetIcon(wxIcon(icon32_xpm)); 78 77 79 78 /* Check if there is configuration file under old-name and … … 674 673 675 674 out.Printf(wxT("%i"),temp); 676 ((wxTextCtrl*) FindWindow(event.GetId() - ID_ACES + ID_ACESTEXT))->SetValue(out); 677 ((wxTextCtrl*) FindWindow(event.GetId() - ID_ACES + ID_ACESTEXT))->SetBackgroundColour(*wxWHITE); 675 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(event.GetId() - ID_ACES + ID_ACESTEXT)); 676 text_ctrl->SetValue(out); 677 text_ctrl->SetBackgroundColour(*wxWHITE); 678 text_ctrl->Refresh(); 678 679 679 680 PostScore(event.GetId()); … … 697 698 698 699 out.Printf(wxT("%i"),m_score_dice.ThreeOfAKind()); 699 ((wxTextCtrl*) FindWindow(ID_THREEOFAKINDTEXT))->SetValue(out); 700 ((wxTextCtrl*) FindWindow(ID_THREEOFAKINDTEXT))->SetBackgroundColour(*wxWHITE); 700 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(ID_THREEOFAKINDTEXT)); 701 text_ctrl->SetValue(out); 702 text_ctrl->SetBackgroundColour(*wxWHITE); 703 text_ctrl->Refresh(); 701 704 702 705 PostScore(event.GetId()); … … 717 720 718 721 out.Printf(wxT("%i"),m_score_dice.FourOfAKind()); 719 ((wxTextCtrl*) FindWindow(ID_FOUROFAKINDTEXT))->SetValue(out); 720 ((wxTextCtrl*) FindWindow(ID_FOUROFAKINDTEXT))->SetBackgroundColour(*wxWHITE); 722 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(ID_FOUROFAKINDTEXT)); 723 text_ctrl->SetValue(out); 724 text_ctrl->SetBackgroundColour(*wxWHITE); 725 text_ctrl->Refresh(); 721 726 722 727 PostScore(event.GetId()); … … 738 743 739 744 out.Printf(wxT("%i"), m_score_dice.FullHouse()); 740 ((wxTextCtrl*) FindWindow(ID_FULLHOUSETEXT))->SetValue(out); 741 ((wxTextCtrl*) FindWindow(ID_FULLHOUSETEXT))->SetBackgroundColour(*wxWHITE); 745 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(ID_FULLHOUSETEXT)); 746 text_ctrl->SetValue(out); 747 text_ctrl->SetBackgroundColour(*wxWHITE); 748 text_ctrl->Refresh(); 742 749 743 750 PostScore(event.GetId()); … … 760 767 761 768 out.Printf(wxT("%i"), m_score_dice.SmallSequence()); 762 ((wxTextCtrl*) FindWindow(ID_SMALLSEQUENCETEXT))->SetValue(out); 763 ((wxTextCtrl*) FindWindow(ID_SMALLSEQUENCETEXT))->SetBackgroundColour(*wxWHITE); 769 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(ID_SMALLSEQUENCETEXT)); 770 text_ctrl->SetValue(out); 771 text_ctrl->SetBackgroundColour(*wxWHITE); 772 text_ctrl->Refresh(); 764 773 765 774 PostScore(event.GetId()); … … 782 791 783 792 out.Printf(wxT("%i"), m_score_dice.LargeSequence()); 784 ((wxTextCtrl*) FindWindow(ID_LARGESEQUENCETEXT))->SetValue(out); 785 ((wxTextCtrl*) FindWindow(ID_LARGESEQUENCETEXT))->SetBackgroundColour(*wxWHITE); 793 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(ID_LARGESEQUENCETEXT)); 794 text_ctrl->SetValue(out); 795 text_ctrl->SetBackgroundColour(*wxWHITE); 796 text_ctrl->Refresh(); 797 786 798 787 799 PostScore(event.GetId()); … … 803 815 if (m_score_dice.IsYahtzee()) m_yahtzee = true; 804 816 out.Printf(wxT("%i"), m_score_dice.Yahtzee()); 805 ((wxTextCtrl*) FindWindow(ID_YAHTZEETEXT))->SetValue(out); 806 ((wxTextCtrl*) FindWindow(ID_YAHTZEETEXT))->SetBackgroundColour(*wxWHITE); 817 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(ID_YAHTZEETEXT)); 818 text_ctrl->SetValue(out); 819 text_ctrl->SetBackgroundColour(*wxWHITE); 820 text_ctrl->Refresh(); 807 821 808 822 PostScore(event.GetId()); … … 821 835 822 836 out.Printf(wxT("%i"),m_score_dice.Chance()); 823 ((wxTextCtrl*) FindWindow(ID_CHANCETEXT))->SetValue(out); 824 ((wxTextCtrl*) FindWindow(ID_CHANCETEXT))->SetBackgroundColour(*wxWHITE); 825 837 wxTextCtrl *text_ctrl = dynamic_cast<wxTextCtrl*>(FindWindow(ID_CHANCETEXT)); 838 text_ctrl->SetValue(out); 839 text_ctrl->SetBackgroundColour(*wxWHITE); 840 text_ctrl->Refresh(); 826 841 PostScore(event.GetId()); 827 842 } … … 981 996 void MainFrame::HighScoreHandler(int score) 982 997 { 983 int place;984 998 std::string name,date; 985 999 wxCommandEvent newevent; … … 990 1004 } 991 1005 992 wxString msg; 993 msg.Printf(wxT("Your score made it to the high score table.\nPlease enter your name below:"),place); 1006 wxString msg = wxT("Your score made it to the high score table.\nPlease enter your name below:"); 994 1007 995 1008 wxString last_name = wxString::FromUTF8(m_config->get("last-name").c_str()); -
trunk/src/Makefile.am
r174 r175 9 9 highscores_dialog.cpp \ 10 10 highscores_dialog.h \ 11 icon.xpm \12 11 icon32.xpm \ 12 icon64.xpm \ 13 13 openyahtzee.cpp \ 14 14 settings_dialog.cpp \ … … 33 33 About.h \ 34 34 DBwrapper.h \ 35 Icon.h \ 36 icon32.ico \ 35 openyahtzee.ico \ 37 36 MainFrame.h \ 38 37 ObjectsID.h \ … … 40 39 wxDynamicBitmap.h \ 41 40 ../openyahtzee.vcproj \ 42 ../openyahtzee.sln 41 ../openyahtzee.sln \ 42 openyahtzee.ico \ 43 openyahtzee.rc 43 44 44 45 AM_CXXFLAGS = `wx-config --cxxflags` -
trunk/src/highscores_dialog.cpp
r174 r175 24 24 #include "highscores_dialog.h" 25 25 26 #include " Icon.h"26 #include "icon32.xpm" 27 27 28 28 using namespace std; … … 35 35 m_config = config; 36 36 37 SetIcon(wxIcon( ICON));37 SetIcon(wxIcon(icon32_xpm)); 38 38 39 39 createControls(); -
trunk/src/icon64.xpm
r60 r175 1 1 /* XPM */ 2 static char *icon _xpm[] = {2 static char *icon64_xpm[] = { 3 3 /* columns rows colors chars-per-pixel */ 4 4 "64 64 256 2", -
trunk/src/settings_dialog.cpp
r174 r175 20 20 21 21 #include "settings_dialog.h" 22 #include " Icon.h"22 #include "icon32.xpm" 23 23 24 24 using namespace settings_dialog; … … 28 28 { 29 29 30 SetIcon(wxIcon( ICON));30 SetIcon(wxIcon(icon32_xpm)); 31 31 32 32 m_config = config;
Note: See TracChangeset
for help on using the changeset viewer.
