ModemProperties panel property grid init

This commit is contained in:
Charles J. Cliffe
2015-11-23 21:32:50 -05:00
parent 4af943791b
commit 5303f329df
6 changed files with 158 additions and 2 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/propgrid/propgrid.h>
#include <wx/propgrid/advprops.h>
#include "Modem.h"
class ModemProperties : public wxPanel {
public:
ModemProperties(
wxWindow *parent,
wxWindowID winid = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
const wxString& name = wxPanelNameStr
);
~ModemProperties();
void initProperties(ModemArgInfoList newArgs);
private:
wxPGProperty *addArgInfoProperty(wxPropertyGrid *pg, ModemArgInfo arg);
wxPropertyGrid* m_propertyGrid;
ModemArgInfoList args;
std::vector<wxPGProperty *> props;
};