Ignore:
Timestamp:
09/27/2008 05:56:06 PM (4 years ago)
Author:
guyru
Message:

new highscore dialog

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/highscores_dialog.h

    r82 r165  
    1 // $Header$ 
    21/*************************************************************************** 
    3  *   Copyright (C) 2006 by Guy Rutenberg   * 
     2 *   Copyright (C) 2006-2008 by Guy Rutenberg   * 
    43 *   guyrutenberg@gmail.com   * 
    54 *                                                                         * 
     
    1918 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * 
    2019 ***************************************************************************/ 
    21 #ifndef HIGHSCOREDIALOG_INC 
    22 #define HIGHSCOREDIALOG_INC 
     20#ifndef OPENYAHTZEE_HIGHSCORES_DIALOG_INC 
     21#define OPENYAHTZEE_HIGHSCORES_DIALOG_INC 
    2322 
    24 #include "HighScoreTableDB.h" 
     23#include "configuration.h" 
     24#include <wx/wx.h> 
     25#include <wx/dialog.h> 
     26#include <wx/listctrl.h> 
    2527 
    26 class HighScoreDialog : public wxDialog 
     28namespace highscores_dialog { 
     29 
     30class HighscoresDialog : public wxDialog 
    2731{ 
    2832public: 
    29         HighScoreDialog(wxWindow* parent,wxWindowID id,HighScoreTableDB* highscoredb); 
     33        HighscoresDialog(wxWindow* parent,configuration::Configuration* config, int highlight_rank = 0); 
    3034 
     35        void onClose(wxCommandEvent& event);     
    3136private: 
     37        void createControls(); 
     38        void loadData( ); 
     39        void doLayout(); 
     40        void connectEventTable(); 
    3241 
     42        int highlight_rank; 
     43        configuration::Configuration* m_config; 
     44 
     45        wxListCtrl *highscoreslist; 
    3346}; 
     47 
     48} 
    3449 
    3550 
Note: See TracChangeset for help on using the changeset viewer.