1. Add filament group pop up when slice 2. Add more filament modes in filament dialog 3. Add capsule button jira:NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I8bc3a2e08696e406b89e550a0335a1a36728ee65 (cherry picked from commit f1702a5c3604f685a3b35ea0e83d29bdbbd90f70)
28 lines
618 B
C++
28 lines
618 B
C++
#ifndef CAPSULE_BUTTON_HPP
|
|
#define CAPSULE_BUTTON_HPP
|
|
|
|
#include "GUI.hpp"
|
|
#include "wxExtensions.hpp"
|
|
|
|
namespace Slic3r { namespace GUI {
|
|
class CapsuleButton : public wxPanel
|
|
{
|
|
public:
|
|
CapsuleButton(wxWindow *parent, wxWindowID id, const wxString &label, bool selected);
|
|
void Select(bool selected);
|
|
protected:
|
|
void OnPaint(wxPaintEvent &event);
|
|
private:
|
|
void OnEnterWindow(wxMouseEvent &event);
|
|
void OnLeaveWindow(wxMouseEvent &event);
|
|
void UpdateStatus();
|
|
|
|
wxBitmapButton *m_btn;
|
|
Label *m_label;
|
|
|
|
bool m_hovered;
|
|
bool m_selected;
|
|
};
|
|
}} // namespace Slic3r::GUI
|
|
|
|
#endif |