40 m_borderWidth( aParent, m_borderWidthLabel, m_borderWidthCtrl, m_borderWidthUnits, true )
58 for(
const auto& [ lineStyle, lineStyleDesc ] :
lineTypeNames )
84 if( !symbolEditor->IsSymbolEditable() || symbolEditor->IsSymbolAlias() )
118 if( !wxDialog::TransferDataToWindow() )
146 wxFAIL_MSG( wxT(
"Line type not found in the type lookup map" ) );
162 if(
color == COLOR4D::UNSPECIFIED )
198 if( symbolEditor->GetShowDeMorgan() )
199 enableAlternateBodyStyle =
true;
222 defaultInMils = symbolEditor->libeditconfig()->m_Defaults.line_width;
291 if(
color == COLOR4D::UNSPECIFIED )
307 if( !wxDialog::TransferDataFromWindow() )
374 if( !commit.
Empty() )
constexpr EDA_IU_SCALE schIUScale
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
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.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Create an undo entry for an item that has been already modified.
bool Empty() const
Returns status of an item.
Class DIALOG_SHAPE_PROPERTIES_BASE.
wxStaticText * m_borderStyleLabel
wxButton * m_sdbSizerCancel
wxCheckBox * m_borderCheckbox
wxCheckBox * m_checkApplyToAllUnits
wxRadioButton * m_rbFillOutline
@ FILLED_WITH_BG_BODYCOLOR
wxSimplebook * m_fillBook
wxTextCtrl * m_borderWidthCtrl
COLOR_SWATCH * m_fillColorSwatch
wxBitmapComboBox * m_borderStyleCombo
wxStaticText * m_fillColorLabel
wxRadioButton * m_rbFillBackground
COLOR_SWATCH * m_borderColorSwatch
wxBoxSizer * m_symbolEditorSizer
wxStaticText * m_helpLabel1
wxStaticText * m_helpLabel2
wxCheckBox * m_privateCheckbox
wxStaticText * m_borderColorLabel
COLOR_SWATCH * m_customColorSwatch
wxRadioButton * m_rbFillNone
wxRadioButton * m_rbFillCustom
wxCheckBox * m_checkApplyToAllBodyStyles
wxCheckBox * m_filledCtrl
void onCustomColorSwatch(wxCommandEvent &aEvent)
UNIT_BINDER m_borderWidth
DIALOG_SHAPE_PROPERTIES(SCH_BASE_FRAME *aParent, SCH_SHAPE *aShape)
void onFillChecked(wxCommandEvent &aEvent) override
bool TransferDataToWindow() override
~DIALOG_SHAPE_PROPERTIES() override
void onBorderChecked(wxCommandEvent &aEvent) override
void onBorderSwatch(wxCommandEvent &aEvent)
void onFillRadioButton(wxCommandEvent &aEvent) override
bool TransferDataFromWindow() 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...
virtual wxString GetFriendlyName() const
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.
wxColour ToColour() const
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
SCH_RENDER_SETTINGS * GetRenderSettings()
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
EESCHEMA_SETTINGS * eeconfig() const
COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Returns a pointer to the active color theme settings.
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
virtual void SetBodyStyle(int aBodyStyle)
const SYMBOL * GetParentSymbol() const
void SetPrivate(bool aPrivate)
virtual void SetUnit(int aUnit)
void SetStroke(const STROKE_PARAMS &aStroke) override
STROKE_PARAMS GetStroke() const override
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.
A base class for LIB_SYMBOL and SCH_SYMBOL.
virtual int GetUnitCount() const =0
virtual bool HasAlternateBodyStyle() const =0
Test if symbol has more than one body conversion type (DeMorgan).
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.
@ LAYER_DEVICE_BACKGROUND
@ LAYER_SCHEMATIC_BACKGROUND
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
const std::map< LINE_STYLE, struct LINE_STYLE_DESC > lineTypeNames
constexpr int MilsToIU(int mils) const
int default_line_thickness