Changeset 172


Ignore:
Timestamp:
10/04/2008 07:58:00 AM (4 years ago)
Author:
guyru
Message:

readjust the columns' width in the HighscoresDialog?, set keyboard shortcut

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r170 r172  
    143143         
    144144        //insert menu items into menu Help 
    145         helpMenu->Append(ID_CHECK_FOR_UPDATES, wxT("&Check for Updates"), 
    146                         wxT("Check for new version of the game via the web")); 
     145        helpMenu->Append(ID_CHECK_FOR_UPDATES, wxT("&Check for Updates")); 
    147146        helpMenu->AppendSeparator(); 
    148         helpMenu->Append(ID_SENDCOMMENT, wxT("&Send a Comment to Developers"), 
    149                         wxT("Send a comment to the developers of the game")); 
     147        helpMenu->Append(ID_SENDCOMMENT, wxT("&Send a Comment to Developers")); 
    150148        helpMenu->AppendSeparator(); 
    151         helpMenu->Append(wxID_ABOUT, wxT("&About...\tF1"), 
    152                         wxT("Show about dialog")); 
     149        helpMenu->Append(wxID_ABOUT, wxT("&About...\tF1")); 
    153150 
    154151        //insert menu items into menu Game 
    155         gameMenu->Append(wxID_NEW,wxT("&New Game\tF2"),wxT("Start a new game")); 
    156         gameMenu->Append(wxID_UNDO,wxT("&Undo\tCTRL+Z"),wxT("Undo the last move")); 
    157         gameMenu->Append(ID_SHOWHIGHSCORE,wxT("High &Scores"),wxT("Show high-scores table")); 
    158         gameMenu->Append(ID_SETTINGS,wxT("Settings"),wxT("Show settings dialog")); 
     152        gameMenu->Append(wxID_NEW,wxT("&New Game\tF2")); 
     153        gameMenu->Append(wxID_UNDO,wxT("&Undo\tCtrl+Z")); 
     154        gameMenu->Append(ID_SHOWHIGHSCORE,wxT("Show Highscores\tCtrl+H")); 
     155        gameMenu->Append(ID_SETTINGS,wxT("Settings")); 
    159156        gameMenu->Append(wxID_EXIT); 
    160157         
  • trunk/src/highscores_dialog.cpp

    r167 r172  
    4545void HighscoresDialog::createControls() 
    4646{ 
    47         highscoreslist = new wxListCtrl(this,wxID_ANY,wxDefaultPosition,wxSize(400,400),wxLC_REPORT | wxBORDER_SUNKEN ); 
     47        highscoreslist = new wxListCtrl(this,wxID_ANY,wxDefaultPosition,wxSize(450,400),wxLC_REPORT | wxBORDER_SUNKEN ); 
    4848 
    4949        wxListItem itemCol; 
     
    6464        itemCol.SetImage(-1); 
    6565        highscoreslist->InsertColumn(3, itemCol); 
     66 
     67        highscoreslist->SetColumnWidth(0, 50 ); 
     68        highscoreslist->SetColumnWidth(1, 195 ); 
     69        highscoreslist->SetColumnWidth(2, 60 ); 
     70        highscoreslist->SetColumnWidth(3, 140 ); 
    6671} 
    6772 
     
    98103                highscoreslist->SetItemTextColour(highlight_rank-1,*wxRED); 
    99104        } 
    100  
    101         highscoreslist->SetColumnWidth(0, wxLIST_AUTOSIZE_USEHEADER ); 
    102         highscoreslist->SetColumnWidth(1, wxLIST_AUTOSIZE ); 
    103         highscoreslist->SetColumnWidth(2, wxLIST_AUTOSIZE_USEHEADER ); 
    104         highscoreslist->SetColumnWidth(3, wxLIST_AUTOSIZE ); 
    105105} 
    106106 
Note: See TracChangeset for help on using the changeset viewer.