Ignore:
Timestamp:
10/03/2008 07:39:43 AM (4 years ago)
Author:
guyru
Message:
  • Add "Clear", "Configure" buttons to Highscores Dialog, add ability to resize the Highscores list and clear it.

Fix the date formatting when submitting to Highscores list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/highscores_dialog.h

    r165 r167  
    2525#include <wx/dialog.h> 
    2626#include <wx/listctrl.h> 
     27#include <wx/spinctrl.h> 
    2728 
    2829namespace highscores_dialog { 
     
    3435 
    3536        void onClose(wxCommandEvent& event);     
     37        void onClear(wxCommandEvent& event);     
     38        void onConfigure(wxCommandEvent& event);         
    3639private: 
    3740        void createControls(); 
     
    4649}; 
    4750 
     51 
     52class HighscoresSettingsDialog : public wxDialog 
     53{ 
     54public: 
     55        HighscoresSettingsDialog(wxWindow* parent, configuration::Configuration* config); 
     56 
     57        void onOk(wxCommandEvent& event); 
     58private: 
     59        void doLayout(); 
     60        wxSpinCtrl *spin_ctrl; 
     61 
     62        configuration::Configuration* m_config; 
     63}; 
     64 
     65 
     66enum { 
     67        ID_CONFIGURE, 
     68}; 
     69 
    4870} 
    4971 
Note: See TracChangeset for help on using the changeset viewer.