Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
#ifndef __PLAYERDATAEDITORPANEL
#define __PLAYERDATAEDITORPANEL
#include <wx/wx.h>
#include <wx/listctrl.h>
// Statsgen Includes
#include "PlayerCachePanel.h"
#include "PlayerCacheEntry.h"
#include "PlayerDataEntry.h"
#include "PlayerDataList.h"
#include "GroupedConfigItemsPanel.h"
#include "WindowIDs.h"
class PlayerDataEditorPanel : public wxPanel
{
public:
PlayerDataEditorPanel(PlayerDataList *playerDataListIn,
wxString &defaultPlayerDataIn,
wxString &playerDataTitleIn);
virtual bool Create(wxWindow *parent,
wxWindowID id=-1,
const wxPoint &pos=wxDefaultPosition,
const wxSize &size=wxDefaultSize,
long style=wxTAB_TRAVERSAL,
const wxString &name="panel");
void OnResize(wxSizeEvent &event);
void OnPlayerDataListRightClick(wxListEvent &event);
void OnLabelEdit(wxListEvent &event);
void OnPlayerRightClick(wxListEvent &event);
void OnPopupMenu(wxCommandEvent &event);
void RefreshPlayerDataListTree();
protected:
private:
void AddPlayerDataEntry(int index,PlayerDataEntry &listEntry);
enum
{
PLAYER_DATA_CANCEL=1000,
PLAYER_DATA_ADD,
PLAYER_DATA_DELETE
};
PlayerCachePanel *playerCache;
wxListCtrl *playerDataListCtrl;
PlayerDataList *playerDataList;
wxString defaultPlayerData;
wxString playerDataTitle;
GroupedConfigItemsPanel *configItems;
DECLARE_EVENT_TABLE()
};
#endif