70#define DEFAULT_STYLE _( "Default" )
115 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits, true ),
116 m_lineWidth( parent, m_lineWidthLabel, m_LineWidthCtrl, m_lineWidthUnits, true ),
117 m_junctionSize( parent, m_dotSizeLabel, m_dotSizeCtrl, m_dotSizeUnits, true )
227 m_italic->Set3StateValue( wxCHK_UNDETERMINED );
228 m_bold->Set3StateValue( wxCHK_UNDETERMINED );
229 m_visible->Set3StateValue( wxCHK_UNDETERMINED );
276 eda_text->SetHorizJustify( hAlign );
292 eda_text->SetVertJustify( vAlign );
295 if(
m_visible->Get3StateValue() != wxCHK_UNDETERMINED )
296 eda_text->SetVisible(
m_visible->GetValue() );
298 if(
m_italic->Get3StateValue() != wxCHK_UNDETERMINED )
299 eda_text->SetItalic(
m_italic->GetValue() );
301 if(
m_bold->Get3StateValue() != wxCHK_UNDETERMINED )
302 eda_text->SetBold(
m_bold->GetValue() );
308 eda_text->IsItalic() ) );
310 else if(
m_italic->Get3StateValue() != wxCHK_UNDETERMINED
311 ||
m_bold->Get3StateValue() != wxCHK_UNDETERMINED )
313 if( !eda_text->GetFontName().IsEmpty() )
317 eda_text->IsItalic() ) );
362 shape->SetFillMode( FILL_T::NO_FILL );
364 shape->SetFillMode( FILL_T::FILLED_WITH_COLOR );
396 wxString ref =
static_cast<SCH_SYMBOL*
>( aItem )->GetRef( &aSheetPath );
440 const wxString& fieldName = field.
GetName();
464 const wxString& fieldName = field.GetName();
492 else if(
m_wires->GetValue() && aItem->
IsType( { SCH_ITEM_LOCATE_WIRE_T,
493 SCH_LABEL_LOCATE_WIRE_T } ) )
497 else if(
m_buses->GetValue() && aItem->
IsType( { SCH_ITEM_LOCATE_BUS_T,
498 SCH_LABEL_LOCATE_BUS_T } ) )
502 else if( aItem->
IsType( { SCH_LABEL_LOCATE_ANY_T } ) )
514 const wxString& fieldName = field.GetName();
543 SCH_ITEM_LOCATE_GRAPHIC_LINE_T,
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.
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
wxTextCtrl * m_fieldnameFilter
wxTextCtrl * m_symbolFilter
wxCheckBox * m_setDotColor
wxCheckBox * m_sheetBorders
COLOR_SWATCH * m_dotColorSwatch
wxCheckBox * m_referenceFilterOpt
wxCheckBox * m_symbolFilterOpt
wxCheckBox * m_otherFields
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 visitItem(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
void processItem(const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
~DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS() override
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) const
static FONT * GetFont(const wxString &aFontName=wxEmptyString, bool aBold=false, bool aItalic=false)
SCH_SHEET_LIST GetSheets() const override
Builds and returns an updated schematic hierarchy TODO: can this be cached?
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 OnModify() override
Must be called after a schematic change in order to set the "modify" flag and update other data struc...
void SaveCopyInUndoList(SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend, bool aDirtyConnectivity=true)
Create a copy of the current schematic item, and put it in the undo list.
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,...
SCH_ITEM_SET & ConnectedItems(const SCH_SHEET_PATH &aPath)
Retrieve the set of items connected to this item on the given sheet.
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.
virtual unsigned int GetSize() const override
Return the number of stored items.
Simple container to manage line stroke parameters.
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
void SetPlotStyle(PLOT_DASH_TYPE aPlotStyle)
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 bool g_modifyOtherFields
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)
PLOT_DASH_TYPE
Dashed line types.
@ VALUE_FIELD
Field Value of part, i.e. "3.3K".
@ REFERENCE_FIELD
Field Reference of part, i.e. "IC21".
#define INDETERMINATE_ACTION