mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-26 16:13:58 -06:00
ENH: icon for param group
Change-Id: I435830615747aa850ed82621349f5fedfc29d860
This commit is contained in:
parent
c5024af7e2
commit
d41e0db18f
33 changed files with 477 additions and 83 deletions
|
@ -1,26 +1,34 @@
|
|||
#ifndef slic3r_GUI_StaticLine_hpp_
|
||||
#define slic3r_GUI_StaticLine_hpp_
|
||||
|
||||
#include "../wxExtensions.hpp"
|
||||
#include "wx/window.h"
|
||||
|
||||
class StaticLine : public wxWindow
|
||||
{
|
||||
public:
|
||||
StaticLine(wxWindow* parent, bool vertical = false, const wxString& label = {});
|
||||
StaticLine(wxWindow *parent, bool vertical = false, const wxString &label = {}, const wxString &icon = {});
|
||||
|
||||
public:
|
||||
void SetLabel(const wxString& label) override;
|
||||
|
||||
void SetIcon(const wxString& icon);
|
||||
|
||||
void SetLineColour(wxColour color);
|
||||
|
||||
void Rescale();
|
||||
|
||||
private:
|
||||
wxPen pen;
|
||||
bool vertical;
|
||||
ScalableBitmap icon;
|
||||
|
||||
private:
|
||||
void paintEvent(wxPaintEvent& evt);
|
||||
|
||||
void render(wxDC& dc);
|
||||
void messureSize();
|
||||
|
||||
void render(wxDC &dc);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue