mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
wxBitmapComboBox under OSX and wxComboBox under other platforms is used on Manipulation panel for coordinate space choice now.
+ Fix of warning on wxBitmap.SetWidth(): deleted meaningless from wxWidgets 3.0 code
This commit is contained in:
parent
6d7d482ca1
commit
59017a7dae
3 changed files with 17 additions and 44 deletions
|
@ -7,7 +7,11 @@
|
|||
#include "libslic3r/Point.hpp"
|
||||
#include <float.h>
|
||||
|
||||
#ifdef __WXOSX__
|
||||
class wxBitmapComboBox;
|
||||
#else
|
||||
class wxComboBox;
|
||||
#endif // __WXOSX__
|
||||
class wxStaticText;
|
||||
class LockButton;
|
||||
class wxStaticBitmap;
|
||||
|
@ -16,6 +20,13 @@ class wxCheckBox;
|
|||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
#ifdef __WXOSX__
|
||||
static_assert(wxMAJOR_VERSION >= 3, "Use of wxBitmapComboBox on Manipulation panel requires wxWidgets 3.0 and newer");
|
||||
using choice_ctrl = wxBitmapComboBox;
|
||||
#else
|
||||
using choice_ctrl = wxComboBox;
|
||||
#endif // __WXOSX__
|
||||
|
||||
class Selection;
|
||||
|
||||
class ObjectManipulation;
|
||||
|
@ -125,7 +136,7 @@ private:
|
|||
// Does the object manipulation panel work in World or Local coordinates?
|
||||
bool m_world_coordinates = true;
|
||||
LockButton* m_lock_bnt{ nullptr };
|
||||
wxBitmapComboBox* m_word_local_combo = nullptr;
|
||||
choice_ctrl* m_word_local_combo { nullptr };
|
||||
|
||||
ScalableBitmap m_manifold_warning_bmp;
|
||||
wxStaticBitmap* m_fix_throught_netfab_bitmap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue