2014-10-19 22:17:43 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
2021-06-14 18:00:08 +00:00
|
|
|
* Copyright (C) 2016-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
2014-10-19 22:17:43 +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
|
|
|
|
*/
|
|
|
|
|
2008-02-26 01:07:38 +00:00
|
|
|
#ifndef _GENERAL_H_
|
|
|
|
#define _GENERAL_H_
|
|
|
|
|
2017-02-20 16:57:41 +00:00
|
|
|
#include <gal/color4d.h>
|
2021-07-29 09:47:43 +00:00
|
|
|
#include <layer_ids.h>
|
2017-02-20 16:57:41 +00:00
|
|
|
|
|
|
|
using KIGFX::COLOR4D;
|
2010-10-08 20:40:57 +00:00
|
|
|
|
2010-11-10 15:30:12 +00:00
|
|
|
class TRANSFORM;
|
|
|
|
|
2019-03-19 00:19:00 +00:00
|
|
|
#define EESCHEMA_VERSION 5
|
2007-05-06 16:03:28 +00:00
|
|
|
#define SCHEMATIC_HEAD_STRING "Schematic File Version"
|
|
|
|
|
2021-06-14 18:00:08 +00:00
|
|
|
/* Rotation, mirror of graphic items in symbol bodies are handled by a
|
2012-09-28 17:47:41 +00:00
|
|
|
* transform matrix. The default matrix is useful to draw lib entries with
|
|
|
|
* using this default matrix ( no rotation, no mirror but Y axis is bottom to top, and
|
2015-04-22 11:39:00 +00:00
|
|
|
* Y draw axis is to to bottom so we must have a default matrix that reverses
|
2021-06-09 19:32:58 +00:00
|
|
|
* the Y coordinate and keeps the X coordinate
|
2010-11-10 15:30:12 +00:00
|
|
|
*/
|
|
|
|
extern TRANSFORM DefaultTransform;
|
|
|
|
|
2012-09-28 17:47:41 +00:00
|
|
|
#endif // _GENERAL_H_
|