mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-24 11:22:07 +00:00
ENH: refine ui logic with filament group
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)
This commit is contained in:
28
src/slic3r/GUI/CapsuleButton.hpp
Normal file
28
src/slic3r/GUI/CapsuleButton.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user