2018-02-02 11:38:35 +00:00
|
|
|
#ifndef slic3r_GUI_wxExtensions_hpp_
|
|
|
|
#define slic3r_GUI_wxExtensions_hpp_
|
|
|
|
|
|
|
|
#include <wx/checklst.h>
|
|
|
|
#include <wx/combo.h>
|
2018-04-06 11:37:00 +00:00
|
|
|
#include <wx/dataview.h>
|
2018-05-10 14:36:12 +00:00
|
|
|
#include <wx/button.h>
|
2019-01-10 10:05:58 +00:00
|
|
|
#include <wx/sizer.h>
|
2019-01-25 16:21:45 +00:00
|
|
|
#include <wx/menu.h>
|
2020-01-31 20:03:17 +00:00
|
|
|
#include <wx/bmpcbox.h>
|
2018-05-10 14:36:12 +00:00
|
|
|
|
2018-05-04 16:32:20 +00:00
|
|
|
#include <vector>
|
2018-10-22 13:18:05 +00:00
|
|
|
#include <functional>
|
2018-02-02 11:38:35 +00:00
|
|
|
|
2019-06-06 12:14:29 +00:00
|
|
|
|
2019-05-07 11:35:37 +00:00
|
|
|
#ifdef __WXMSW__
|
2019-05-03 07:44:19 +00:00
|
|
|
void msw_rescale_menu(wxMenu* menu);
|
2019-05-07 11:35:37 +00:00
|
|
|
#else /* __WXMSW__ */
|
|
|
|
inline void msw_rescale_menu(wxMenu* /* menu */) {}
|
|
|
|
#endif /* __WXMSW__ */
|
2019-05-03 07:44:19 +00:00
|
|
|
|
|
|
|
wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const wxString& description,
|
2019-05-13 12:27:51 +00:00
|
|
|
std::function<void(wxCommandEvent& event)> cb, const wxBitmap& icon, wxEvtHandler* event_handler = nullptr,
|
|
|
|
std::function<bool()> const cb_condition = []() { return true;}, wxWindow* parent = nullptr);
|
2018-10-17 10:17:25 +00:00
|
|
|
wxMenuItem* append_menu_item(wxMenu* menu, int id, const wxString& string, const wxString& description,
|
2019-05-13 12:27:51 +00:00
|
|
|
std::function<void(wxCommandEvent& event)> cb, const std::string& icon = "", wxEvtHandler* event_handler = nullptr,
|
|
|
|
std::function<bool()> const cb_condition = []() { return true; }, wxWindow* parent = nullptr);
|
2018-10-18 12:42:21 +00:00
|
|
|
|
2019-08-16 14:17:37 +00:00
|
|
|
wxMenuItem* append_submenu(wxMenu* menu, wxMenu* sub_menu, int id, const wxString& string, const wxString& description,
|
2019-05-13 12:27:51 +00:00
|
|
|
const std::string& icon = "",
|
|
|
|
std::function<bool()> const cb_condition = []() { return true; }, wxWindow* parent = nullptr);
|
2019-03-28 15:28:34 +00:00
|
|
|
|
2019-08-16 14:17:37 +00:00
|
|
|
wxMenuItem* append_menu_radio_item(wxMenu* menu, int id, const wxString& string, const wxString& description,
|
2019-03-28 15:28:34 +00:00
|
|
|
std::function<void(wxCommandEvent& event)> cb, wxEvtHandler* event_handler);
|
2018-10-17 10:17:25 +00:00
|
|
|
|
2019-07-31 08:12:13 +00:00
|
|
|
wxMenuItem* append_menu_check_item(wxMenu* menu, int id, const wxString& string, const wxString& description,
|
2020-02-04 13:42:26 +00:00
|
|
|
std::function<void(wxCommandEvent & event)> cb, wxEvtHandler* event_handler,
|
|
|
|
std::function<bool()> const enable_condition = []() { return true; },
|
|
|
|
std::function<bool()> const check_condition = []() { return true; }, wxWindow* parent = nullptr);
|
2019-07-31 08:12:13 +00:00
|
|
|
|
2020-01-23 14:07:31 +00:00
|
|
|
void enable_menu_item(wxUpdateUIEvent& evt, std::function<bool()> const cb_condition, wxMenuItem* item, wxWindow* win);
|
|
|
|
|
2019-04-25 14:23:50 +00:00
|
|
|
class wxDialog;
|
2019-10-18 10:35:35 +00:00
|
|
|
|
2019-04-26 08:52:38 +00:00
|
|
|
void edit_tooltip(wxString& tooltip);
|
2019-04-25 13:06:44 +00:00
|
|
|
void msw_buttons_rescale(wxDialog* dlg, const int em_unit, const std::vector<int>& btn_ids);
|
|
|
|
int em_unit(wxWindow* win);
|
2020-02-10 19:05:20 +00:00
|
|
|
int mode_icon_px_size();
|
2019-04-17 19:35:53 +00:00
|
|
|
|
2020-01-31 15:50:11 +00:00
|
|
|
wxBitmap create_scaled_bitmap(const std::string& bmp_name, wxWindow *win = nullptr,
|
2020-01-28 15:15:43 +00:00
|
|
|
const int px_cnt = 16, const bool grayscale = false);
|
2019-02-06 14:29:13 +00:00
|
|
|
|
2019-10-24 08:38:36 +00:00
|
|
|
std::vector<wxBitmap*> get_extruder_color_icons(bool thin_icon = false);
|
2019-10-18 10:35:35 +00:00
|
|
|
void apply_extruder_selector(wxBitmapComboBox** ctrl,
|
|
|
|
wxWindow* parent,
|
|
|
|
const std::string& first_item = "",
|
|
|
|
wxPoint pos = wxDefaultPosition,
|
2019-10-24 08:38:36 +00:00
|
|
|
wxSize size = wxDefaultSize,
|
|
|
|
bool use_thin_icon = false);
|
2019-10-02 09:53:50 +00:00
|
|
|
|
2018-02-02 11:38:35 +00:00
|
|
|
class wxCheckListBoxComboPopup : public wxCheckListBox, public wxComboPopup
|
|
|
|
{
|
2018-02-20 13:25:40 +00:00
|
|
|
static const unsigned int DefaultWidth;
|
|
|
|
static const unsigned int DefaultHeight;
|
2018-02-20 13:44:00 +00:00
|
|
|
static const unsigned int DefaultItemHeight;
|
2018-02-02 11:38:35 +00:00
|
|
|
|
|
|
|
wxString m_text;
|
|
|
|
|
2018-05-17 08:23:02 +00:00
|
|
|
// Events sent on mouseclick are quite complex. Function OnListBoxSelection is supposed to pass the event to the checkbox, which works fine on
|
|
|
|
// Win. On OSX and Linux the events are generated differently - clicking on the checkbox square generates the event twice (and the square
|
|
|
|
// therefore seems not to respond).
|
|
|
|
// This enum is meant to save current state of affairs, i.e., if the event forwarding is ok to do or not. It is only used on Linux
|
|
|
|
// and OSX by some #ifdefs. It also stores information whether OnListBoxSelection is supposed to change the checkbox status,
|
|
|
|
// or if it changed status on its own already (which happens when the square is clicked). More comments in OnCheckListBox(...)
|
|
|
|
// There indeed is a better solution, maybe making a custom event used for the event passing to distinguish the original and passed message
|
|
|
|
// and blocking one of them on OSX and Linux. Feel free to refactor, but carefully test on all platforms.
|
|
|
|
enum class OnCheckListBoxFunction{
|
|
|
|
FreeToProceed,
|
|
|
|
RefuseToProceed,
|
|
|
|
WasRefusedLastTime
|
|
|
|
} m_check_box_events_status = OnCheckListBoxFunction::FreeToProceed;
|
|
|
|
|
|
|
|
|
2018-02-02 11:38:35 +00:00
|
|
|
public:
|
|
|
|
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);
|
|
|
|
|
2018-02-20 13:25:40 +00:00
|
|
|
virtual void OnKeyEvent(wxKeyEvent& evt);
|
|
|
|
|
2018-02-02 11:38:35 +00:00
|
|
|
void OnCheckListBox(wxCommandEvent& evt);
|
|
|
|
void OnListBoxSelection(wxCommandEvent& evt);
|
|
|
|
};
|
|
|
|
|
2020-01-31 15:50:11 +00:00
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
// *** PresetBitmapComboBox ***
|
|
|
|
|
|
|
|
// BitmapComboBox used to presets list on Sidebar and Tabs
|
|
|
|
class PresetBitmapComboBox: public wxBitmapComboBox
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PresetBitmapComboBox(wxWindow* parent, const wxSize& size = wxDefaultSize);
|
|
|
|
~PresetBitmapComboBox() {}
|
|
|
|
|
|
|
|
#ifdef __APPLE__
|
|
|
|
protected:
|
|
|
|
/* For PresetBitmapComboBox we use bitmaps that are created from images that are already scaled appropriately for Retina
|
|
|
|
* (Contrary to the intuition, the `scale` argument for Bitmap's constructor doesn't mean
|
|
|
|
* "please scale this to such and such" but rather
|
|
|
|
* "the wxImage is already sized for backing scale such and such". )
|
|
|
|
* Unfortunately, the constructor changes the size of wxBitmap too.
|
|
|
|
* Thus We need to use unscaled size value for bitmaps that we use
|
|
|
|
* to avoid scaled size of control items.
|
|
|
|
* For this purpose control drawing methods and
|
|
|
|
* control size calculation methods (virtual) are overridden.
|
|
|
|
**/
|
|
|
|
virtual bool OnAddBitmap(const wxBitmap& bitmap) override;
|
|
|
|
virtual void OnDrawItem(wxDC& dc, const wxRect& rect, int item, int flags) const override;
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-06 11:37:00 +00:00
|
|
|
|
|
|
|
// *** wxDataViewTreeCtrlComboBox ***
|
|
|
|
|
|
|
|
class wxDataViewTreeCtrlComboPopup: public wxDataViewTreeCtrl, public wxComboPopup
|
|
|
|
{
|
2019-08-16 14:17:37 +00:00
|
|
|
static const unsigned int DefaultWidth;
|
|
|
|
static const unsigned int DefaultHeight;
|
|
|
|
static const unsigned int DefaultItemHeight;
|
2018-04-06 11:37:00 +00:00
|
|
|
|
2019-08-16 14:17:37 +00:00
|
|
|
wxString m_text;
|
|
|
|
int m_cnt_open_items{0};
|
2018-04-06 11:37:00 +00:00
|
|
|
|
|
|
|
public:
|
2019-08-16 14:17:37 +00:00
|
|
|
virtual bool Create(wxWindow* parent);
|
|
|
|
virtual wxWindow* GetControl() { return this; }
|
|
|
|
virtual void SetStringValue(const wxString& value) { m_text = value; }
|
|
|
|
virtual wxString GetStringValue() const { return m_text; }
|
2018-04-09 10:41:25 +00:00
|
|
|
// virtual wxSize GetAdjustedSize(int minWidth, int prefHeight, int maxHeight);
|
2018-04-06 11:37:00 +00:00
|
|
|
|
2019-08-16 14:17:37 +00:00
|
|
|
virtual void OnKeyEvent(wxKeyEvent& evt);
|
|
|
|
void OnDataViewTreeCtrlSelection(wxCommandEvent& evt);
|
|
|
|
void SetItemsCnt(int cnt) { m_cnt_open_items = cnt; }
|
2018-04-06 11:37:00 +00:00
|
|
|
};
|
|
|
|
|
2018-05-10 14:36:12 +00:00
|
|
|
|
2019-04-16 08:05:45 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
2019-04-24 23:45:00 +00:00
|
|
|
// ScalableBitmap
|
2019-04-16 08:05:45 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
class ScalableBitmap
|
2019-04-16 08:05:45 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-04-24 23:45:00 +00:00
|
|
|
ScalableBitmap() {};
|
2019-08-16 14:17:37 +00:00
|
|
|
ScalableBitmap( wxWindow *parent,
|
2019-04-24 23:45:00 +00:00
|
|
|
const std::string& icon_name = "",
|
2020-01-28 15:15:43 +00:00
|
|
|
const int px_cnt = 16);
|
2019-04-16 08:05:45 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
~ScalableBitmap() {}
|
2019-04-16 08:05:45 +00:00
|
|
|
|
2020-01-31 15:50:11 +00:00
|
|
|
wxSize GetBmpSize() const;
|
|
|
|
int GetBmpWidth() const;
|
|
|
|
int GetBmpHeight() const;
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
void msw_rescale();
|
2019-04-16 08:05:45 +00:00
|
|
|
|
|
|
|
const wxBitmap& bmp() const { return m_bmp; }
|
|
|
|
wxBitmap& bmp() { return m_bmp; }
|
|
|
|
const std::string& name() const{ return m_icon_name; }
|
|
|
|
|
2019-12-13 12:23:55 +00:00
|
|
|
int px_cnt()const {return m_px_cnt;}
|
|
|
|
|
2019-04-16 08:05:45 +00:00
|
|
|
private:
|
|
|
|
wxWindow* m_parent{ nullptr };
|
|
|
|
wxBitmap m_bmp = wxBitmap();
|
|
|
|
std::string m_icon_name = "";
|
|
|
|
int m_px_cnt {16};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-08-28 13:51:53 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
2019-04-24 23:45:00 +00:00
|
|
|
// LockButton
|
2018-08-28 13:51:53 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
class LockButton : public wxButton
|
2018-08-28 13:51:53 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-04-24 23:45:00 +00:00
|
|
|
LockButton(
|
2018-08-28 13:51:53 +00:00
|
|
|
wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize);
|
2019-04-24 23:45:00 +00:00
|
|
|
~LockButton() {}
|
2018-08-28 13:51:53 +00:00
|
|
|
|
|
|
|
void OnButton(wxCommandEvent& event);
|
|
|
|
|
2019-06-20 10:56:23 +00:00
|
|
|
bool IsLocked() const { return m_is_pushed; }
|
2019-01-09 07:48:25 +00:00
|
|
|
void SetLock(bool lock);
|
2018-08-28 13:51:53 +00:00
|
|
|
|
2019-06-20 10:56:23 +00:00
|
|
|
// create its own Enable/Disable functions to not really disabled button because of tooltip enabling
|
|
|
|
void enable() { m_disabled = false; }
|
|
|
|
void disable() { m_disabled = true; }
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
void msw_rescale();
|
2019-04-16 08:05:45 +00:00
|
|
|
|
2018-08-28 13:51:53 +00:00
|
|
|
protected:
|
2019-07-31 15:14:32 +00:00
|
|
|
void update_button_bitmaps();
|
2018-08-28 13:51:53 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_is_pushed = false;
|
2019-06-20 10:56:23 +00:00
|
|
|
bool m_disabled = false;
|
2018-08-28 13:51:53 +00:00
|
|
|
|
2019-07-31 15:14:32 +00:00
|
|
|
ScalableBitmap m_bmp_lock_closed;
|
|
|
|
ScalableBitmap m_bmp_lock_closed_f;
|
|
|
|
ScalableBitmap m_bmp_lock_open;
|
|
|
|
ScalableBitmap m_bmp_lock_open_f;
|
2019-04-13 21:46:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2019-04-24 23:45:00 +00:00
|
|
|
// ScalableButton
|
2019-04-13 21:46:52 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
class ScalableButton : public wxButton
|
2019-04-13 21:46:52 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-04-24 23:45:00 +00:00
|
|
|
ScalableButton(){}
|
|
|
|
ScalableButton(
|
|
|
|
wxWindow * parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const std::string& icon_name = "",
|
|
|
|
const wxString& label = wxEmptyString,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
long style = wxBU_EXACTFIT | wxNO_BORDER);
|
2019-04-13 21:46:52 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
ScalableButton(
|
|
|
|
wxWindow * parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const ScalableBitmap& bitmap,
|
|
|
|
const wxString& label = wxEmptyString,
|
|
|
|
long style = wxBU_EXACTFIT | wxNO_BORDER);
|
2019-04-13 21:46:52 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
~ScalableButton() {}
|
2019-04-13 21:46:52 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
void SetBitmap_(const ScalableBitmap& bmp);
|
2019-08-01 09:35:43 +00:00
|
|
|
void SetBitmapDisabled_(const ScalableBitmap &bmp);
|
2019-12-13 16:56:04 +00:00
|
|
|
int GetBitmapHeight();
|
2019-04-13 21:46:52 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
void msw_rescale();
|
2019-04-13 21:46:52 +00:00
|
|
|
|
|
|
|
private:
|
2020-02-10 11:46:07 +00:00
|
|
|
wxWindow* m_parent { nullptr };
|
|
|
|
std::string m_current_icon_name;
|
|
|
|
std::string m_disabled_icon_name;
|
2019-08-01 09:35:43 +00:00
|
|
|
int m_width {-1}; // should be multiplied to em_unit
|
|
|
|
int m_height{-1}; // should be multiplied to em_unit
|
2019-12-13 12:23:55 +00:00
|
|
|
|
|
|
|
// bitmap dimensions
|
|
|
|
int m_px_cnt{ 16 };
|
2019-04-13 21:46:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-01-10 10:05:58 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
2019-04-24 23:45:00 +00:00
|
|
|
// ModeButton
|
2019-01-10 10:05:58 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
class ModeButton : public ScalableButton
|
2019-01-10 10:05:58 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-04-24 23:45:00 +00:00
|
|
|
ModeButton(
|
|
|
|
wxWindow* parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const std::string& icon_name = "",
|
|
|
|
const wxString& mode = wxEmptyString,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
2020-02-10 11:46:07 +00:00
|
|
|
|
|
|
|
ModeButton(
|
|
|
|
wxWindow* parent,
|
|
|
|
const wxString& mode = wxEmptyString,
|
|
|
|
const std::string& icon_name = "",
|
|
|
|
int px_cnt = 16);
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
~ModeButton() {}
|
2019-01-10 10:05:58 +00:00
|
|
|
|
2020-02-10 11:46:07 +00:00
|
|
|
void Init(const wxString& mode);
|
|
|
|
|
2019-01-10 10:05:58 +00:00
|
|
|
void OnButton(wxCommandEvent& event);
|
|
|
|
void OnEnterBtn(wxMouseEvent& event) { focus_button(true); event.Skip(); }
|
|
|
|
void OnLeaveBtn(wxMouseEvent& event) { focus_button(m_is_selected); event.Skip(); }
|
|
|
|
|
|
|
|
void SetState(const bool state);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void focus_button(const bool focus);
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_is_selected = false;
|
|
|
|
|
2019-02-26 09:50:00 +00:00
|
|
|
wxString m_tt_selected;
|
|
|
|
wxString m_tt_focused;
|
2019-01-10 10:05:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2019-04-24 23:45:00 +00:00
|
|
|
// ModeSizer
|
2019-01-10 10:05:58 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
class ModeSizer : public wxFlexGridSizer
|
2019-01-10 10:05:58 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-07-25 14:23:32 +00:00
|
|
|
ModeSizer( wxWindow *parent, int hgap = 0);
|
2019-04-24 23:45:00 +00:00
|
|
|
~ModeSizer() {}
|
2019-01-10 10:05:58 +00:00
|
|
|
|
2019-01-10 12:41:59 +00:00
|
|
|
void SetMode(const /*ConfigOptionMode*/int mode);
|
2019-01-10 10:05:58 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
void msw_rescale();
|
2019-04-13 21:46:52 +00:00
|
|
|
|
2019-01-10 10:05:58 +00:00
|
|
|
private:
|
2019-04-24 23:45:00 +00:00
|
|
|
std::vector<ModeButton*> m_mode_btns;
|
2018-08-28 13:51:53 +00:00
|
|
|
};
|
2018-08-29 09:21:22 +00:00
|
|
|
|
|
|
|
|
2019-01-25 12:16:32 +00:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2019-04-24 23:45:00 +00:00
|
|
|
// MenuWithSeparators
|
2019-01-25 12:16:32 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
class MenuWithSeparators : public wxMenu
|
2019-01-25 12:16:32 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-04-24 23:45:00 +00:00
|
|
|
MenuWithSeparators(const wxString& title, long style = 0)
|
2019-05-07 11:35:37 +00:00
|
|
|
: wxMenu(title, style) {}
|
2019-01-25 12:16:32 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
MenuWithSeparators(long style = 0)
|
2019-05-07 11:35:37 +00:00
|
|
|
: wxMenu(style) {}
|
2019-01-25 12:16:32 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
~MenuWithSeparators() {}
|
2019-01-25 12:16:32 +00:00
|
|
|
|
|
|
|
void DestroySeparators();
|
2019-04-24 23:45:00 +00:00
|
|
|
void SetFirstSeparator();
|
|
|
|
void SetSecondSeparator();
|
2019-01-25 12:16:32 +00:00
|
|
|
|
2019-04-24 23:45:00 +00:00
|
|
|
private:
|
2019-01-25 12:16:32 +00:00
|
|
|
wxMenuItem* m_separator_frst { nullptr }; // use like separator before settings item
|
|
|
|
wxMenuItem* m_separator_scnd { nullptr }; // use like separator between settings items
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-05-04 16:32:20 +00:00
|
|
|
|
2018-02-02 11:38:35 +00:00
|
|
|
#endif // slic3r_GUI_wxExtensions_hpp_
|