2016-01-12 16:33:33 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2016-09-10 18:06:31 +00:00
|
|
|
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
|
2016-01-12 16:33:33 +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
|
|
|
|
*/
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
// For page and paper size, values are in 1/1000 inch
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
#ifndef WORKSHEET_H_
|
|
|
|
#define WORKSHEET_H_
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2017-02-20 16:57:41 +00:00
|
|
|
#include <gal/color4d.h>
|
2014-12-23 13:01:59 +00:00
|
|
|
#include <class_page_info.h>
|
2013-06-05 12:03:16 +00:00
|
|
|
|
|
|
|
// Forward declarations:
|
2013-05-22 08:45:25 +00:00
|
|
|
class EDA_DRAW_PANEL;
|
2013-06-29 09:52:22 +00:00
|
|
|
class EDA_RECT;
|
2013-05-22 08:45:25 +00:00
|
|
|
class TITLE_BLOCK;
|
|
|
|
|
2017-02-20 16:57:41 +00:00
|
|
|
using KIGFX::COLOR4D;
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
/**
|
|
|
|
* Function DrawPageLayout is a core function to draw the page layout with
|
|
|
|
* the frame and the basic inscriptions.
|
|
|
|
* @param aDC The device context.
|
2013-06-29 09:52:22 +00:00
|
|
|
* @param aClipBox = the clipping rect, or NULL if no clipping.
|
2013-05-25 09:01:44 +00:00
|
|
|
* @param aPageInfo for margins and page size (in mils).
|
2013-05-22 08:45:25 +00:00
|
|
|
* @param aFullSheetName The sheetpath (full sheet name), for basic inscriptions.
|
|
|
|
* @param aFileName The file name, for basic inscriptions.
|
|
|
|
* @param aTitleBlock The sheet title block, for basic inscriptions.
|
|
|
|
* @param aSheetCount The number of sheets (for basic inscriptions).
|
|
|
|
* @param aSheetNumber The sheet number (for basic inscriptions).
|
|
|
|
* @param aPenWidth the pen size The line width for drawing.
|
|
|
|
* @param aScalar the scale factor to convert from mils to internal units.
|
2013-06-29 09:52:22 +00:00
|
|
|
* @param aColor The color for drawing.
|
|
|
|
* @param aAltColor The color for items which need to be "hightlighted".
|
2016-09-10 18:06:31 +00:00
|
|
|
* @param aSheetLayer The layer from pcbnew.
|
2013-05-22 08:45:25 +00:00
|
|
|
*
|
|
|
|
* Parameters used in aPageInfo
|
|
|
|
* - the size of the page layout.
|
|
|
|
* - the LTmargin The left top margin of the page layout.
|
|
|
|
* - the RBmargin The right bottom margin of the page layout.
|
|
|
|
*/
|
2013-06-29 09:52:22 +00:00
|
|
|
void DrawPageLayout( wxDC* aDC, EDA_RECT* aClipBox,
|
2013-05-22 08:45:25 +00:00
|
|
|
const PAGE_INFO& aPageInfo,
|
|
|
|
const wxString &aFullSheetName,
|
|
|
|
const wxString& aFileName,
|
|
|
|
TITLE_BLOCK& aTitleBlock,
|
|
|
|
int aSheetCount, int aSheetNumber,
|
|
|
|
int aPenWidth, double aScalar,
|
2017-02-20 16:57:41 +00:00
|
|
|
COLOR4D aColor, COLOR4D aAltColor,
|
2016-09-10 18:06:31 +00:00
|
|
|
const wxString& aSheetLayer = wxEmptyString );
|
2013-05-22 08:45:25 +00:00
|
|
|
|
2013-06-05 14:24:03 +00:00
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
#endif // WORKSHEET_H_
|