90 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits, true ),
91 m_lineWidth( parent, m_lineWidthLabel, m_LineWidthCtrl, m_lineWidthUnits, true ),
92 m_junctionSize( parent, m_dotSizeLabel, m_dotSizeCtrl, m_dotSizeUnits, true )
149 m_italic->Set3StateValue( wxCHK_UNDETERMINED );
150 m_bold->Set3StateValue( wxCHK_UNDETERMINED );
151 m_visible->Set3StateValue( wxCHK_UNDETERMINED );
197 eda_text->SetHorizJustify( hAlign );
213 eda_text->SetVertJustify( vAlign );
216 if(
m_italic->Get3StateValue() != wxCHK_UNDETERMINED )
217 eda_text->SetItalic(
m_italic->GetValue() );
220 if(
m_bold->Get3StateValue() != wxCHK_UNDETERMINED )
221 eda_text->SetBold(
m_bold->GetValue() );
227 eda_text->IsItalic() ) );
229 else if(
m_italic->Get3StateValue() != wxCHK_UNDETERMINED
230 ||
m_bold->Get3StateValue() != wxCHK_UNDETERMINED )
232 if( !eda_text->GetFontName().IsEmpty() )
236 eda_text->IsItalic() ) );
249 if(
m_visible->Get3StateValue() != wxCHK_UNDETERMINED )
250 sch_field->SetVisible(
m_visible->GetValue() );
279 shape->SetFillMode( FILL_T::NO_FILL );
281 shape->SetFillMode( FILL_T::FILLED_WITH_COLOR );
314 wxString ref =
static_cast<SCH_SYMBOL*
>( aItem )->GetRef( &aSheetPath );
346 switch( aItem->
Type() )
362 if( field.GetId() == FIELD_T::REFERENCE || field.GetId() == FIELD_T::VALUE )
365 const wxString& fieldName = field.GetName();
389 if( field.GetId() == FIELD_T::SHEET_NAME )
392 const wxString& fieldName = field.GetName();
453 const wxString& fieldName = field.GetName();
522 if( !commit.
Empty() )
524 commit.
Push(
_(
"Edit Text and Graphics" ) );
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.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
Class DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE.
wxCheckBox * m_typeFilterOpt
wxCheckBox * m_hierLabels
wxCheckBox * m_selectedFilterOpt
wxStaticText * m_staticText14
wxCheckBox * m_sheetFields
wxCheckBox * m_schTextAndGraphics
wxCheckBox * m_globalLabels
wxCheckBox * m_otherFields
wxTextCtrl * m_fieldnameFilter
wxTextCtrl * m_symbolFilter
wxCheckBox * m_setDotColor
wxCheckBox * m_sheetBorders
wxStaticText * m_staticText15
wxStaticText * m_staticText13
COLOR_SWATCH * m_dotColorSwatch
wxCheckBox * m_referenceFilterOpt
wxCheckBox * m_symbolFilterOpt
wxStaticText * m_staticText16
wxCheckBox * m_setFillColor
wxCheckBox * m_labelFields
wxCheckBox * m_netFilterOpt
wxTextCtrl * m_referenceFilter
COLOR_SWATCH * m_colorSwatch
COLOR_SWATCH * m_fillColorSwatch
wxCheckBox * m_showFieldNames
wxCheckBox * m_fieldnameFilterOpt
wxCheckBox * m_setTextColor
wxStaticText * m_staticText12
COLOR_SWATCH * m_textColorSwatch
wxCheckBox * m_sheetTitles
wxCheckBox * m_references
void OnFieldNameFilterText(wxCommandEvent &event) override
UNIT_BINDER m_junctionSize
void OnSymbolFilterText(wxCommandEvent &event) override
void OnReferenceFilterText(wxCommandEvent &event) override
void processItem(SCH_COMMIT *aCommit, const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(SCH_EDIT_FRAME *parent)
void OnNetFilterText(wxCommandEvent &event) override
SCH_EDIT_FRAME * m_parent
SCH_SELECTION m_selection
~DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS() override
void visitItem(SCH_COMMIT *aCommit, const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
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...
KICAD_T Type() const
Returns the type of object.
EDA_ITEM * GetParent() const
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
static GR_TEXT_H_ALIGN_T MapHorizJustify(int aHorizJustify)
static GR_TEXT_V_ALIGN_T MapVertJustify(int aVertJustify)
KIFONT::FONT * GetFontSelection(bool aBold, bool aItalic, bool aForDrawingSheet=false) const
static FONT * GetFont(const wxString &aFontName=wxEmptyString, bool aBold=false, bool aItalic=false, const std::vector< wxString > *aEmbeddedFiles=nullptr, bool aForDrawingSheet=false)
SCH_SHEET_LIST Hierarchy() const
Return the full schematic flattened hierarchical sheet list.
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Execute the changes.
Each graphical item can have a SCH_CONNECTION describing its logical connection (to a bus or net).
wxString Name(bool aIgnoreSheet=false) const
Schematic editor (Eeschema) main window.
void HardRedraw() override
Rebuild the GAL and redraw the screen.
SCH_SHEET_PATH & GetCurrentSheet() const
SCHEMATIC & Schematic() const
void SetCurrentSheet(const SCH_SHEET_PATH &aSheet)
const wxString & GetHighlightedConnection() const
Base class for any item which can be embedded within the SCHEMATIC container class,...
const SCH_ITEM_VEC & ConnectedItems(const SCH_SHEET_PATH &aPath)
Retrieve the set of items connected to this item on the given sheet.
SCH_LAYER_ID GetLayer() const
Return the layer this item is on.
virtual void SetStroke(const STROKE_PARAMS &aStroke)
SCH_CONNECTION * Connection(const SCH_SHEET_PATH *aSheet=nullptr) const
Retrieve the connection associated with this object in the given sheet.
virtual STROKE_PARAMS GetStroke() const
virtual bool HasLineStroke() const
Check if this schematic item has line stoke properties.
bool IsType(const std::vector< KICAD_T > &aScanTypes) const override
Check whether the item is one of the listed types.
EE_RTREE & Items()
Get the full RTree, usually for iterating.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
SCH_SCREEN * LastScreen()
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
void SetBorderColor(KIGFX::COLOR4D aColor)
std::vector< SCH_FIELD > & GetFields()
Return a reference to the vector holding the sheet's fields.
SCH_FIELD * GetField(FIELD_T aFieldType)
Return a mandatory field in this sheet.
void SetBackgroundColor(KIGFX::COLOR4D aColor)
void SetBorderWidth(int aWidth)
std::vector< SCH_SHEET_PIN * > & GetPins()
void GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly) const override
Populate a std::vector with SCH_FIELDs, sorted in ordinal order.
bool IsPower() const override
SCH_FIELD * GetField(FIELD_T aFieldType)
Return a mandatory field in this symbol.
Simple container to manage line stroke parameters.
void SetLineStyle(LINE_STYLE aLineStyle)
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
const TRANSFORM & GetTransform() const
bool IsIndeterminate() const
Return true if the control holds the indeterminate value (for instance, if it represents a multiple s...
virtual bool Validate(double aMin, double aMax, EDA_UNITS aUnits=EDA_UNITS::UNSCALED)
Validate the control against the given range, informing the user of any errors found.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
static wxString g_symbolFilter
static wxString g_netFilter
static wxString g_fieldnameFilter
static wxString g_referenceFilter
KICOMMON_API wxFont GetSmallInfoFont(wxWindow *aWindow)
static wxString g_referenceFilter
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
bool WildCompareString(const wxString &pattern, const wxString &string_to_tst, bool case_sensitive)
Compare a string against wild card (* and ?) pattern using the usual rules.
wxString UnescapeString(const wxString &aSource)
LINE_STYLE
Dashed line types.
GR_TEXT_H_ALIGN_T
This is API surface mapped to common.types.HorizontalAlignment.
GR_TEXT_V_ALIGN_T
This is API surface mapped to common.types.VertialAlignment.
@ SCH_LABEL_LOCATE_WIRE_T
#define INDETERMINATE_ACTION
VECTOR2< int32_t > VECTOR2I