#include <src/slic3r/GUI/wxExtensions.hpp>
◆ Create()
| bool wxDataViewTreeCtrlComboPopup::Create |
( |
wxWindow * |
parent | ) |
|
|
virtual |
312{
313 return wxDataViewTreeCtrl::Create(parent, wxID_ANY, wxPoint(0, 0), wxDefaultSize, wxDV_NO_HEADER);
314}
◆ GetControl()
| virtual wxWindow * wxDataViewTreeCtrlComboPopup::GetControl |
( |
| ) |
|
|
inlinevirtual |
◆ GetStringValue()
| virtual wxString wxDataViewTreeCtrlComboPopup::GetStringValue |
( |
| ) |
const |
|
inlinevirtual |
◆ OnDataViewTreeCtrlSelection()
| void wxDataViewTreeCtrlComboPopup::OnDataViewTreeCtrlSelection |
( |
wxCommandEvent & |
evt | ) |
|
354{
355 wxComboCtrl* cmb = GetComboCtrl();
356 auto selected = GetItemText(GetSelection());
357 cmb->SetText(selected);
358}
◆ OnKeyEvent()
| void wxDataViewTreeCtrlComboPopup::OnKeyEvent |
( |
wxKeyEvent & |
evt | ) |
|
|
virtual |
336{
337
338 if (evt.GetKeyCode() == WXK_UP)
339 {
340 return;
341 }
342 else if (evt.GetKeyCode() == WXK_DOWN)
343 {
344 return;
345 }
346 else
347 {
348 evt.Skip();
349 return;
350 }
351}
◆ SetItemsCnt()
| void wxDataViewTreeCtrlComboPopup::SetItemsCnt |
( |
int |
cnt | ) |
|
|
inline |
◆ SetStringValue()
| virtual void wxDataViewTreeCtrlComboPopup::SetStringValue |
( |
const wxString & |
value | ) |
|
|
inlinevirtual |
◆ DefaultHeight
| const unsigned int wxDataViewTreeCtrlComboPopup::DefaultHeight = 200 |
|
staticprivate |
◆ DefaultItemHeight
| const unsigned int wxDataViewTreeCtrlComboPopup::DefaultItemHeight = 22 |
|
staticprivate |
◆ DefaultWidth
| const unsigned int wxDataViewTreeCtrlComboPopup::DefaultWidth = 270 |
|
staticprivate |
◆ m_cnt_open_items
| int wxDataViewTreeCtrlComboPopup::m_cnt_open_items {0} |
|
private |
◆ m_text
| wxString wxDataViewTreeCtrlComboPopup::m_text |
|
private |
The documentation for this class was generated from the following files: