|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class simplifies the creation of simple windows and creates a common layout among all windows. More...
#include <grouppanel.hpp>
Public Member Functions | |
| GroupPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, bool useVerticalSizer=true) | |
| Constructor. More... | |
| wxBoxSizer * | getVerticalSizer () |
| Return the pointer to the vertical sizer. More... | |
| wxBoxSizer * | getHorizontalSizer () |
| Return the pointer to the horizontal sizer. More... | |
| wxBoxSizer * | getMainSizer () |
| Return the pointer to the current main layout sizer. More... | |
| void | AddSpacer (int nSize=10, wxSizer *sizer=nullptr) |
| Add extra space between the last added (main) element and the next element to be added. More... | |
| 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. More... | |
| 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. More... | |
| wxBoxSizer * | createGroup (int orient=wxVERTICAL, wxSizer *sizer=nullptr, int expand=0) |
| Member function to create a group represented as a box sizer. More... | |
| wxCollapsiblePane * | createCollapsibleGroup (const wxString &label, wxWindow *parent=nullptr, wxSizer *sizer=nullptr) |
| Member function to create a collapsible group. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
Private Attributes | |
| wxBoxSizer * | verticalSizer |
| wxBoxSizer * | horizontalSizer |
| wxBoxSizer * | mainSizer |
This class simplifies the creation of simple windows and creates a common layout among all windows.
Definition at line 187 of file grouppanel.hpp.
| GroupPanel::GroupPanel | ( | wxWindow * | parent, |
| wxWindowID | id = wxID_ANY, |
||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| long | style = wxTAB_TRAVERSAL, |
||
| bool | useVerticalSizer = true |
||
| ) |
Constructor.
| parent | wxWindow* |
| id | wxWindowID |
| pos | const wxPoint& |
| size | const wxSize& |
| style | long |
Definition at line 35 of file grouppanel.cpp.
References horizontalSizer, mainSizer, and verticalSizer.
| void GroupPanel::AddSpacer | ( | int | nSize = 10, |
| wxSizer * | sizer = nullptr |
||
| ) |
Add extra space between the last added (main) element and the next element to be added.
| nSize | int |
| sizer | wxSizer* |
Definition at line 120 of file grouppanel.cpp.
References mainSizer.
Referenced by CustomWindow::layoutChild(), and RenameSymbolsDialog::RenameSymbolsDialog().
| wxStaticText * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| text | const wxString& |
| id | int |
Definition at line 140 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CellValueShaderDialog::createIntervalExclPage(), CellValueShaderDialog::createIntervalPage(), CellValueShaderDialog::createLtGtPage(), CustomWindow::layoutChild(), and PackageRepoBrowser::PackageRepoBrowser().
| wxStaticBitmap * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| filename | const wxString& |
| id | int |
| alignment | int |
Definition at line 566 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CustomWindow::layoutChild().
| wxButton * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| description | const wxString& |
| id | int |
| alignment | int |
Definition at line 447 of file grouppanel.cpp.
References ELEMENT_BORDER, and mainSizer.
Referenced by CustomWindow::layoutChild(), PackageDialog::PackageDialog(), and PackageRepoBrowser::PackageRepoBrowser().
| wxCheckBox * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| description | const wxString& |
| id | int |
| alignment | int |
Definition at line 316 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by OptionsDialog::CreateAnalyzerPage(), OptionsDialog::CreateConfigPage(), OptionsDialog::CreateDebuggerPage(), OptionsDialog::CreateEditorPage(), CellValueShaderDialog::createIntervalExclPage(), CellValueShaderDialog::createIntervalPage(), OptionsDialog::CreateMiscPage(), OptionsDialog::CreateStylePage(), CustomWindow::layoutChild(), and RenameSymbolsDialog::RenameSymbolsDialog().
| wxChoice * GroupPanel::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.
| parent | wxWindow* |
| wxSizer*sizer | |
| choices | const wxArrayString& |
| id | int |
| alignment | int |
Definition at line 495 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CellValueShaderDialog::createLtGtPage(), and CustomWindow::layoutChild().
| wxCollapsiblePane * GroupPanel::createCollapsibleGroup | ( | const wxString & | label, |
| wxWindow * | parent = nullptr, |
||
| wxSizer * | sizer = nullptr |
||
| ) |
Member function to create a collapsible group.
| label | const wxString& |
| parent | wxWindow* |
| sizer | wxSizer* |
Definition at line 215 of file grouppanel.cpp.
References mainSizer.
Referenced by CustomWindow::layoutChild().
| wxComboBox * GroupPanel::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.
| parent | wxWindow* |
| wxSizer*sizer | |
| choices | const wxArrayString& |
| id | int |
| alignment | int |
Definition at line 520 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CustomWindow::layoutChild().
| wxGauge * GroupPanel::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.
| parent | wxWindow* |
| wxSizer*sizer | |
| style | int |
| id | int |
| alignment | int |
Definition at line 545 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CustomWindow::layoutChild(), and PackageRepoBrowser::PackageRepoBrowser().
| wxStaticBoxSizer * GroupPanel::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.
| sGroupName | const wxString& |
| orient | int |
| parent | wxWindow* |
| sizer | wxSizer* |
| expand | int |
Definition at line 161 of file grouppanel.cpp.
References ELEMENT_BORDER, and mainSizer.
Referenced by OptionsDialog::CreateAnalyzerPage(), OptionsDialog::CreateConfigPage(), OptionsDialog::CreateDebuggerPage(), OptionsDialog::CreateEditorPage(), CellValueShaderDialog::createIntervalExclPage(), CellValueShaderDialog::createIntervalPage(), CellValueShaderDialog::createLtGtPage(), OptionsDialog::CreateMiscPage(), OptionsDialog::CreatePathPage(), OptionsDialog::CreateStylePage(), CustomWindow::layoutChild(), PackageDialog::PackageDialog(), PackageRepoBrowser::PackageRepoBrowser(), and RenameSymbolsDialog::RenameSymbolsDialog().
| wxBoxSizer * GroupPanel::createGroup | ( | int | orient = wxVERTICAL, |
| wxSizer * | sizer = nullptr, |
||
| int | expand = 0 |
||
| ) |
Member function to create a group represented as a box sizer.
| orient | int |
| sizer | wxSizer* |
| expand | int |
Definition at line 189 of file grouppanel.cpp.
References mainSizer.
| wxListView * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| wxLC_REPORT | int nStyle= |
| wxDefaultSize | wxSize size= |
| id | int |
Definition at line 376 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by PackageDialog::PackageDialog(), and RenameSymbolsDialog::RenameSymbolsDialog().
| wxTextCtrl * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| description | const wxString& |
| buttonID | int |
| id | int |
Definition at line 245 of file grouppanel.cpp.
References _guilang, ELEMENT_BORDER, and Language::get().
Referenced by OptionsDialog::CreatePathPage().
| wxRadioBox * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| description | const wxString& |
| choices | const wxArrayString& |
| style | int |
| id | int |
| alignment | int |
Definition at line 474 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CustomWindow::layoutChild().
| wxSlider * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| nMin | int |
| nMax | int |
| nInitial | int |
| style | int |
| id | int |
| alignment | int |
Definition at line 590 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CustomWindow::layoutChild().
| SpinBut * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| description | const wxString& |
| nMin | int |
| nMax | int |
| nInitial | int |
| id | int |
| alignment | int |
Definition at line 342 of file grouppanel.cpp.
References ELEMENT_BORDER, and SpinBut::m_label.
Referenced by OptionsDialog::CreateConfigPage(), OptionsDialog::CreateDebuggerPage(), OptionsDialog::CreateEditorPage(), OptionsDialog::CreateMiscPage(), and CustomWindow::layoutChild().
| TextField * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| description | const wxString& |
| sDefault | const wxString& |
| nStyle | int |
| id | int |
| size | const wxSize& |
| alignment | int |
Definition at line 285 of file grouppanel.cpp.
References ELEMENT_BORDER, and TextField::m_label.
Referenced by CellValueShaderDialog::createIntervalExclPage(), CellValueShaderDialog::createIntervalPage(), CellValueShaderDialog::createLtGtPage(), CustomWindow::layoutChild(), and RenameSymbolsDialog::RenameSymbolsDialog().
| wxTreeListCtrl * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| nStyle | int |
| size | wxSize |
| id | int |
| alignment | int |
Definition at line 399 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by CustomWindow::layoutChild().
| wxcode::wxTreeListCtrl * GroupPanel::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.
| parent | wxWindow* |
| sizer | wxSizer* |
| nStyle | int |
| size | wxSize |
| id | int |
| alignment | int |
Definition at line 424 of file grouppanel.cpp.
References ELEMENT_BORDER.
Referenced by PackageRepoBrowser::PackageRepoBrowser().
| wxBoxSizer * GroupPanel::getHorizontalSizer | ( | ) |
Return the pointer to the horizontal sizer.
Definition at line 91 of file grouppanel.cpp.
References horizontalSizer.
| wxBoxSizer * GroupPanel::getMainSizer | ( | ) |
Return the pointer to the current main layout sizer.
Definition at line 104 of file grouppanel.cpp.
References mainSizer.
Referenced by CellValueShaderDialog::createIntervalExclPage(), CellValueShaderDialog::createIntervalPage(), CellValueShaderDialog::createLtGtPage(), CustomWindow::layout(), CustomWindow::layoutChild(), and PackageRepoBrowser::PackageRepoBrowser().
| wxBoxSizer * GroupPanel::getVerticalSizer | ( | ) |
Return the pointer to the vertical sizer.
Definition at line 78 of file grouppanel.cpp.
References verticalSizer.
Referenced by OptionsDialog::CreateDebuggerPage(), OptionsDialog::CreateMiscPage(), and RenameSymbolsDialog::RenameSymbolsDialog().
|
private |
Definition at line 191 of file grouppanel.hpp.
Referenced by getHorizontalSizer(), and GroupPanel().
|
private |
Definition at line 192 of file grouppanel.hpp.
Referenced by AddSpacer(), CreateButton(), createCollapsibleGroup(), createGroup(), getMainSizer(), and GroupPanel().
|
private |
Definition at line 190 of file grouppanel.hpp.
Referenced by getVerticalSizer(), and GroupPanel().