#include <PropDlg.h>
Public Member Functions | |
wxPropDlg (wxWindow *parent) | |
Protected Member Functions | |
void | Create (bool resetButton=false) |
virtual void | CreatePropPanel (wxSizer *sizer)=0 |
Creates properties panel. | |
virtual void | CreateButtonPane (wxSizer *sizer, bool resetButton=false) |
Creates panel with buttons. | |
virtual void | Reset () |
virtual bool | SetValues ()=0 |
Populate values on the model. | |
void | AddText (wxSizer *sizer, wxString text) |
void | AddTextProp (wxSizer *sizer, wxString text, wxString defValue, bool readonly=false) |
void | AddStaticTextProp (wxSizer *sizer, wxString text, wxString defValue) |
void | AddSpinProp (wxSizer *sizer, wxString text, int defValue, int min=0, int max=100) |
void | AddCheckProp (wxSizer *sizer, wxString text, bool defValue, bool readonly=false, int id=-1) |
void | AddRadioProp (wxSizer *sizer, wxString text, bool defValue, long style=wxRB_SINGLE, bool readonly=false, int id=-1) |
void | AddRadioGroupProp (wxSizer *sizer, const wxArrayString &text, int defValue, bool readonly=false) |
void | AddComboProp (wxSizer *sizer, const wxString &text, const wxString &defValue, const wxArrayString &choices, long style=0) |
void | SetComboData (wxComboBox *ctrl, const wxString &defValue, const wxArrayString &choices) |
void | AddChoiceProp (wxSizer *sizer, const wxString &text, const wxString &defValue, const wxArrayString &choices, int id=-1) |
void | SetChoiceData (wxChoice *ctrl, const wxString &defValue, const wxArrayString &choices) |
void | AddGridProp (wxSizer *sizer, const wxArrayPtrVoid &data, const wxString &rowTitle, bool editable) |
void | SetGridData (wxGrid *grid, const wxArrayPtrVoid &data, const wxString &rowTitle, bool editable) |
void | AddFontProp (wxSizer *sizer, wxString text, wxFont font, wxString caption=_T("...")) |
void | AddFontProp (wxSizer *sizer, wxString text, wxFontData font, wxString caption=_T("...")) |
void | AddColourProp (wxSizer *sizer, wxString text, wxColour colour, wxString caption=_T("...")) |
void | AddFileProp (wxSizer *sizer, wxString text, const wxString &defValue, int dlgStyle=wxFD_OPEN, wxString caption=_T("...")) |
void | AddDirectoryProp (wxSizer *sizer, wxString text, const wxString &defValue, wxString caption=_T("...")) |
wxSizer * | BeginGroup (wxSizer *sizer, wxString title=wxEmptyString, wxString checkTitle=wxEmptyString, bool defValue=false, bool readonly=false) |
void | EndGroup () |
wxString | GetString (int index) |
int | GetInt (int index) |
bool | GetBool (int index) |
void * | GetClientData (int index) |
wxArrayPtrVoid | GetGrid (int index) |
wxFontData | GetFont (int index) |
wxColour | GetColour (int index) |
virtual void | OnCancel (wxCommandEvent &event) |
virtual void | OnOk (wxCommandEvent &event) |
virtual void | OnReset (wxCommandEvent &event) |
virtual void | OnSelectFont (wxCommandEvent &event) |
virtual void | OnSelectColour (wxCommandEvent &event) |
virtual void | OnSelectFile (wxCommandEvent &event) |
virtual void | OnSelectDir (wxCommandEvent &event) |
virtual void | OnGroupCheck (wxCommandEvent &event) |
virtual void | OnCellLeftClick (wxGridEvent &event) |
virtual void | OnCellRightClick (wxGridEvent &event) |
virtual void | OnCellChange (wxGridEvent &event) |
virtual void | OnRowDelete (wxCommandEvent &event) |
Protected Attributes | |
wxArrayInt | m_types |
wxArrayPtrVoid | m_controls |
wxArrayInt | m_groupIds |
int | m_updateIndex |
int | m_currGroupId |
index of property by update (reset) | |
void * | m_currGroupChecker |
wxWindow * | propWindow |
void * | m_currObject |
int | m_currObjectItem |
Allow you to simply create properties dialogs without any GUI designer. Using this class, you can also create dynamic property dialog.
|
Creates properties panel. if sizer != NULL adds properties, else update values |
|
Populate values on the model.
|