39 m_borderWidth( aParent, m_borderWidthLabel, m_borderWidthCtrl, m_borderWidthUnits, true )
43 SetTitle( wxString::Format( GetTitle(), aShape->EDA_SHAPE::GetFriendlyName() ) );
53 for(
const auto& [ lineStyle, lineStyleDesc ] :
lineTypeNames )
97 if( !wxDialog::TransferDataToWindow() )
123 wxFAIL_MSG(
"Line type not found in the type lookup map" );
138 enblConvOptStyle =
true;
154 if(
color == COLOR4D::UNSPECIFIED )
194 if(
color == COLOR4D::UNSPECIFIED )
244 if( !wxDialog::TransferDataFromWindow() )
constexpr EDA_IU_SCALE schIUScale
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Color settings are a bit different than most of the settings objects in that there can be more than o...
bool GetOverrideSchItemColors() const
COLOR4D GetColor(int aLayer) const
void SetSwatchColor(const KIGFX::COLOR4D &aColor, bool aSendEvent)
Set the current swatch color directly.
void GetNewSwatchColor()
Prompt for a new colour, using the colour picker dialog.
KIGFX::COLOR4D GetSwatchColor() const
void SetDefaultColor(const KIGFX::COLOR4D &aColor)
Sets the color that will be chosen with the "Reset to Default" button in the chooser.
void SetSwatchBackground(const KIGFX::COLOR4D &aBackground)
Set the swatch background color.
Class DIALOG_LIB_SHAPE_PROPERTIES_BASE.
wxStaticText * m_helpLabel
@ FILLED_WITH_BG_BODYCOLOR
wxCheckBox * m_checkApplyToAllUnits
wxRadioButton * m_rbFillBackground
wxTextCtrl * m_borderWidthCtrl
wxStaticText * m_borderColorLabel
wxBitmapComboBox * m_borderStyleCombo
wxStaticText * m_borderStyleLabel
COLOR_SWATCH * m_fillColorSwatch
wxCheckBox * m_privateCheckbox
wxCheckBox * m_checkApplyToAllConversions
COLOR_SWATCH * m_borderColorSwatch
wxRadioButton * m_rbFillCustom
wxCheckBox * m_checkBorder
wxButton * m_sdbSizerCancel
wxRadioButton * m_rbFillNone
wxRadioButton * m_rbFillOutline
bool TransferDataFromWindow() override
bool GetApplyToAllUnits()
UNIT_BINDER m_borderWidth
DIALOG_LIB_SHAPE_PROPERTIES(SYMBOL_EDIT_FRAME *parent, LIB_SHAPE *aShape)
Constructor.
~DIALOG_LIB_SHAPE_PROPERTIES()
void onFillSwatch(wxCommandEvent &aEvent)
bool GetApplyToAllConversions()
bool TransferDataToWindow() override
void onBorderSwatch(wxCommandEvent &aEvent)
SYMBOL_EDIT_FRAME * m_frame
void onBorderChecked(wxCommandEvent &aEvent) override
void onFill(wxCommandEvent &aEvent) override
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
FILL_T GetFillMode() const
void SetFillColor(const COLOR4D &aColor)
COLOR4D GetFillColor() const
virtual int GetWidth() const
void SetFillMode(FILL_T aFill)
A color representation with 4 components: red, green, blue, alpha.
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
void SetPrivate(bool aPrivate)
LIB_SYMBOL * GetParent() const
void SetConvert(int aConvert)
STROKE_PARAMS GetStroke() const
void SetStroke(const STROKE_PARAMS &aStroke)
Define a library symbol object.
int GetUnitCount() const override
For items with units, return the number of units.
bool HasConversion() const
Test if symbol has more than one body conversion type (DeMorgan).
SYMBOL_EDITOR_SETTINGS * libeditconfig() const
KIGFX::SCH_RENDER_SETTINGS * GetRenderSettings()
Simple container to manage line stroke parameters.
void SetLineStyle(LINE_STYLE aLineStyle)
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
LINE_STYLE GetLineStyle() const
KIGFX::COLOR4D GetColor() const
The symbol library editor main window.
bool IsSymbolAlias() const
Return true if aLibId is an alias for the editor screen symbol.
bool GetShowDeMorgan() const
bool IsSymbolEditable() const
Test if a symbol is loaded and can be edited.
COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Returns a pointer to the active color theme settings.
virtual long long int GetValue()
Return the current value in Internal Units.
void Enable(bool aEnable)
Enable/disable the label, widget and units label.
bool IsIndeterminate() const
Return true if the control holds the indeterminate value (for instance, if it represents a multiple s...
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void ShowMessage(const wxString &aMessage, int aFlags=wxICON_INFORMATION) override
Show the info bar with the provided message and icon.
This file is part of the common library.
@ LAYER_DEVICE_BACKGROUND
@ LAYER_SCHEMATIC_BACKGROUND
wxFont GetInfoFont(wxWindow *aWindow)
const std::map< LINE_STYLE, struct LINE_STYLE_DESC > lineTypeNames
constexpr int MilsToIU(int mils) const