| 5 | #include "CubicSDR.h" |
| 6 | |
| 7 | ModemProperties::ModemProperties(wxWindow *parent, wxWindowID winid, |
| 8 | const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxPanel(parent, winid, pos, size, style, name) { |
| 9 | |
| 10 | m_propertyGrid = new wxPropertyGrid(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPG_DEFAULT_STYLE); |
| 11 | |
| 12 | bSizer = new wxBoxSizer( wxVERTICAL ); |
| 13 | |
| 14 | bSizer->Add(m_propertyGrid, 1, wxEXPAND, 0); |
| 15 | |
| 16 | this->SetSizer(bSizer); |
| 17 | |
| 18 | m_propertyGrid->Connect( wxEVT_PG_ITEM_COLLAPSED, wxPropertyGridEventHandler( ModemProperties::OnCollapse ), nullptr, this ); |
| 19 | m_propertyGrid->Connect( wxEVT_PG_ITEM_EXPANDED, wxPropertyGridEventHandler( ModemProperties::OnExpand ), nullptr, this ); |
| 20 | m_propertyGrid->Connect( wxEVT_PG_CHANGED, wxPropertyGridEventHandler( ModemProperties::OnChange ), nullptr, this ); |
| 21 | this->Connect( wxEVT_SHOW, wxShowEventHandler( ModemProperties::OnShow ), nullptr, this ); |
| 22 | |
| 23 | this->Connect( wxEVT_ENTER_WINDOW, wxMouseEventHandler( ModemProperties::OnMouseEnter ), nullptr, this); |
| 24 | this->Connect( wxEVT_LEAVE_WINDOW, wxMouseEventHandler( ModemProperties::OnMouseLeave ), nullptr, this); |
| 25 | |
| 26 | updateTheme(); |
| 27 | |
| 28 | mouseInView = false; |
| 29 | collapsed = false; |
| 30 | } |
| 31 | |
| 32 | void ModemProperties::OnShow(wxShowEvent & /* event */) { |
| 33 | } |