20#include <wx/spinctrl.h>
21#include <wx/listctrl.h>
22#include <wx/treelist.h>
23#include <wx/collpane.h>
28#include "../controls/treelistctrl.h"
42 SpinBut(wxWindow* parent, wxWindowID
id,
const wxSize& size,
int nMin,
int nMax,
int nInitial) : wxSpinCtrl(parent, id, wxEmptyString, wxDefaultPosition, size, wxSP_ARROW_KEYS, nMin, nMax, nInitial),
m_label(nullptr)
80 virtual bool Show(
bool show)
85 return wxSpinCtrl::Show(show);
101 return wxSpinCtrl::Enable(enable);
117 TextField(wxWindow* parent, wxWindowID
id,
const wxString& sDefault,
const wxSize& size,
int nStyle) : wxTextCtrl(parent, id, sDefault, wxDefaultPosition, size, nStyle),
m_label(nullptr)
160 return wxTextCtrl::Show(show);
176 return wxTextCtrl::Enable(enable);
195 GroupPanel(wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL,
bool useVerticalSizer =
true);
200 void AddSpacer(
int nSize = 10, wxSizer* sizer =
nullptr);
201 wxStaticText*
AddStaticText(wxWindow* parent, wxSizer* sizer,
const wxString& text,
int id = wxID_STATIC,
int alignment = wxALIGN_CENTER_VERTICAL);
203 wxStaticBoxSizer*
createGroup(
const wxString& sGroupName,
int orient = wxVERTICAL, wxWindow* parent =
nullptr, wxSizer* sizer =
nullptr,
int expand = 0);
204 wxBoxSizer*
createGroup(
int orient = wxVERTICAL, wxSizer* sizer =
nullptr,
int expand = 0);
205 wxCollapsiblePane*
createCollapsibleGroup(
const wxString& label, wxWindow* parent =
nullptr, wxSizer* sizer =
nullptr);
207 wxTextCtrl*
CreatePathInput(wxWindow* parent, wxSizer* sizer,
const wxString& description,
int buttonID,
int id = wxID_ANY);
208 TextField*
CreateTextInput(wxWindow* parent, wxSizer* sizer,
const wxString& description,
const wxString& sDefault = wxEmptyString,
int nStyle = 0,
int id = wxID_ANY,
const wxSize& size = wxSize(310,-1),
int alignment = wxALIGN_CENTER_VERTICAL);
209 wxCheckBox*
CreateCheckBox(wxWindow* parent, wxSizer* sizer,
const wxString& description,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
210 SpinBut*
CreateSpinControl(wxWindow* parent, wxSizer* sizer,
const wxString& description,
int nMin,
int nMax,
int nInitial,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
211 wxListView*
CreateListView(wxWindow* parent, wxSizer* sizer,
int nStyle = wxLC_REPORT, wxSize size = wxDefaultSize,
int id = wxID_ANY);
212 wxTreeListCtrl*
CreateTreeListCtrl(wxWindow* parent, wxSizer* sizer,
int nStyle = wxTL_SINGLE, wxSize size = wxDefaultSize,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
213 wxcode::wxTreeListCtrl*
CreateWxcTreeListCtrl(wxWindow* parent, wxSizer* sizer,
int nStyle = wxTR_TWIST_BUTTONS | wxTR_FULL_ROW_HIGHLIGHT | wxTR_EXTENDED, wxSize size = wxDefaultSize,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
214 wxButton*
CreateButton(wxWindow* parent, wxSizer* sizer,
const wxString& description,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
215 wxRadioBox*
CreateRadioBox(wxWindow* parent, wxSizer* sizer,
const wxString& description,
const wxArrayString& choices,
int style = wxHORIZONTAL,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
216 wxChoice*
CreateChoices(wxWindow* parent, wxSizer* sizer,
const wxArrayString& choices,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
217 wxComboBox*
CreateComboBox(wxWindow* parent, wxSizer* sizer,
const wxArrayString& choices,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
218 wxGauge*
CreateGauge(wxWindow* parent, wxSizer* sizer,
int style,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
219 wxStaticBitmap*
CreateBitmap(wxWindow* parent, wxSizer* sizer,
const wxString& filename,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
220 wxSlider*
CreateSlider(wxWindow* parent, wxSizer* sizer,
int nMin,
int nMax,
int nInitial,
int style,
int id = wxID_ANY,
int alignment = wxALIGN_CENTER_VERTICAL);
This class simplifies the creation of simple windows and creates a common layout among all windows.
wxStaticText * AddStaticText(wxWindow *parent, wxSizer *sizer, const wxString &text, int id=wxID_STATIC, int alignment=wxALIGN_CENTER_VERTICAL)
Add some static test to the current sizer and window.
wxListView * CreateListView(wxWindow *parent, wxSizer *sizer, int nStyle=wxLC_REPORT, wxSize size=wxDefaultSize, int id=wxID_ANY)
This member function creates the layout for a listview control.
wxGauge * CreateGauge(wxWindow *parent, wxSizer *sizer, int style, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a progress bar.
wxStaticBitmap * CreateBitmap(wxWindow *parent, wxSizer *sizer, const wxString &filename, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a static bitmap.
SpinBut * CreateSpinControl(wxWindow *parent, wxSizer *sizer, const wxString &description, int nMin, int nMax, int nInitial, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a spin control including the assigned text.
wxTreeListCtrl * CreateTreeListCtrl(wxWindow *parent, wxSizer *sizer, int nStyle=wxTL_SINGLE, wxSize size=wxDefaultSize, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a treelist control.
wxTextCtrl * CreatePathInput(wxWindow *parent, wxSizer *sizer, const wxString &description, int buttonID, int id=wxID_ANY)
This member function creates the layout for a path input dialog including the "choose" button.
void AddSpacer(int nSize=10, wxSizer *sizer=nullptr)
Add extra space between the last added (main) element and the next element to be added.
wxChoice * CreateChoices(wxWindow *parent, wxSizer *sizer, const wxArrayString &choices, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a dropdown list.
wxRadioBox * CreateRadioBox(wxWindow *parent, wxSizer *sizer, const wxString &description, const wxArrayString &choices, int style=wxHORIZONTAL, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a radio box.
wxBoxSizer * horizontalSizer
wxcode::wxTreeListCtrl * CreateWxcTreeListCtrl(wxWindow *parent, wxSizer *sizer, int nStyle=wxTR_TWIST_BUTTONS|wxTR_FULL_ROW_HIGHLIGHT|wxTR_EXTENDED, wxSize size=wxDefaultSize, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a treelist control in the wxCode variant.
wxSlider * CreateSlider(wxWindow *parent, wxSizer *sizer, int nMin, int nMax, int nInitial, int style, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a slider.
wxCheckBox * CreateCheckBox(wxWindow *parent, wxSizer *sizer, const wxString &description, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a usual checkbox.
wxBoxSizer * getMainSizer()
Return the pointer to the current main layout sizer.
wxStaticBoxSizer * createGroup(const wxString &sGroupName, int orient=wxVERTICAL, wxWindow *parent=nullptr, wxSizer *sizer=nullptr, int expand=0)
Member function to create a group (a static box with a label) in the panel.
wxComboBox * CreateComboBox(wxWindow *parent, wxSizer *sizer, const wxArrayString &choices, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a combobox.
wxBoxSizer * getVerticalSizer()
Return the pointer to the vertical sizer.
wxBoxSizer * getHorizontalSizer()
Return the pointer to the horizontal sizer.
wxCollapsiblePane * createCollapsibleGroup(const wxString &label, wxWindow *parent=nullptr, wxSizer *sizer=nullptr)
Member function to create a collapsible group.
wxButton * CreateButton(wxWindow *parent, wxSizer *sizer, const wxString &description, int id=wxID_ANY, int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a button.
TextField * CreateTextInput(wxWindow *parent, wxSizer *sizer, const wxString &description, const wxString &sDefault=wxEmptyString, int nStyle=0, int id=wxID_ANY, const wxSize &size=wxSize(310,-1), int alignment=wxALIGN_CENTER_VERTICAL)
This member function creates the layout for a text input.
GroupPanel(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, bool useVerticalSizer=true)
Constructor.
wxBoxSizer * verticalSizer
This class is a extension to the standard wxSpinCtrl to combine it with a read- and changeable label.
wxString GetLabel()
Get the current label.
void SetLabel(const wxString &label)
Set a new label.
SpinBut(wxWindow *parent, wxWindowID id, const wxSize &size, int nMin, int nMax, int nInitial)
virtual bool Enable(bool enable)
Enable or disable the label and the control.
virtual bool Show(bool show)
Show or hide the label and the control.
This class is a extension to the standard wxTextCtrl to combine it with a read- and changeable label.
wxString GetLabel()
Get the current label.
virtual bool Show(bool show)
Show or hide the label and the control.
void SetLabel(const wxString &label)
Set a new label.
virtual bool Enable(bool enable)
Enable or disable the label and the control.
TextField(wxWindow *parent, wxWindowID id, const wxString &sDefault, const wxSize &size, int nStyle)