39 m_borderWidth( aParent, m_borderWidthLabel, m_borderWidthCtrl, m_borderWidthUnits, true )
52 for(
const std::pair<const PLOT_DASH_TYPE, lineTypeStruct>& typeEntry :
lineTypeNames )
93 if( !wxDialog::TransferDataToWindow() )
119 wxFAIL_MSG(
"Line type not found in the type lookup map" );
134 enblConvOptStyle =
true;
150 if(
color == COLOR4D::UNSPECIFIED )
190 if(
color == COLOR4D::UNSPECIFIED )
240 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...
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
wxCheckBox * m_checkApplyToAllUnits
wxRadioButton * m_rbFillBackground
@ FILLED_WITH_BG_BODYCOLOR
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
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)
wxString GetTypeName() const override
Provide a user-consumable name of the object type.
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 SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
KIGFX::COLOR4D GetColor() const
PLOT_DASH_TYPE GetPlotStyle() const
void SetPlotStyle(PLOT_DASH_TYPE aPlotStyle)
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.
This file is part of the common library.
@ LAYER_DEVICE_BACKGROUND
@ LAYER_SCHEMATIC_BACKGROUND
wxFont GetInfoFont(wxWindow *aWindow)
const std::map< PLOT_DASH_TYPE, struct lineTypeStruct > lineTypeNames
constexpr int MilsToIU(int mils) const