KiCad PCB EDA Suite
list_operations.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) 2017 KiCad Developers, see CHANGELOG.TXT for contributors.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, you may find one here:
18  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19  * or you may search the http://www.gnu.org website for the version 2 license,
20  * or you may write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22  */
23 
24 #ifndef LIST_OPERATIONS_H
25 #define LIST_OPERATIONS_H
26 
27 namespace KIGFX {
28 class COLOR4D;
29 }
30 
31 class wxPoint;
32 class wxDC;
33 class EDA_DRAW_PANEL;
34 class SCH_ITEM;
35 class SCH_SCREEN;
36 class PICKED_ITEMS_LIST;
37 
38 void SetSchItemParent( SCH_ITEM* Struct, SCH_SCREEN* Screen );
39 void RotateListOfItems( PICKED_ITEMS_LIST& aItemsList, const wxPoint& rotationPoint );
40 void MirrorY( PICKED_ITEMS_LIST& aItemsList, const wxPoint& aMirrorPoint );
41 void MirrorX( PICKED_ITEMS_LIST& aItemsList, const wxPoint& aMirrorPoint );
42 
48 void DeleteItemsInList( EDA_DRAW_PANEL* panel, PICKED_ITEMS_LIST& aItemsList );
49 
55 void DuplicateItemsInList( SCH_SCREEN* screen, PICKED_ITEMS_LIST& aItemsList,
56  const wxPoint& aMoveVector );
57 
68 SCH_ITEM* DuplicateStruct( SCH_ITEM* aDrawStruct, bool aClone = false );
69 
70 void DrawDanglingSymbol( EDA_DRAW_PANEL* panel, wxDC* DC,
71  const wxPoint& pos, const KIGFX::COLOR4D& Color );
72 
73 #endif /* LIST_OPERATIONS_H */
void RotateListOfItems(PICKED_ITEMS_LIST &aItemsList, const wxPoint &rotationPoint)
Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.
Definition: class_module.h:58
void MirrorX(PICKED_ITEMS_LIST &aItemsList, const wxPoint &aMirrorPoint)
SCH_ITEM * DuplicateStruct(SCH_ITEM *aDrawStruct, bool aClone=false)
Routine to create a new copy of given struct.
void DuplicateItemsInList(SCH_SCREEN *screen, PICKED_ITEMS_LIST &aItemsList, const wxPoint &aMoveVector)
Routine to copy a new entity of an object for each object in list and reposition it.
Class PICKED_ITEMS_LIST is a holder to handle information on schematic or board items.
void DrawDanglingSymbol(EDA_DRAW_PANEL *panel, wxDC *DC, const wxPoint &pos, const KIGFX::COLOR4D &Color)
Definition: eeredraw.cpp:37
void MirrorY(PICKED_ITEMS_LIST &aItemsList, const wxPoint &aMirrorPoint)
Class SCH_ITEM is a base class for any item which can be embedded within the SCHEMATIC container clas...
void SetSchItemParent(SCH_ITEM *Struct, SCH_SCREEN *Screen)
void DeleteItemsInList(EDA_DRAW_PANEL *panel, PICKED_ITEMS_LIST &aItemsList)
Function DeleteItemsInList delete schematic items in aItemsList deleted items are put in undo list...
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39