2014-10-21 18:36:45 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012-2014 Jean-Pierre Charras jp.charras at wanadoo.fr
|
2018-01-29 12:26:58 +00:00
|
|
|
* Copyright (C) 1992-2014 KiCad Developers, see AUTHORS.txt for contributors.
|
2014-10-21 18:36:45 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2012-04-25 19:46:30 +00:00
|
|
|
/**
|
2018-01-29 12:26:58 +00:00
|
|
|
* @file gbr_screen.h
|
2012-04-25 19:46:30 +00:00
|
|
|
*/
|
|
|
|
|
2018-01-29 12:26:58 +00:00
|
|
|
#ifndef GBR_SCREEN_H
|
|
|
|
#define GBR_SCREEN_H
|
2012-04-25 19:46:30 +00:00
|
|
|
|
|
|
|
#include <base_units.h>
|
2016-05-25 09:45:55 +00:00
|
|
|
|
2018-01-29 10:37:29 +00:00
|
|
|
#include <base_screen.h>
|
2013-03-30 17:24:04 +00:00
|
|
|
#include <layers_id_colors_and_visibility.h>
|
2012-04-25 19:46:30 +00:00
|
|
|
|
2016-06-05 11:49:25 +00:00
|
|
|
#define ZOOM_FACTOR( x ) ( x * IU_PER_MILS )
|
2012-04-25 19:46:30 +00:00
|
|
|
|
|
|
|
/* Handle info to display a board */
|
2012-05-04 17:44:42 +00:00
|
|
|
class GBR_SCREEN : public BASE_SCREEN
|
2012-04-25 19:46:30 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-05-27 08:20:17 +00:00
|
|
|
int m_Active_Layer;
|
2012-04-25 19:46:30 +00:00
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
* @param aPageSizeIU is the size of the initial paper page in internal units.
|
|
|
|
*/
|
|
|
|
GBR_SCREEN( const wxSize& aPageSizeIU );
|
|
|
|
~GBR_SCREEN();
|
|
|
|
|
2014-04-30 19:16:22 +00:00
|
|
|
GBR_SCREEN* Next() const { return static_cast<GBR_SCREEN*>( Pnext ); }
|
2012-04-25 19:46:30 +00:00
|
|
|
|
2012-05-04 17:44:42 +00:00
|
|
|
/**
|
|
|
|
* Function ClearUndoORRedoList
|
|
|
|
* virtual pure in BASE_SCREEN, so it must be defined here
|
|
|
|
*/
|
2016-09-24 18:53:15 +00:00
|
|
|
void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 ) override;
|
2012-04-25 19:46:30 +00:00
|
|
|
};
|
|
|
|
|
2012-05-04 17:44:42 +00:00
|
|
|
|
2018-01-29 12:26:58 +00:00
|
|
|
#endif // GBR_SCREEN_H
|