Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55 lines (47 sloc)
1.36 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |