41 m_graphicText( aText ),
42 m_textSize( aParent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits, true )
48 [
this]( wxKeyEvent& aEvent )
50 wxPostEvent(
this, wxCommandEvent( wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK ) );
133 wxCHECK( symbol,
false );
175 wxCHECK( cfg && symbol &&
tools,
false );
179 m_CommonUnit->SetValue( symbol->GetUnitCount() > 1 && !
tools->GetDrawSpecificUnit() );
182 if(
tools->GetLastTextAngle().IsHorizontal() )
198 if( btn->IsChecked() && btn != aEvent.GetEventObject() )
208 if( btn->IsChecked() && btn != aEvent.GetEventObject() )
218 if( btn->IsChecked() && btn != aEvent.GetEventObject() )
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...
COLOR4D GetColor(int aLayer) const
void SetSwatchColor(const KIGFX::COLOR4D &aColor, bool aSendEvent)
Set the current swatch color directly.
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_TEXT_PROPERTIES_BASE.
wxStyledTextCtrl * m_StyledTextCtrl
BITMAP_BUTTON * m_hAlignLeft
wxCheckBox * m_privateCheckbox
BITMAP_BUTTON * m_hAlignCenter
BITMAP_BUTTON * m_hAlignRight
BITMAP_BUTTON * m_vAlignTop
BITMAP_BUTTON * m_separator2
wxButton * m_sdbSizerButtonsOK
BITMAP_BUTTON * m_separator4
wxCheckBox * m_CommonConvert
BITMAP_BUTTON * m_vAlignCenter
BITMAP_BUTTON * m_vAlignBottom
wxCheckBox * m_CommonUnit
COLOR_SWATCH * m_textColorSwatch
BITMAP_BUTTON * m_vertical
BITMAP_BUTTON * m_separator5
BITMAP_BUTTON * m_horizontal
BITMAP_BUTTON * m_separator1
wxButton * m_sdbSizerButtonsCancel
BITMAP_BUTTON * m_separator3
SCINTILLA_TRICKS * m_scintillaTricks
bool TransferDataFromWindow() override
void onMultiLineTCLostFocus(wxFocusEvent &event) override
DIALOG_LIB_TEXT_PROPERTIES(SYMBOL_EDIT_FRAME *aParent, LIB_TEXT *aText)
bool TransferDataToWindow() override
void onVAlignButton(wxCommandEvent &aEvent)
SYMBOL_EDIT_FRAME * m_parent
void onHAlignButton(wxCommandEvent &aEvent)
void onOrientButton(wxCommandEvent &aEvent)
~DIALOG_LIB_TEXT_PROPERTIES() 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...
bool IsHorizontal() const
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
void SetTextColor(const COLOR4D &aColor)
COLOR4D GetTextColor() const
void SetTextSize(VECTOR2I aNewSize)
const EDA_ANGLE & GetTextAngle() const
virtual const wxString & GetText() const
Return the string associated with the text object.
KIFONT::FONT * GetFont() const
void SetVertJustify(GR_TEXT_V_ALIGN_T aType)
GR_TEXT_H_ALIGN_T GetHorizJustify() const
GR_TEXT_V_ALIGN_T GetVertJustify() const
virtual void SetText(const wxString &aText)
virtual void SetTextAngle(const EDA_ANGLE &aAngle)
void SetItalic(bool aItalic)
void SetFont(KIFONT::FONT *aFont)
void SetHorizJustify(GR_TEXT_H_ALIGN_T aType)
bool HaveFontSelection() const
void SetFontSelection(KIFONT::FONT *aFont)
KIFONT::FONT * GetFontSelection(bool aBold, bool aItalic) const
A color representation with 4 components: red, green, blue, alpha.
void SetPrivate(bool aPrivate)
LIB_SYMBOL * GetParent() const
void SetConvert(int aConvert)
Define a library symbol object.
int GetUnitCount() const override
For items with units, return the number of units.
Define a symbol library graphical text item.
Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl instance.
void CancelAutocomplete()
The symbol library editor main window.
bool IsSymbolAlias() const
Return true if aLibId is an alias for the editor screen symbol.
SYMBOL_EDITOR_SETTINGS * GetSettings() const
bool IsSymbolEditable() const
Test if a symbol is loaded and can be edited.
LIB_SYMBOL * GetCurSymbol() const
Return the current symbol being edited or NULL if none selected.
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.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
This file is part of the common library.
static constexpr EDA_ANGLE & ANGLE_HORIZONTAL
static constexpr EDA_ANGLE & ANGLE_VERTICAL
@ LAYER_SCHEMATIC_BACKGROUND
constexpr int MilsToIU(int mils) const