Changeset 174
- Timestamp:
- 10/05/2008 01:59:22 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
-
MainFrame.cpp (modified) (2 diffs)
-
Makefile.am (modified) (2 diffs)
-
highscores_dialog.cpp (modified) (2 diffs)
-
settings_dialog.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainFrame.cpp
r172 r174 88 88 89 89 std::string config_file; 90 config_file = (home_path. mb_str());90 config_file = (home_path.utf8_str()); 91 91 #ifndef PORTABLE 92 92 config_file += "/.openyahtzee.new"; … … 998 998 infodialog.ShowModal(); 999 999 1000 name = infodialog.GetValue(). mb_str();1000 name = infodialog.GetValue().utf8_str(); 1001 1001 m_config->set("last-name",name)->save(); 1002 1002 1003 1003 //get the date 1004 1004 wxDateTime now = wxDateTime::Now(); 1005 date = now.FormatDate(). mb_str();1005 date = now.FormatDate().utf8_str(); 1006 1006 date += " "; 1007 date += now.FormatISOTime().SubString(0,4). mb_str();1007 date += now.FormatISOTime().SubString(0,4).utf8_str(); 1008 1008 1009 1009 int rank = m_config->submitHighscore(score, name, date); -
trunk/src/Makefile.am
r173 r174 2 2 openyahtzee_SOURCES = \ 3 3 About.cpp \ 4 ../config.h \ 4 5 configuration.cpp \ 5 6 configuration.h \ … … 37 38 ObjectsID.h \ 38 39 ScoreDice.h \ 39 wxDynamicBitmap.h 40 wxDynamicBitmap.h \ 41 ../openyahtzee.vcproj \ 42 ../openyahtzee.sln 40 43 41 44 AM_CXXFLAGS = `wx-config --cxxflags` -
trunk/src/highscores_dialog.cpp
r172 r174 87 87 88 88 // name 89 buf = wxString (it->name.c_str(),wxConvUTF8);89 buf = wxString::FromUTF8(it->name.c_str()); 90 90 highscoreslist->SetItem(i,1,buf); 91 91 … … 96 96 97 97 // date 98 buf = wxString (it->date.c_str(),wxConvUTF8);98 buf = wxString::FromUTF8(it->date.c_str()); 99 99 highscoreslist->SetItem(i,3,buf); 100 100 } -
trunk/src/settings_dialog.cpp
r163 r174 43 43 // need to delete them manually 44 44 animate_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Dice animation")); 45 subtotal_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Calculate " 46 "sub-total score for the upper and lower sections")); 47 score_hints_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Display " 48 "score hints.")); 45 subtotal_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Calculate sub-total score for the upper and lower sections")); 46 score_hints_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Display score hints.")); 49 47 horizontal_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Enable horizontal layout for user interface.")); 50 48 }
Note: See TracChangeset
for help on using the changeset viewer.
