67 #define DEFAULT_STYLE _( "Default" ) 85 void OnUpdateUI( wxUpdateUIEvent& event )
override;
105 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits, true ),
106 m_lineWidth( parent, m_lineWidthLabel, m_LineWidthCtrl, m_lineWidthUnits, true ),
107 m_junctionSize( parent, m_dotSizeLabel, m_dotSizeCtrl, m_dotSizeUnits, true )
214 m_Italic->Set3StateValue( wxCHK_UNDETERMINED );
215 m_Bold->Set3StateValue( wxCHK_UNDETERMINED );
216 m_Visible->Set3StateValue( wxCHK_UNDETERMINED );
242 EDA_TEXT* eda_text = dynamic_cast<EDA_TEXT*>( aItem );
243 SCH_TEXT* sch_text = dynamic_cast<SCH_TEXT*>( aItem );
244 SCH_LINE* lineItem = dynamic_cast<SCH_LINE*>( aItem );
245 SCH_JUNCTION* junction = dynamic_cast<SCH_JUNCTION*>( aItem );
261 if(
m_Visible->Get3StateValue() != wxCHK_UNDETERMINED )
264 if(
m_Italic->Get3StateValue() != wxCHK_UNDETERMINED )
267 if(
m_Bold->Get3StateValue() != wxCHK_UNDETERMINED )
323 wxString ref = static_cast<SCH_SYMBOL*>( aItem )->GetRef( &aSheetPath );
345 bool isPower = static_cast<SCH_SYMBOL*>( aItem )->GetLibSymbolRef()->IsPower();
371 const wxString& fieldName = field.
GetName();
383 SCH_SHEET* sheet = static_cast<SCH_SHEET*>( aItem );
395 const wxString& fieldName = field.GetName();
425 SCH_JUNCTION* junction = static_cast<SCH_JUNCTION*>( aItem );
void SetSwatchColor(const KIGFX::COLOR4D &aColor, bool aSendEvent)
Set the current swatch color directly.
Field Reference of part, i.e. "IC21".
void SetCurrentSheet(const SCH_SHEET_PATH &aSheet)
static bool g_modifySheetPins
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
static bool g_typeFilterIsPower
static bool g_modifySchTextAndGraphics
void OnUpdateUI(wxUpdateUIEvent &event) override
KIGFX::COLOR4D GetSwatchColor() const
UNIT_BINDER m_junctionSize
void RecalculateConnections(SCH_CLEANUP_FLAGS aCleanupFlags)
Generate the connection data for the entire schematic hierarchy.
SCH_FIELD * GetField(MANDATORY_FIELD_T aFieldType)
Return a mandatory field in this symbol.
wxCheckBox * m_setBgColor
const SCH_CONNECTION * GetHighlightedConnection() const
void visitItem(const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
COLOR_SWATCH * m_colorSwatch
static bool g_modifyGlobalLabels
void SetLineWidth(const int aSize)
void SetDiameter(int aDiameter)
static bool g_modifyOtherFields
wxCheckBox * m_references
wxTextCtrl * m_fieldnameFilter
void SetItalic(bool isItalic)
void SetColor(const COLOR4D &aColor)
static bool g_filterByFieldname
static bool g_filterByReference
void GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly)
Populate a std::vector with SCH_FIELDs.
static bool g_filterBySymbol
void OnReferenceFilterText(wxCommandEvent &event) override
wxCheckBox * m_fieldnameFilterOpt
wxCheckBox * m_sheetFields
Schematic editor (Eeschema) main window.
wxCheckBox * m_netFilterOpt
static bool g_modifyBuses
void SetTextSize(const wxSize &aNewSize)
bool IsIndeterminate() const
Return true if the control holds the indeterminate value (for instance, if it represents a multiple s...
~DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS() override
Class DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS_BASE.
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
wxTextCtrl * m_symbolFilter
wxCheckBox * m_hierLabels
void SetBorderWidth(int aWidth)
SCH_CONNECTION * Connection(const SCH_SHEET_PATH *aSheet=nullptr) const
Retrieve the connection associated with this object in the given sheet.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
std::vector< SCH_FIELD > & GetFields()
virtual void SetVisible(bool aVisible)
wxButton * m_sdbSizerButtonsOK
void SetLineStyle(const PLOT_DASH_TYPE aStyle)
static bool g_modifyReferences
static bool g_filterSelected
void SetBackgroundColor(KIGFX::COLOR4D aColor)
DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(SCH_EDIT_FRAME *parent)
wxCheckBox * m_globalLabels
wxString Name(bool aIgnoreSheet=false) const
Field Value of part, i.e. "3.3K".
static EDA_TEXT_HJUSTIFY_T MapHorizJustify(int aHorizJustify)
static bool g_modifyHierLabels
void HardRedraw() override
Rebuild the GAL and redraw the screen.
void SetVertJustify(EDA_TEXT_VJUSTIFY_T aType)
wxCheckBox * m_otherFields
int GetFieldCount() const
Return the number of fields in this symbol.
static wxString g_fieldnameFilter
SCH_EDIT_FRAME * m_parent
SCHEMATIC & Schematic() const
void SetBorderColor(KIGFX::COLOR4D aColor)
EDA_ITEM * GetParent() const
wxCheckBox * m_schTextAndGraphics
static bool g_filterByType
static wxString g_referenceFilter
void SetDefaultColor(const KIGFX::COLOR4D &aColor)
Sets the color that will be chosen with the "Reset to Default" button in the chooser.
virtual bool IsType(const KICAD_T aScanTypes[]) const
Check whether the item is one of the listed types.
wxCheckBox * m_sheetBorders
void OnSymbolFilterText(wxCommandEvent &event) override
bool TransferDataFromWindow() override
void SetLineColor(const COLOR4D &aColor)
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
COLOR_SWATCH * m_dotColorSwatch
static bool g_modifyWires
static bool g_modifySheetTitles
wxCheckBox * m_sheetTitles
static EDA_TEXT_VJUSTIFY_T MapVertJustify(int aVertJustify)
wxString UnescapeString(const wxString &aSource)
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
virtual unsigned int GetSize() const override
Return the number of stored items.
std::vector< SCH_SHEET_PIN * > & GetPins()
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
static bool m_allowRealTime
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
SCH_SHEET_LIST GetSheets() const override
Builds and returns an updated schematic hierarchy TODO: can this be cached?
bool TransferDataToWindow() override
wxCheckBox * m_setDotColor
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.
SCH_SCREEN * LastScreen()
Segment description base class to describe items which have 2 end points (track, wire,...
SCH_ITEM_SET & ConnectedItems(const SCH_SHEET_PATH &aPath)
Retrieve the set of items connected to this item on the given sheet.
static bool g_modifyOtherSheetFields
void SetHorizJustify(EDA_TEXT_HJUSTIFY_T aType)
Each graphical item can have a SCH_CONNECTION describing its logical connection (to a bus or net).
static bool g_modifyValues
void SaveCopyInUndoList(SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend)
Create a copy of the current schematic item, and put it in the undo list.
virtual void SetValue(int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
wxString GetName(bool aUseDefaultName=true) const
Return the field name.
wxCheckBox * m_referenceFilterOpt
EE_RTREE & Items()
Gets the full RTree, usually for iterating.
wxTextCtrl * m_referenceFilter
void processItem(const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
virtual long long int GetValue()
Return the current value in Internal Units.
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.
SCH_SHEET_PATH & GetCurrentSheet() const
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
wxCheckBox * m_selectedFilterOpt
void OnModify() override
Must be called after a schematic change in order to set the "modify" flag of the current screen and u...
static wxString g_symbolFilter
virtual void SetLabelSpinStyle(LABEL_SPIN_STYLE aSpinStyle)
Set a spin or rotation angle, along with specific horizontal and vertical justification styles with e...
static bool g_filterByNet
#define INDETERMINATE_ACTION
wxCheckBox * m_symbolFilterOpt
Base class for any item which can be embedded within the SCHEMATIC container class,...
wxCheckBox * m_typeFilterOpt
static bool g_modifySheetBorders
COLOR_SWATCH * m_bgColorSwatch
static wxString g_netFilter
KICAD_T Type() const
Returns the type of object.