KiCad PCB EDA Suite
sch_sheet.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
5  * Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #ifndef SCH_SHEEET_H
26 #define SCH_SHEEET_H
27 
28 #include <boost/ptr_container/ptr_vector.hpp>
29 #include <sch_text.h>
30 
31 
32 class LINE_READER;
33 class SCH_SCREEN;
34 class SCH_SHEET;
35 class SCH_SHEET_PIN;
36 class SCH_SHEET_PATH;
37 class DANGLING_END_ITEM;
38 class SCH_EDIT_FRAME;
40 
41 
42 #define MIN_SHEET_WIDTH 500
43 #define MIN_SHEET_HEIGHT 150
44 
45 
56 {
62 };
63 
64 
76 {
77 private:
78  int m_number;
79 
84 
85 public:
86  SCH_SHEET_PIN( SCH_SHEET* parent,
87  const wxPoint& pos = wxPoint( 0, 0 ),
88  const wxString& text = wxEmptyString );
89 
90  // Do not create a copy constructor. The one generated by the compiler is adequate.
91 
93 
94  wxString GetClass() const override
95  {
96  return wxT( "SCH_SHEET_PIN" );
97  }
98 
99  bool operator ==( const SCH_SHEET_PIN* aPin ) const;
100 
107  bool IsMovableFromAnchorPoint() override { return true; }
108 
109  void Print( wxDC* aDC, const wxPoint& aOffset ) override;
110 
117  void CreateGraphicShape( std::vector <wxPoint>& aPoints, const wxPoint& aPos ) override;
118 
119  void SwapData( SCH_ITEM* aItem ) override;
120 
121  int GetPenSize() const override;
122 
128  int GetNumber() const { return m_number; }
129 
135  void SetNumber( int aNumber );
136 
137  void SetEdge( SHEET_SIDE aEdge );
138 
139  SHEET_SIDE GetEdge() const;
140 
145  void ConstrainOnEdge( wxPoint Pos );
146 
153  SCH_SHEET* GetParent() const { return (SCH_SHEET*) m_Parent; }
154 
155 #if defined(DEBUG)
156  void Show( int nestLevel, std::ostream& os ) const override;
157 #endif
158 
159  // Geometric transforms (used in block operations):
160 
161  void Move( const wxPoint& aMoveVector ) override
162  {
163  Offset( aMoveVector );
164  }
165 
166  void MirrorX( int aXaxis_position ) override;
167  void MirrorY( int aYaxis_position ) override;
168  void Rotate( wxPoint aPosition ) override;
169 
170  bool Matches( wxFindReplaceData& aSearchData, void* aAuxData ) override;
171 
172  bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL ) override
173  {
174  return EDA_ITEM::Replace( aSearchData, m_Text );
175  }
176 
177  bool IsReplaceable() const override { return true; }
178 
179  void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) override;
180 
181  bool IsConnectable() const override { return true; }
182 
183  wxString GetSelectMenuText( EDA_UNITS_T aUnits ) const override;
184 
185  BITMAP_DEF GetMenuImage() const override;
186 
187  void SetPosition( const wxPoint& aPosition ) override { ConstrainOnEdge( aPosition ); }
188 
189  bool HitTest( const wxPoint& aPosition, int aAccuracy = 0 ) const override;
190 
191  EDA_ITEM* Clone() const override;
192 };
193 
194 
195 typedef boost::ptr_vector<SCH_SHEET_PIN> SCH_SHEET_PINS;
196 
197 
201 class SCH_SHEET : public SCH_ITEM
202 {
203  friend class SCH_SHEET_PIN;
204 
208 
211 
214  wxString m_fileName;
215 
218  wxString m_name;
219 
222 
225 
227  wxPoint m_pos;
228 
230  wxSize m_size;
231 
232 public:
233  SCH_SHEET( const wxPoint& pos = wxPoint( 0, 0 ) );
234 
239  SCH_SHEET( const SCH_SHEET& aSheet );
240 
241  ~SCH_SHEET();
242 
243  wxString GetClass() const override
244  {
245  return wxT( "SCH_SHEET" );
246  }
247 
257  bool IsMovableFromAnchorPoint() override { return false; }
258 
259  wxString GetName() const { return m_name; }
260  void SetName( const wxString& aName ) { m_name = aName; }
261 
262  int GetSheetNameSize() const { return m_sheetNameSize; }
263  void SetSheetNameSize( int aSize ) { m_sheetNameSize = aSize; }
264 
265  int GetFileNameSize() const { return m_fileNameSize; }
266  void SetFileNameSize( int aSize ) { m_fileNameSize = aSize; }
267 
269 
270  wxSize GetSize() { return m_size; }
271  void SetSize( const wxSize& aSize ) { m_size = aSize; }
272 
283 
295  void SetScreen( SCH_SCREEN* aScreen );
296 
302  int GetScreenCount() const;
303 
304  void GetMsgPanelInfo( EDA_UNITS_T aUnits, std::vector< MSG_PANEL_ITEM >& aList ) override;
305 
306  /* there is no member for orientation in sch_sheet, to preserve file
307  * format, we detect orientation based on pin edges
308  */
309  bool IsVerticalOrientation() const;
310 
320  void AddPin( SCH_SHEET_PIN* aSheetPin );
321 
323 
325  {
326  return const_cast< SCH_SHEET_PINS& >( m_pins );
327  }
328 
334  void RemovePin( SCH_SHEET_PIN* aSheetPin );
335 
342  void CleanupSheet();
343 
351  SCH_SHEET_PIN* GetPin( const wxPoint& aPosition );
352 
360  bool HasPin( const wxString& aName );
361 
362  bool HasPins() { return !m_pins.empty(); }
363 
369  bool HasUndefinedPins();
370 
382  int GetMinWidth() const;
383 
394  int GetMinHeight() const;
395 
396  int GetPenSize() const override;
397 
398  void Print( wxDC* aDC, const wxPoint& aOffset ) override;
399 
400  EDA_RECT const GetBoundingBox() const override;
401 
407  wxPoint GetResizePosition() const;
408 
409  void SwapData( SCH_ITEM* aItem ) override;
410 
416  int ComponentCount();
417 
425  bool SearchHierarchy( const wxString& aFilename, SCH_SCREEN** aScreen );
426 
437  bool LocatePathOfScreen( SCH_SCREEN* aScreen, SCH_SHEET_PATH* aList );
438 
444  int CountSheets();
445 
451  wxString GetFileName( void ) const;
452 
453  // Set a new filename without changing anything else
454  void SetFileName( const wxString& aFilename )
455  {
456  m_fileName = aFilename;
457  // Filenames are stored using unix notation
458  m_fileName.Replace( wxT("\\"), wxT("/") );
459  }
460 
461  bool ChangeFileName( SCH_EDIT_FRAME* aFrame, const wxString& aFileName );
462 
463  // Geometric transforms (used in block operations):
464 
465  void Move( const wxPoint& aMoveVector ) override
466  {
467  m_pos += aMoveVector;
468 
469  for( SCH_SHEET_PIN& pin : m_pins )
470  {
471  pin.Move( aMoveVector );
472  }
473  }
474 
475  void MirrorY( int aYaxis_position ) override;
476  void MirrorX( int aXaxis_position ) override;
477  void Rotate( wxPoint aPosition ) override;
478 
479  bool Matches( wxFindReplaceData& aSearchData, void* aAuxData ) override;
480 
481  bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL ) override;
482 
483  bool IsReplaceable() const override { return true; }
484 
490  void Resize( const wxSize& aSize );
491 
495  wxPoint GetSheetNamePosition();
496 
500  wxPoint GetFileNamePosition();
501 
502  void GetEndPoints( std::vector <DANGLING_END_ITEM>& aItemList ) override;
503 
504  bool UpdateDanglingState( std::vector<DANGLING_END_ITEM>& aItemList ) override;
505 
506  bool IsConnectable() const override { return true; }
507 
508  bool CanConnect( const SCH_ITEM* aItem ) const override
509  {
510  return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE ) ||
511  ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_BUS ) ||
512  ( aItem->Type() == SCH_NO_CONNECT_T );
513  }
514 
515  void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const override;
516 
517  SEARCH_RESULT Visit( INSPECTOR inspector, void* testData, const KICAD_T scanTypes[] ) override;
518 
519  wxString GetSelectMenuText( EDA_UNITS_T aUnits ) const override;
520 
521  BITMAP_DEF GetMenuImage() const override;
522 
523  void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems,
524  SCH_SHEET_PATH* aSheetPath ) override;
525 
526  SCH_ITEM& operator=( const SCH_ITEM& aSheet );
527 
528  void ViewGetLayers( int aLayers[], int& aCount ) const override;
529 
530  wxPoint GetPosition() const override { return m_pos; }
531  void SetPosition( const wxPoint& aPosition ) override;
532 
533  bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
534  bool HitTest( const EDA_RECT& aRect, bool aContained, int aAccuracy = 0 ) const override;
535 
536  void Plot( PLOTTER* aPlotter ) override;
537 
538  EDA_ITEM* Clone() const override;
539 
540 #if defined(DEBUG)
541  void Show( int nestLevel, std::ostream& os ) const override;
542 #endif
543 
544 protected:
545 
553  void renumberPins();
554 };
555 
556 
557 //typedef std::vector< SCH_SHEET* > SCH_SHEETS; // no ownership over contained SCH_SHEETs
558 
559 #endif // SCH_SHEEET_H
void Offset(const wxPoint &aOffset)
Definition: eda_text.h:223
SCH_ITEM & operator=(const SCH_ITEM &aSheet)
Definition: sch_sheet.cpp:960
Class LINE_READER is an abstract class from which implementation specific LINE_READERs may be derived...
Definition: richio.h:81
SHEET_SIDE
Defines the edge of the sheet that the sheet pin is positioned SHEET_LEFT_SIDE = 0: pin on left side ...
Definition: sch_sheet.h:55
void ViewGetLayers(int aLayers[], int &aCount) const override
Function ViewGetLayers returns the layers the item is drawn on (which may be more than its "home" lay...
Definition: sch_sheet.cpp:427
EDA_ITEM * m_Parent
Linked list: Link (parent struct)
Definition: base_struct.h:167
void SetFileNameSize(int aSize)
Definition: sch_sheet.h:266
bool SearchHierarchy(const wxString &aFilename, SCH_SCREEN **aScreen)
Search the existing hierarchy for an instance of screen loaded from aFileName.
Definition: sch_sheet.cpp:541
SCH_SHEET_PIN * GetPin(const wxPoint &aPosition)
Return the sheet pin item found at aPosition in the sheet.
Definition: sch_sheet.cpp:371
wxString m_Text
Definition: eda_text.h:356
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
SCH_SHEET_PINS & GetPins()
Definition: sch_sheet.h:322
SCH_SHEET * GetParent() const
Get the parent sheet object of this sheet pin.
Definition: sch_sheet.h:153
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
wxString GetSelectMenuText(EDA_UNITS_T aUnits) const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
SCH_SHEET_PIN(SCH_SHEET *parent, const wxPoint &pos=wxPoint(0, 0), const wxString &text=wxEmptyString)
bool Replace(wxFindReplaceData &aSearchData, wxString &aText)
Helper function used in search and replace dialog Function Replace performs a text replace on aText u...
void SetFileName(const wxString &aFilename)
Definition: sch_sheet.h:454
void MirrorY(int aYaxis_position) override
Function MirrorY mirrors item relative to the Y axis about aYaxis_position.
void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Function GetEndPoints adds the schematic item end points to aItemList if the item has end points.
Definition: sch_sheet.cpp:756
bool Matches(wxFindReplaceData &aSearchData, void *aAuxData) override
Function Matches compares the item against the search criteria in aSearchData.
Definition: sch_sheet.cpp:718
int CountSheets()
Count the number of sheets found in "this" sheet includeing all of the subsheets.
Definition: sch_sheet.cpp:607
bool ChangeFileName(SCH_EDIT_FRAME *aFrame, const wxString &aFileName)
int m_sheetNameSize
The height of the text used to draw the sheet name.
Definition: sch_sheet.h:221
void SetScreen(SCH_SCREEN *aScreen)
Set the SCH_SCREEN associated with this sheet to aScreen.
Definition: sch_sheet.cpp:104
wxSize m_size
The size of the sheet.
Definition: sch_sheet.h:230
wxString GetClass() const override
Function GetClass returns the class name.
Definition: sch_sheet.h:94
wxString m_name
This is equivalent to the reference designator for components and is stored in F0 sheet pin in the sc...
Definition: sch_sheet.h:218
SCH_SHEET * GetRootSheet()
Return the root sheet of this SCH_SHEET object.
Definition: sch_sheet.cpp:136
int ComponentCount()
Count our own components, without the power components.
Definition: sch_sheet.cpp:511
bool IsConnectable() const override
Function IsConnectable returns true if the schematic item can connect to another schematic item.
Definition: sch_sheet.h:181
bool IsMovableFromAnchorPoint() override
Return true for items which are moved with the anchor point at mouse cursor and false for items moved...
Definition: sch_sheet.h:107
SHEET_SIDE GetEdge() const
Schematic editor (Eeschema) main window.
bool IsReplaceable() const override
Function IsReplaceable.
Definition: sch_sheet.h:177
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Function HitTest tests if aPosition is contained within or on the bounding box of an item.
void Print(wxDC *aDC, const wxPoint &aOffset) override
Function Print Print a schematic item.
Definition: sch_sheet.cpp:436
int GetPenSize() const override
Function GetPenSize virtual pure.
Definition: sch_sheet.cpp:383
void MirrorX(int aXaxis_position) override
Function MirrorX mirrors item relative to the X axis about aXaxis_position.
wxPoint m_pos
The position of the sheet.
Definition: sch_sheet.h:227
SCH_SCREEN * GetScreen()
Definition: sch_sheet.h:268
void Print(wxDC *aDC, const wxPoint &aOffset) override
Function Print Print a schematic item.
void AddPin(SCH_SHEET_PIN *aSheetPin)
Add aSheetPin to the sheet.
Definition: sch_sheet.cpp:177
void CreateGraphicShape(std::vector< wxPoint > &aPoints, const wxPoint &aPos) override
Calculate the graphic shape (a polygon) associated to the text.
bool Replace(wxFindReplaceData &aSearchData, void *aAuxData=NULL) override
Function Replace performs a text replace using the find and replace criteria in aSearchData on items ...
Definition: sch_sheet.h:172
KICAD_T
Enum KICAD_T is the set of class identification values, stored in EDA_ITEM::m_StructType.
Definition: typeinfo.h:78
wxString m_fileName
The file name is also in the SCH_SCREEN object associated with the sheet.
Definition: sch_sheet.h:214
Class NETLIST_OBJECT_LIST is a container holding and owning NETLIST_OBJECTs, which are connected item...
const INSPECTOR_FUNC & INSPECTOR
Definition: base_struct.h:95
int GetScreenCount() const
Return the number of times the associated screen for the sheet is being used.
Definition: sch_sheet.cpp:127
int GetFileNameSize() const
Definition: sch_sheet.h:265
void renumberPins()
Renumber the sheet pins in the sheet.
Definition: sch_sheet.cpp:744
wxString GetClass() const override
Function GetClass returns the class name.
Definition: sch_sheet.h:243
int GetSheetNameSize() const
Definition: sch_sheet.h:262
void RemovePin(SCH_SHEET_PIN *aSheetPin)
Remove aSheetPin from the sheet.
Definition: sch_sheet.cpp:187
bool IsConnectable() const override
Function IsConnectable returns true if the schematic item can connect to another schematic item.
Definition: sch_sheet.h:506
EDA_RECT const GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes.
Definition: sch_sheet.cpp:477
wxString GetName() const
Definition: sch_sheet.h:259
void MirrorX(int aXaxis_position) override
Function MirrorX mirrors item relative to the X axis about aXaxis_position.
Definition: sch_sheet.cpp:671
bool IsReplaceable() const override
Function IsReplaceable.
Definition: sch_sheet.h:483
bool HasPins()
Definition: sch_sheet.h:362
void SetSheetNameSize(int aSize)
Definition: sch_sheet.h:263
void SetName(const wxString &aName)
Definition: sch_sheet.h:260
SCH_SHEET_PINS & GetPins() const
Definition: sch_sheet.h:324
SCH_SHEET_PINS m_pins
The list of sheet connection points.
Definition: sch_sheet.h:210
bool IsMovableFromAnchorPoint() override
Return true for items which are moved with the anchor point at mouse cursor and false for items moved...
Definition: sch_sheet.h:257
int GetMinHeight() const
Return the minimum height that the sheet can be resized based on the sheet pin positions.
Definition: sch_sheet.cpp:301
wxPoint GetResizePosition() const
Return the position of the lower right corner of the sheet in drawing units.
Definition: sch_sheet.cpp:851
void SetEdge(SHEET_SIDE aEdge)
SEARCH_RESULT Visit(INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) override
Function Visit may be re-implemented for each derived class in order to handle all the types given by...
Definition: sch_sheet.cpp:788
void GetMsgPanelInfo(EDA_UNITS_T aUnits, std::vector< MSG_PANEL_ITEM > &aList) override
Function GetMsgPanelInfo populates aList of MSG_PANEL_ITEM objects with it's internal state for displ...
Definition: sch_sheet.cpp:634
void Move(const wxPoint &aMoveVector) override
Function Move moves the item by aMoveVector to a new position.
Definition: sch_sheet.h:161
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Definition: sch_sheet.h:75
Class SCH_SHEET_PATH.
int GetNumber() const
Get the sheet label number.
Definition: sch_sheet.h:128
void CleanupSheet()
Delete sheet label which do not have a corresponding hierarchical label.
Definition: sch_sheet.cpp:340
void ConstrainOnEdge(wxPoint Pos)
Adjust label position to edge based on proximity to vertical or horizontal edge of the parent sheet.
wxPoint GetPosition() const override
Function GetPosition.
Definition: sch_sheet.h:530
void Rotate(wxPoint aPosition) override
Function Rotate rotates the item around aPosition 90 degrees in the clockwise direction.
Definition: sch_sheet.cpp:647
wxPoint GetFileNamePosition()
Definition: sch_sheet.cpp:408
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Definition: sch_sheet.h:201
void SetSize(const wxSize &aSize)
Definition: sch_sheet.h:271
wxString GetFileName(void) const
Return the filename corresponding to this sheet.
Definition: sch_sheet.cpp:628
SCH_LAYER_ID GetLayer() const
Function GetLayer returns the layer this item is on.
Definition: sch_item.h:193
SCH_SHEET(const wxPoint &pos=wxPoint(0, 0))
Definition: sch_sheet.cpp:47
void GetConnectionPoints(std::vector< wxPoint > &aPoints) const override
Function GetConnectionPoints add all the connection points for this item to aPoints.
Definition: sch_sheet.cpp:781
bool HasUndefinedPins()
Check all sheet labels against schematic for undefined hierarchical labels.
Definition: sch_sheet.cpp:232
int GetMinWidth() const
Return the minimum width of the sheet based on the widths of the sheet pin text.
Definition: sch_sheet.cpp:261
void SetPosition(const wxPoint &aPosition) override
Function SetPosition set the schematic item position to aPosition.
Definition: sch_sheet.h:187
bool LocatePathOfScreen(SCH_SCREEN *aScreen, SCH_SHEET_PATH *aList)
Search the existing hierarchy for an instance of screen loaded from aFileName.
Definition: sch_sheet.cpp:576
Base plotter engine class.
Definition: plotter.h:97
int m_fileNameSize
The height of the text used to draw the file name.
Definition: sch_sheet.h:224
void SwapData(SCH_ITEM *aItem) override
Function SwapData swap the internal data structures aItem with the schematic item.
Definition: sch_sheet.cpp:148
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
Definition: sch_sheet.cpp:98
void SetNumber(int aNumber)
Set the sheet label number.
void Plot(PLOTTER *aPlotter) override
Function Plot plots the schematic item to aPlotter.
Definition: sch_sheet.cpp:882
boost::ptr_vector< SCH_SHEET_PIN > SCH_SHEET_PINS
Definition: sch_sheet.h:195
void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Function GetEndPoints adds the schematic item end points to aItemList if the item has end points.
int m_number
Label number use for saving sheet label to file.
Definition: sch_sheet.h:78
bool CanConnect(const SCH_ITEM *aItem) const override
Definition: sch_sheet.h:508
bool IsVerticalOrientation() const
Definition: sch_sheet.cpp:221
void MirrorY(int aYaxis_position) override
Function MirrorY mirrors item relative to the Y axis about aYaxis_position.
Definition: sch_sheet.cpp:683
void SetPosition(const wxPoint &aPosition) override
Function SetPosition set the schematic item position to aPosition.
Definition: sch_sheet.cpp:694
wxPoint GetSheetNamePosition()
Definition: sch_sheet.cpp:389
Class EDA_RECT handles the component boundary box.
Definition: eda_rect.h:44
bool operator==(const SCH_SHEET_PIN *aPin) const
bool Matches(wxFindReplaceData &aSearchData, void *aAuxData) override
Function Matches compares the item against the search criteria in aSearchData.
SCH_SCREEN * m_screen
Screen that contains the physical data for the sheet.
Definition: sch_sheet.h:207
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
Definition: base_struct.h:150
void SwapData(SCH_ITEM *aItem) override
Function SwapData swap the internal data structures aItem with the schematic item.
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
Definition: sch_sheet.cpp:822
bool HasPin(const wxString &aName)
Checks if the sheet already has a sheet pin named aName.
Definition: sch_sheet.cpp:209
void Rotate(wxPoint aPosition) override
Function Rotate rotates the item around aPosition 90 degrees in the clockwise direction.
wxString GetSelectMenuText(EDA_UNITS_T aUnits) const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
Definition: sch_sheet.cpp:816
Class DANGLING_END_ITEM is a helper class used to store the state of schematic items that can be conn...
Definition: sch_item.h:67
SEARCH_RESULT
Definition: base_struct.h:59
bool UpdateDanglingState(std::vector< DANGLING_END_ITEM > &aItemList) override
Function IsDanglingStateChanged tests the schematic item to aItemList to check if it's dangling state...
Definition: sch_sheet.cpp:770
bool Replace(wxFindReplaceData &aSearchData, void *aAuxData=NULL) override
Function Replace performs a text replace using the find and replace criteria in aSearchData on items ...
Definition: sch_sheet.cpp:738
Class SCH_ITEM is a base class for any item which can be embedded within the SCHEMATIC container clas...
Definition: sch_item.h:114
int GetPenSize() const override
Function GetPenSize virtual pure.
Definitions of the SCH_TEXT class and derivatives for Eeschema.
void Move(const wxPoint &aMoveVector) override
Function Move moves the item by aMoveVector to a new position.
Definition: sch_sheet.h:465
wxSize GetSize()
Definition: sch_sheet.h:270
EDA_UNITS_T
Definition: common.h:157
SHEET_SIDE m_edge
Definition: sch_sheet.h:83
KICAD_T Type() const
Function Type()
Definition: base_struct.h:197
void Resize(const wxSize &aSize)
Resize this sheet to aSize and adjust all of the labels accordingly.
Definition: sch_sheet.cpp:703
bool HitTest(const wxPoint &aPosition, int aAccuracy) const override
Function HitTest tests if aPosition is contained within or on the bounding box of an item.
Definition: sch_sheet.cpp:828
void GetNetListItem(NETLIST_OBJECT_LIST &aNetListItems, SCH_SHEET_PATH *aSheetPath) override
Function GetNetListItem creates a new NETLIST_OBJECT for the schematic object and adds it to aNetList...
Definition: sch_sheet.cpp:857