2011-09-30 18:15:37 +00:00
|
|
|
/**
|
|
|
|
* @file pcbnew_config.h
|
|
|
|
* @brief Cconfiguration parameters for Pcbnew.
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2011-09-23 13:57:12 +00:00
|
|
|
#ifndef _PCBNEW_CONFIG_H_
|
|
|
|
#define _PCBNEW_CONFIG_H_
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <param_config.h>
|
|
|
|
#include <colors_selection.h>
|
2009-03-28 20:02:34 +00:00
|
|
|
|
2007-09-27 09:08:47 +00:00
|
|
|
#define GROUP wxT( "/pcbnew" )
|
|
|
|
#define GROUPLIB wxT( "/pcbnew/libraries" )
|
|
|
|
#define GROUPCOMMON wxT( "/common" )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2010-01-29 20:36:12 +00:00
|
|
|
/* Useful macro : */
|
++PCBNew
* Removed Pcb_Frame argument from BOARD() constructor, since it precludes
having a BOARD being edited by more than one editor, it was a bad design.
And this meant removing m_PcbFrame from BOARD.
* removed BOARD::SetWindowFrame(), and BOARD::m_PcbFrame
* Removed the global BOARD_DESIGN_SETTINGS which was in class_board.cpp
* added BOARD_DESIGN_SETTINGS to the BOARD class, a full instance
* a couple dialogs now only change BOARD_DESIGN_SETTINGS when OK is pressed,
such as dialog_mask_clearance, dialog_drc, etc.
* Removed common/pcbcommon.cpp's int g_CurrentVersionPCB = 1 and replaced it
with build_version.h's #define BOARD_FILE_VERSION, although there may be a
better place for this constant.
* Made the public functions in PARAM_CFG_ARRAY be type const.
void SaveParam(..) const and void ReadParam(..) const
* PARAM_CFG_BASE now has virtual destructor since we have various way of
destroying the derived class and boost::ptr_vector must be told about this.
* Pass const PARAM_CFG_ARRAY& instead of PARAM_CFG_ARRAY so that we can use
an automatic PARAM_CFG_ARRAY which is on the stack.\
* PCB_EDIT_FRAME::GetProjectFileParameters() may no longer cache the array,
since it has to access the current BOARD and the BOARD can change.
Remember BOARD_DESIGN_SETTINGS are now in the BOARD.
* Made the m_BoundingBox member private, this was a brutally hard task,
and indicative of the lack of commitment to accessors and object oriented
design on the part of KiCad developers. We must do better.
Added BOARD::GetBoundingBox, SetBoundingBox(), ComputeBoundingBox().
* Added PCB_BASE_FRAME::GetBoardBoundingBox() which calls BOARD::ComputeBoundingBox()
2011-12-05 06:15:33 +00:00
|
|
|
#define LOC_COLOR(layer) &g_ColorsSettings.m_LayersColors[layer]
|
|
|
|
#define ITEM_COLOR(item_visible) &g_ColorsSettings.m_ItemsColors[item_visible]
|
2011-09-23 13:57:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif // _PCBNEW_CONFIG_H_
|