mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
PrusaCollapsiblePane is used only on MSW
This commit is contained in:
parent
72541ad13e
commit
dcf0b432cb
2 changed files with 5 additions and 22 deletions
|
@ -190,7 +190,7 @@ void wxDataViewTreeCtrlComboPopup::OnDataViewTreeCtrlSelection(wxCommandEvent& e
|
|||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// *** PrusaCollapsiblePane ***
|
||||
// *** PrusaCollapsiblePane *** used only #ifdef __WXMSW__
|
||||
// ----------------------------------------------------------------------------
|
||||
#ifdef __WXMSW__
|
||||
bool PrusaCollapsiblePane::Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
|
@ -288,7 +288,6 @@ bool PrusaCollapsiblePane::Layout()
|
|||
|
||||
return true;
|
||||
}
|
||||
#endif //__WXMSW__
|
||||
|
||||
void PrusaCollapsiblePane::OnStateChange_(const wxSize& sz)
|
||||
{
|
||||
|
@ -330,21 +329,12 @@ void PrusaCollapsiblePane::Collapse(bool collapse)
|
|||
// update our state
|
||||
m_pPane->Show(!collapse);
|
||||
|
||||
// update button label
|
||||
#if defined( __WXMAC__ ) && !defined(__WXUNIVERSAL__)
|
||||
m_pButton->SetOpen(!collapse);
|
||||
#else
|
||||
#ifdef __WXMSW__
|
||||
// update button bitmap
|
||||
UpdateBtnBmp();
|
||||
#else
|
||||
// NB: this must be done after updating our "state"
|
||||
m_pButton->SetLabel(GetBtnLabel());
|
||||
#endif //__WXMSW__
|
||||
#endif
|
||||
|
||||
OnStateChange_(GetBestSize());
|
||||
}
|
||||
#endif //__WXMSW__
|
||||
|
||||
// *****************************************************************************
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue