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.
61 lines (53 sloc)
1.59 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 __GENERICNUMBEREDCONFIGGUI | |
#define __GENERICNUMBEREDCONFIGGUI | |
#include <wx/wx.h> | |
#include <wx/dialog.h> | |
#include <wx/listctrl.h> | |
// Statsgen Includes | |
#include "WindowIDs.h" | |
#include "GroupedConfigItemsPanel.h" | |
#include "GenericConfigPanel.h" | |
class GenericNumberedConfigGUI : public wxDialog | |
{ | |
public: | |
GenericNumberedConfigGUI( | |
wxPanel * (*newPanelFunctionIn)(wxWindow *parentID,wxString &listID), | |
//GenericConfigPanel * (*newPanelFunctionIn)(wxWindow *parentID,wxString &listID), | |
wxString &group, | |
wxString &listGroupPrefix, | |
wxWindow *parent, | |
wxWindowID id, | |
const wxString &title, | |
const wxPoint &pos, | |
const wxSize &size, | |
long style, | |
const wxString &name); | |
virtual ~GenericNumberedConfigGUI(); | |
void OnQuit(wxCommandEvent& event); | |
void OnSave(wxCommandEvent& event); | |
void OnNew(wxCommandEvent& event); | |
void OnDelete(wxCommandEvent& event); | |
void OnResize(wxSizeEvent& event); | |
void OnListItemSelected(wxCommandEvent &event); | |
void DisplayDialog(); | |
//void SetConfigPanel(GenericConfigPanel *configPanel); | |
void SetConfigPanel(wxPanel *configPanel); | |
protected: | |
void CreateDialog(); | |
private: | |
void WriteIDList(); | |
wxComboBox idList; | |
//GenericConfigPanel * (*newPanelFunction)(wxWindow *parentID,wxString &listID); | |
wxPanel * (*newPanelFunction)(wxWindow *parentID,wxString &listID); | |
//GenericConfigPanel *configPanel; | |
wxPanel *configPanel; | |
wxButton saveButton; | |
wxButton quitButton; | |
wxButton newButton; | |
wxButton deleteButton; | |
wxString listGroup; | |
wxString listGroupPrefix; | |
bool firstTimeResize; | |
DECLARE_EVENT_TABLE() | |
}; | |
#endif |