Changeset 174 for trunk/src


Ignore:
Timestamp:
10/05/2008 01:59:22 PM (4 years ago)
Author:
guyru
Message:

VC2008 project files, minor fixes for windows compilation

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r172 r174  
    8888         
    8989        std::string config_file; 
    90         config_file = (home_path.mb_str()); 
     90        config_file = (home_path.utf8_str()); 
    9191        #ifndef PORTABLE 
    9292                config_file += "/.openyahtzee.new"; 
     
    998998        infodialog.ShowModal(); 
    999999 
    1000         name = infodialog.GetValue().mb_str(); 
     1000        name = infodialog.GetValue().utf8_str(); 
    10011001        m_config->set("last-name",name)->save(); 
    10021002 
    10031003        //get the date 
    10041004        wxDateTime now = wxDateTime::Now(); 
    1005         date = now.FormatDate().mb_str(); 
     1005        date = now.FormatDate().utf8_str(); 
    10061006        date += " "; 
    1007         date += now.FormatISOTime().SubString(0,4).mb_str(); 
     1007        date += now.FormatISOTime().SubString(0,4).utf8_str(); 
    10081008 
    10091009        int rank = m_config->submitHighscore(score, name, date); 
  • trunk/src/Makefile.am

    r173 r174  
    22openyahtzee_SOURCES = \ 
    33        About.cpp \ 
     4        ../config.h \ 
    45        configuration.cpp \ 
    56        configuration.h \ 
     
    3738        ObjectsID.h \ 
    3839        ScoreDice.h \ 
    39         wxDynamicBitmap.h 
     40        wxDynamicBitmap.h \ 
     41        ../openyahtzee.vcproj \ 
     42        ../openyahtzee.sln 
    4043 
    4144AM_CXXFLAGS = `wx-config --cxxflags` 
  • trunk/src/highscores_dialog.cpp

    r172 r174  
    8787 
    8888                // name 
    89                 buf = wxString(it->name.c_str(),wxConvUTF8); 
     89                buf = wxString::FromUTF8(it->name.c_str()); 
    9090                highscoreslist->SetItem(i,1,buf); 
    9191 
     
    9696 
    9797                // date 
    98                 buf = wxString(it->date.c_str(),wxConvUTF8); 
     98                buf = wxString::FromUTF8(it->date.c_str()); 
    9999                highscoreslist->SetItem(i,3,buf); 
    100100        } 
  • trunk/src/settings_dialog.cpp

    r163 r174  
    4343        // need to delete them manually 
    4444        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.")); 
    4947        horizontal_checkbox = new wxCheckBox(this, wxID_ANY, wxT("Enable horizontal layout for user interface.")); 
    5048} 
Note: See TracChangeset for help on using the changeset viewer.