66 #define DEFAULT_STYLE _( "Default" ) 83 void OnUpdateUI( wxUpdateUIEvent& event )
override;
103 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits, true ),
104 m_lineWidth( parent, m_lineWidthLabel, m_LineWidthCtrl, m_lineWidthUnits, true )
209 m_Italic->Set3StateValue( wxCHK_UNDETERMINED );
210 m_Bold->Set3StateValue( wxCHK_UNDETERMINED );
211 m_Visible->Set3StateValue( wxCHK_UNDETERMINED );
229 EDA_TEXT* eda_text = dynamic_cast<EDA_TEXT*>( aItem );
230 SCH_TEXT* sch_text = dynamic_cast<SCH_TEXT*>( aItem );
231 SCH_LINE* lineItem = dynamic_cast<SCH_LINE*>( aItem );
255 if(
m_Visible->Get3StateValue() != wxCHK_UNDETERMINED )
261 if(
m_Italic->Get3StateValue() != wxCHK_UNDETERMINED )
267 if(
m_Bold->Get3StateValue() != wxCHK_UNDETERMINED )
333 wxString ref = static_cast<SCH_COMPONENT*>( aItem )->GetRef( &aSheetPath );
344 wxString
id = static_cast<SCH_COMPONENT*>( aItem )->GetLibId().Format();
355 bool isPower = static_cast<SCH_COMPONENT*>( aItem )->GetPartRef()->IsPower();
381 const wxString& fieldName = field.
GetName();
393 SCH_SHEET* sheet = static_cast<SCH_SHEET*>( aItem );
405 const wxString& fieldName = field.GetName();
438 SCH_JUNCTION* junction = static_cast<SCH_JUNCTION*>( aItem );
494 for(
auto item : screen->
Items() )
Field Reference of part, i.e. "IC21".
void SetCurrentSheet(const SCH_SHEET_PATH &aSheet)
static bool g_modifySheetPins
SCH_FIELD instances are attached to a component and provide a place for the component's value,...
static bool g_typeFilterIsPower
void SetSwatchColor(KIGFX::COLOR4D aColor, bool aSendEvent)
Set the current swatch color directly.
static bool g_modifySchTextAndGraphics
void OnUpdateUI(wxUpdateUIEvent &event) override
KIGFX::COLOR4D GetSwatchColor() const
SCH_FIELD * GetField(MANDATORY_FIELD_T aFieldType)
Returns a mandatory field in this symbol.
void RecalculateConnections(SCH_CLEANUP_FLAGS aCleanupFlags)
Generates the connection data for the entire schematic hierarchy.
wxCheckBox * m_setBgColor
const SCH_CONNECTION * GetHighlightedConnection() const
void visitItem(const SCH_SHEET_PATH &aSheetPath, SCH_ITEM *aItem)
void SetDefaultColor(KIGFX::COLOR4D aColor)
Sets the color that will be chosen with the "Reset to Default" button in the chooser.
COLOR_SWATCH * m_colorSwatch
static bool g_modifyGlobalLabels
void SetLineWidth(const int aSize)
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 SetVisible(bool aVisible)
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 GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly)
Populates a std::vector with SCH_FIELDs.
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()
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.
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.
void SetVertJustify(EDA_TEXT_VJUSTIFY_T aType)
wxCheckBox * m_otherFields
static wxString g_fieldnameFilter
bool Contains(EDA_ITEM *aItem) const
SCH_EDIT_FRAME * m_parent
SCHEMATIC & Schematic() const
void SetBorderColor(KIGFX::COLOR4D aColor)
wxCheckBox * m_schTextAndGraphics
static bool g_filterByType
static wxString g_referenceFilter
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)
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
static bool g_modifyWires
static bool g_modifySheetTitles
wxCheckBox * m_sheetTitles
int GetFieldCount() const
Return the number of fields in this symbol.
static EDA_TEXT_VJUSTIFY_T MapVertJustify(int aVertJustify)
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.
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
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)
Retrieves 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
Function GetName returns the field name.
wxCheckBox * m_referenceFilterOpt
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.
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.