mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
GCode Preview - New Layout
This commit is contained in:
parent
c550ad2268
commit
787a5f1715
7 changed files with 202 additions and 31 deletions
27
xs/src/slic3r/GUI/wxExtensions.hpp
Normal file
27
xs/src/slic3r/GUI/wxExtensions.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#ifndef slic3r_GUI_wxExtensions_hpp_
|
||||
#define slic3r_GUI_wxExtensions_hpp_
|
||||
|
||||
#include <wx/checklst.h>
|
||||
#include <wx/combo.h>
|
||||
|
||||
class wxCheckListBoxComboPopup : public wxCheckListBox, public wxComboPopup
|
||||
{
|
||||
static const unsigned int Height;
|
||||
|
||||
wxWindowID m_id;
|
||||
wxString m_text;
|
||||
|
||||
public:
|
||||
explicit wxCheckListBoxComboPopup(wxWindowID id);
|
||||
|
||||
virtual bool Create(wxWindow* parent);
|
||||
virtual wxWindow* GetControl();
|
||||
virtual void SetStringValue(const wxString& value);
|
||||
virtual wxString GetStringValue() const;
|
||||
virtual wxSize GetAdjustedSize(int minWidth, int prefHeight, int maxHeight);
|
||||
|
||||
void OnCheckListBox(wxCommandEvent& evt);
|
||||
void OnListBoxSelection(wxCommandEvent& evt);
|
||||
};
|
||||
|
||||
#endif // slic3r_GUI_wxExtensions_hpp_
|
Loading…
Add table
Add a link
Reference in a new issue