KiCad PCB EDA Suite
class_pl_editor_screen.h
Go to the documentation of this file.
1 
5 /*
6  * This program source code file is part of KiCad, a free EDA CAD application.
7  *
8  * Copyright (C) 2013 CERN
9  * @author Jean-Pierre Charras, jp.charras at wanadoo.fr
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, you may find one here:
23  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
24  * or you may search the http://www.gnu.org website for the version 2 license,
25  * or you may write to the Free Software Foundation, Inc.,
26  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
27  */
28 
29 #ifndef CLASS_PL_EDITOR_SCREEN_H_
30 #define CLASS_PL_EDITOR_SCREEN_H_
31 
32 
33 #include <base_units.h>
34 #include <class_base_screen.h>
35 
36 class WORKSHEET_DATAITEM;
37 
38 
39 /* Handle info to display a board */
41 {
42 public:
47  PL_EDITOR_SCREEN( const wxSize& aPageSizeIU );
48 
50 
51  virtual int MilsToIuScalar() override;
52 
58  void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 ) override;
67  {
69  }
70 
77 };
78 
79 
80 #endif // CLASS_PL_EDITOR_SCREEN_H_
virtual int MilsToIuScalar() override
Function MilsToIuScalar returns the scalar required to convert mils to internal units.
void SetCurItem(EDA_ITEM *aItem)
Function SetCurItem sets the currently selected object, m_CurrentItem.
WORKSHEET_DATAITEM * GetCurItem() const
Function GetCurItem returns the currently selected WORKSHEET_DATAITEM, overriding BASE_SCREEN::GetCur...
EDA_ITEM * GetCurItem() const
void ClearUndoORRedoList(UNDO_REDO_CONTAINER &aList, int aItemCount=-1) override
Function ClearUndoORRedoList virtual pure in BASE_SCREEN, so it must be defined here.
Implementation of conversion functions that require both schematic and board internal units...
void SetCurItem(WORKSHEET_DATAITEM *aItem)
Function SetCurItem sets the currently selected object, m_CurrentItem.
Class UNDO_REDO_CONTAINER is a holder to handle alist of undo (or redo) command.
Class BASE_SCREEN handles how to draw a screen (a board, a schematic ...)
BASE_SCREEN class implementation.
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
Definition: base_struct.h:165
PL_EDITOR_SCREEN(const wxSize &aPageSizeIU)
Constructor.