69#define DEFAULT_STYLE _( "Default" )
112 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits, true ),
113 m_lineWidth( parent, m_lineWidthLabel, m_LineWidthCtrl, m_lineWidthUnits, true ),
114 m_junctionSize( parent, m_dotSizeLabel, m_dotSizeCtrl, m_dotSizeUnits, true )
223 m_italic->Set3StateValue( wxCHK_UNDETERMINED );
224 m_bold->Set3StateValue( wxCHK_UNDETERMINED );
225 m_visible->Set3StateValue( wxCHK_UNDETERMINED );
271 eda_text->SetHorizJustify( hAlign );
287 eda_text->SetVertJustify( vAlign );
290 if(
m_visible->Get3StateValue() != wxCHK_UNDETERMINED )
291 eda_text->SetVisible(
m_visible->GetValue() );
293 if(
m_italic->Get3StateValue() != wxCHK_UNDETERMINED )
294 eda_text->SetItalic(
m_italic->GetValue() );
297 if(
m_bold->Get3StateValue() != wxCHK_UNDETERMINED )
298 eda_text->SetBold(
m_bold->GetValue() );
304 eda_text->IsItalic() ) );
306 else if(
m_italic->Get3StateValue() != wxCHK_UNDETERMINED
307 ||
m_bold->Get3StateValue() != wxCHK_UNDETERMINED )
309 if( !eda_text->GetFontName().IsEmpty() )
313 eda_text->IsItalic() ) );
358 shape->SetFillMode( FILL_T::NO_FILL );
360 shape->SetFillMode( FILL_T::FILLED_WITH_COLOR );
393 wxString ref =
static_cast<SCH_SYMBOL*
>( aItem )->GetRef( &aSheetPath );
425 switch( aItem->
Type() )
442 const wxString& fieldName = field.
GetName();
469 const wxString& fieldName = field.GetName();
530 const wxString& fieldName = field.GetName();
599 if( !commit.
Empty() )
601 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)
Create an undo entry for an item that has been already modified.
bool Empty() const
Returns status of an item.
Class DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE.
wxCheckBox * m_typeFilterOpt
wxCheckBox * m_hierLabels
wxCheckBox * m_selectedFilterOpt
wxCheckBox * m_sheetFields
wxCheckBox * m_schTextAndGraphics
wxCheckBox * m_globalLabels
wxCheckBox * m_otherFields
wxTextCtrl * m_fieldnameFilter
wxTextCtrl * m_symbolFilter
wxCheckBox * m_setDotColor
wxCheckBox * m_sheetBorders
COLOR_SWATCH * m_dotColorSwatch
wxCheckBox * m_referenceFilterOpt
wxCheckBox * m_symbolFilterOpt
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
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
~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 override
Return the full schematic flattened hierarchical sheet list.
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
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
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
wxString GetName(bool aUseDefaultName=true) const
Return the field name (not translated).
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()
Gets 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()
void SetBackgroundColor(KIGFX::COLOR4D aColor)
void SetBorderWidth(int aWidth)
std::vector< SCH_SHEET_PIN * > & GetPins()
int GetFieldCount() const
Return the number of fields in this symbol.
SCH_FIELD * GetField(MANDATORY_FIELD_T aFieldType)
Return a mandatory field in this symbol.
TRANSFORM & GetTransform()
void GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly)
Populate a std::vector with SCH_FIELDs.
bool IsPower() const override
virtual unsigned int GetSize() const override
Return the number of stored items.
Simple container to manage line stroke parameters.
void SetLineStyle(LINE_STYLE aLineStyle)
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
virtual long long int GetValue()
Return the current value in Internal Units.
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 bool g_filterByNet
static bool g_modifyWires
static bool g_modifyValues
static bool g_modifyBuses
static bool g_filterByReference
static bool g_modifyGlobalLabels
static bool g_filterBySymbol
static wxString g_symbolFilter
static bool g_modifySheetPins
static bool g_modifySheetBorders
static bool g_filterSelected
static bool g_modifyHierLabels
static bool g_typeFilterIsPower
static wxString g_netFilter
static bool g_modifySheetTitles
static bool g_filterByFieldname
static bool g_modifyReferences
static bool g_modifyOtherSheetFields
static bool g_modifyLabelFields
static wxString g_fieldnameFilter
static bool g_modifyOtherFields
static bool g_filterByType
static bool g_modifySchTextAndGraphics
static wxString g_referenceFilter
static bool g_modifyValues
static bool g_filterByReference
static bool g_filterSelected
static bool g_modifyReferences
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.
@ VALUE_FIELD
Field Value of part, i.e. "3.3K".
@ REFERENCE_FIELD
Field Reference of part, i.e. "IC21".
@ SCH_LABEL_LOCATE_WIRE_T
#define INDETERMINATE_ACTION
VECTOR2< int32_t > VECTOR2I