Revert "Code cleanup: remove useless wx/wx.h include inside a few files."
due to compil issue on Linux
This reverts commit cffccc3970
.
This commit is contained in:
parent
cffccc3970
commit
3f8c9d49f8
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
#include "cbbox.h"
|
#include "cbbox.h"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <wx/log.h>
|
|
||||||
#include <wx/debug.h> // For the wxASSERT
|
#include <wx/debug.h> // For the wxASSERT
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#define _CBBOX_H_
|
#define _CBBOX_H_
|
||||||
|
|
||||||
#include "../ray.h"
|
#include "../ray.h"
|
||||||
|
#include <fctsys.h> // For the DBG(
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CBBOX
|
* CBBOX
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <fctsys.h>
|
||||||
#include <eda_base_frame.h>
|
#include <eda_base_frame.h>
|
||||||
#include <project.h>
|
#include <project.h>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
@ -38,6 +39,8 @@
|
||||||
#include <boost/uuid/uuid_io.hpp>
|
#include <boost/uuid/uuid_io.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/functional/hash.hpp>
|
||||||
|
|
||||||
|
using KIGFX::COLOR4D;
|
||||||
|
|
||||||
|
|
||||||
// Create only once, as seeding is *very* expensive
|
// Create only once, as seeding is *very* expensive
|
||||||
static boost::uuids::random_generator randomGenerator;
|
static boost::uuids::random_generator randomGenerator;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <dsnlexer.h>
|
#include <dsnlexer.h>
|
||||||
#include <macros.h>
|
#include <macros.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <wx/log.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/xml/xml.h>
|
#include <wx/xml/xml.h>
|
||||||
#include <xnode.h>
|
#include <xnode.h>
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ public:
|
||||||
* boundary and defines how the text is displayed.
|
* boundary and defines how the text is displayed.
|
||||||
*
|
*
|
||||||
* For example, with an alignment of bottom-right the origin will be positioned at the bottom
|
* For example, with an alignment of bottom-right the origin will be positioned at the bottom
|
||||||
* right of the text boundary. This makes it easier to right-align several text items
|
* right of the text boundary. This makes it easier to right-align several text items
|
||||||
* regardless of the length of text displayed.
|
* regardless of the length of text displayed.
|
||||||
*
|
*
|
||||||
* Text Alignment applies to all CADSTAR text. [...]
|
* Text Alignment applies to all CADSTAR text. [...]
|
||||||
|
@ -451,7 +451,7 @@ public:
|
||||||
* Note: Unaligned text operates in the way CADSTAR text always has. In most cases this behaves
|
* Note: Unaligned text operates in the way CADSTAR text always has. In most cases this behaves
|
||||||
* as Bottom Left alignment, but there are a few exceptions, e.g. pin names. Also unaligned
|
* as Bottom Left alignment, but there are a few exceptions, e.g. pin names. Also unaligned
|
||||||
* multiline text has an origin Bottom Left of the first line."
|
* multiline text has an origin Bottom Left of the first line."
|
||||||
*
|
*
|
||||||
* See also JUSTIFICATION
|
* See also JUSTIFICATION
|
||||||
*/
|
*/
|
||||||
enum class ALIGNMENT
|
enum class ALIGNMENT
|
||||||
|
@ -472,8 +472,8 @@ public:
|
||||||
static ALIGNMENT ParseAlignment( XNODE* aNode );
|
static ALIGNMENT ParseAlignment( XNODE* aNode );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief From CADSTAR Help: "Multi Line Text can also be justified as Left, Centre or Right.
|
* @brief From CADSTAR Help: "Multi Line Text can also be justified as Left, Centre or Right.
|
||||||
* This does not affect the text alignment. Note: Justification of single line text has no
|
* This does not affect the text alignment. Note: Justification of single line text has no
|
||||||
* effect."
|
* effect."
|
||||||
*
|
*
|
||||||
* This only affects multiline text
|
* This only affects multiline text
|
||||||
|
@ -684,7 +684,7 @@ public:
|
||||||
* a component outline/area (or an area of component copper, or
|
* a component outline/area (or an area of component copper, or
|
||||||
* a string of component text) dependent on the current mirror
|
* a string of component text) dependent on the current mirror
|
||||||
* status of the component.
|
* status of the component.
|
||||||
*
|
*
|
||||||
* For example, you may require a string of component text to
|
* For example, you may require a string of component text to
|
||||||
* be displayed only when the component is mirrored."
|
* be displayed only when the component is mirrored."
|
||||||
*/
|
*/
|
||||||
|
@ -1113,27 +1113,27 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Reads a CADSTAR Archive file (S-parameter format)
|
* @brief Reads a CADSTAR Archive file (S-parameter format)
|
||||||
* @param aFileName
|
* @param aFileName
|
||||||
* @param aFileTypeIdentifier Identifier of the first node in the file to check against.
|
* @param aFileTypeIdentifier Identifier of the first node in the file to check against.
|
||||||
E.g. "CADSTARPCB"
|
E.g. "CADSTARPCB"
|
||||||
* @return XNODE pointing to the top of the tree for further parsing. Each node has the first
|
* @return XNODE pointing to the top of the tree for further parsing. Each node has the first
|
||||||
* element as the node's name and subsequent elements as node attributes ("attr0",
|
* element as the node's name and subsequent elements as node attributes ("attr0",
|
||||||
* "attr1", "attr2", etc.). Caller is responsible for deleting to avoid memory leaks.
|
* "attr1", "attr2", etc.). Caller is responsible for deleting to avoid memory leaks.
|
||||||
* @throws IO_ERROR
|
* @throws IO_ERROR
|
||||||
*/
|
*/
|
||||||
static XNODE* LoadArchiveFile( const wxString& aFileName, const wxString& aFileTypeIdentifier );
|
static XNODE* LoadArchiveFile( const wxString& aFileName, const wxString& aFileTypeIdentifier );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
* @param aAttribute
|
* @param aAttribute
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
static bool IsValidAttribute( wxXmlAttribute* aAttribute );
|
static bool IsValidAttribute( wxXmlAttribute* aAttribute );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
* @param aNode
|
* @param aNode
|
||||||
* @param aID
|
* @param aID
|
||||||
* @param aIsRequired Prevents exception throwing if false.
|
* @param aIsRequired Prevents exception throwing if false.
|
||||||
* @return returns the value (wxString) of attribute "attrX" in aNode where 'X' is aID
|
* @return returns the value (wxString) of attribute "attrX" in aNode where 'X' is aID
|
||||||
* @throws IO_ERROR if attribute does not exist
|
* @throws IO_ERROR if attribute does not exist
|
||||||
|
@ -1142,9 +1142,9 @@ public:
|
||||||
XNODE* aNode, unsigned int aID, bool aIsRequired = true );
|
XNODE* aNode, unsigned int aID, bool aIsRequired = true );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
* @param aNode
|
* @param aNode
|
||||||
* @param aID
|
* @param aID
|
||||||
* @param aIsRequired Prevents exception throwing if false.
|
* @param aIsRequired Prevents exception throwing if false.
|
||||||
* @return returns the value (long) of attribute "attrX" in aNode where 'X' is aID
|
* @return returns the value (long) of attribute "attrX" in aNode where 'X' is aID
|
||||||
* @throws IO_ERROR if attribute does not exist
|
* @throws IO_ERROR if attribute does not exist
|
||||||
|
@ -1152,15 +1152,15 @@ public:
|
||||||
static long GetXmlAttributeIDLong( XNODE* aNode, unsigned int aID, bool aIsRequired = true );
|
static long GetXmlAttributeIDLong( XNODE* aNode, unsigned int aID, bool aIsRequired = true );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
* @param aNode
|
* @param aNode
|
||||||
* @throw IO_ERROR if a child node was found
|
* @throw IO_ERROR if a child node was found
|
||||||
*/
|
*/
|
||||||
static void CheckNoChildNodes( XNODE* aNode );
|
static void CheckNoChildNodes( XNODE* aNode );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
* @param aNode
|
* @param aNode
|
||||||
* @throw IO_ERROR if a node adjacent to aNode was found
|
* @throw IO_ERROR if a node adjacent to aNode was found
|
||||||
*/
|
*/
|
||||||
static void CheckNoNextNodes( XNODE* aNode );
|
static void CheckNoNextNodes( XNODE* aNode );
|
||||||
|
@ -1168,7 +1168,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
* @param aNode with a child node containing an EVALUE
|
* @param aNode with a child node containing an EVALUE
|
||||||
* @param aValueToParse
|
* @param aValueToParse
|
||||||
* @throw IO_ERROR if unable to parse or node is not an EVALUE
|
* @throw IO_ERROR if unable to parse or node is not an EVALUE
|
||||||
*/
|
*/
|
||||||
static void ParseChildEValue( XNODE* aNode, EVALUE& aValueToParse );
|
static void ParseChildEValue( XNODE* aNode, EVALUE& aValueToParse );
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
|
|
||||||
#include <richio.h>
|
#include <richio.h>
|
||||||
|
|
||||||
#include <wx/file.h>
|
|
||||||
#include <wx/translation.h>
|
|
||||||
|
|
||||||
// Fall back to getc() when getc_unlocked() is not available on the target platform.
|
// Fall back to getc() when getc_unlocked() is not available on the target platform.
|
||||||
#if !defined( HAVE_FGETC_NOLOCK )
|
#if !defined( HAVE_FGETC_NOLOCK )
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include <search_stack.h>
|
#include <search_stack.h>
|
||||||
#include <trace_helpers.h>
|
#include <trace_helpers.h>
|
||||||
#include <wx/tokenzr.h>
|
#include <wx/tokenzr.h>
|
||||||
#include <wx/log.h>
|
|
||||||
|
|
||||||
#if defined(__MINGW32__)
|
#if defined(__MINGW32__)
|
||||||
#define PATH_SEPS wxT( ";\r\n" )
|
#define PATH_SEPS wxT( ";\r\n" )
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <config.h> // to define DEFAULT_INSTALL_PATH
|
#include <config.h> // to define DEFAULT_INSTALL_PATH
|
||||||
#include <macros.h>
|
#include <macros.h>
|
||||||
#include <wx/log.h>
|
|
||||||
#include <trace_helpers.h>
|
#include <trace_helpers.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -631,7 +631,7 @@ void mpFXY::Plot( wxDC& dc, mpWindow& w )
|
||||||
if( !m_continuous )
|
if( !m_continuous )
|
||||||
{
|
{
|
||||||
bool first = true;
|
bool first = true;
|
||||||
wxCoord ix = 0;
|
wxCoord ix;
|
||||||
std::set<wxCoord> ys;
|
std::set<wxCoord> ys;
|
||||||
|
|
||||||
while( GetNextXY( x, y ) )
|
while( GetNextXY( x, y ) )
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <fctsys.h>
|
||||||
#include <plotter.h>
|
#include <plotter.h>
|
||||||
#include <sch_screen.h>
|
#include <sch_screen.h>
|
||||||
#include <sch_edit_frame.h>
|
#include <sch_edit_frame.h>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include <properties.h>
|
#include <properties.h>
|
||||||
|
|
||||||
#include <sch_io_mgr.h>
|
#include <sch_io_mgr.h>
|
||||||
#include <wx/translation.h>
|
|
||||||
|
|
||||||
#define FMT_UNIMPLEMENTED _( "Plugin \"%s\" does not implement the \"%s\" function." )
|
#define FMT_UNIMPLEMENTED _( "Plugin \"%s\" does not implement the \"%s\" function." )
|
||||||
|
|
||||||
|
|
|
@ -35,14 +35,13 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
#include <wx/wx.h>
|
||||||
#include <wx/confbase.h>
|
#include <wx/confbase.h>
|
||||||
#include <wx/fileconf.h>
|
#include <wx/fileconf.h>
|
||||||
#include <wx/dir.h>
|
#include <wx/dir.h>
|
||||||
#include <wx/string.h>
|
|
||||||
#include <wx/textctrl.h>
|
|
||||||
#include <wx/gdicmn.h>
|
|
||||||
|
|
||||||
#include <richio.h>
|
#include <richio.h>
|
||||||
|
#include <gal/color4d.h>
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
|
@ -41,7 +41,8 @@
|
||||||
#include <wx/aui/aui.h>
|
#include <wx/aui/aui.h>
|
||||||
#include <wx/docview.h>
|
#include <wx/docview.h>
|
||||||
#include <wx/event.h>
|
#include <wx/event.h>
|
||||||
|
#include <fctsys.h>
|
||||||
|
#include <common.h>
|
||||||
#include <layers_id_colors_and_visibility.h>
|
#include <layers_id_colors_and_visibility.h>
|
||||||
#include <frame_type.h>
|
#include <frame_type.h>
|
||||||
#include <hotkeys_basic.h>
|
#include <hotkeys_basic.h>
|
||||||
|
|
|
@ -26,6 +26,14 @@
|
||||||
#define FCTSYS_H_
|
#define FCTSYS_H_
|
||||||
|
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
#define DBG(x) x
|
||||||
|
#else
|
||||||
|
#define DBG(x) // nothing
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#endif // FCTSYS_H__
|
#endif // FCTSYS_H__
|
||||||
|
|
|
@ -31,14 +31,13 @@
|
||||||
#ifndef MACROS_H
|
#ifndef MACROS_H
|
||||||
#define MACROS_H
|
#define MACROS_H
|
||||||
|
|
||||||
|
#include <wx/wx.h>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <memory> // std::shared_ptr
|
#include <memory> // std::shared_ptr
|
||||||
|
|
||||||
#include <wx/string.h>
|
|
||||||
|
|
||||||
#if defined( __has_attribute )
|
#if defined( __has_attribute )
|
||||||
#define KI_HAS_ATTRIBUTE( x ) __has_attribute( x )
|
#define KI_HAS_ATTRIBUTE( x ) __has_attribute( x )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
#ifndef PROPERTY_H
|
#ifndef PROPERTY_H
|
||||||
#define PROPERTY_H
|
#define PROPERTY_H
|
||||||
|
|
||||||
|
#include <wx/wx.h>
|
||||||
#include <wx/any.h>
|
#include <wx/any.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/bitmap.h>
|
|
||||||
#include <wx/propgrid/property.h>
|
#include <wx/propgrid/property.h>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
|
@ -35,8 +35,7 @@
|
||||||
// I really did not want to be dependent on wxWidgets in richio
|
// I really did not want to be dependent on wxWidgets in richio
|
||||||
// but the errorText needs to be wide char so wxString rules.
|
// but the errorText needs to be wide char so wxString rules.
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <wx/string.h>
|
#include <wx/wx.h>
|
||||||
#include <wx/stream.h>
|
|
||||||
|
|
||||||
#include <ki_exception.h>
|
#include <ki_exception.h>
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,9 @@
|
||||||
#define __STATUS_POPUP_H_
|
#define __STATUS_POPUP_H_
|
||||||
|
|
||||||
|
|
||||||
|
#include <common.h>
|
||||||
#include <math/vector2d.h>
|
#include <math/vector2d.h>
|
||||||
#include <wx/popupwin.h>
|
#include <wx/popupwin.h>
|
||||||
#include <wx/timer.h>
|
|
||||||
#include <wx/panel.h>
|
|
||||||
#include <wx/stattext.h>
|
|
||||||
#include <wx/sizer.h>
|
|
||||||
|
|
||||||
class EDA_DRAW_FRAME;
|
class EDA_DRAW_FRAME;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
#define TOOL_HOLDER_H
|
#define TOOL_HOLDER_H
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <fctsys.h>
|
||||||
|
#include <common.h>
|
||||||
#include <tool/action_manager.h>
|
#include <tool/action_manager.h>
|
||||||
#include <tool/selection.h>
|
#include <tool/selection.h>
|
||||||
#include <tool/tool_action.h>
|
#include <tool/tool_action.h>
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#define PANEL_SETUP_BOARD_STACKUP_H
|
#define PANEL_SETUP_BOARD_STACKUP_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <fctsys.h>
|
||||||
#include <pcbnew.h>
|
#include <pcbnew.h>
|
||||||
#include <class_board.h>
|
#include <class_board.h>
|
||||||
#include <widgets/unit_binder.h>
|
#include <widgets/unit_binder.h>
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
|
|
||||||
|
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/arrstr.h>
|
|
||||||
#include <wx/colour.h>
|
|
||||||
#include <layers_id_colors_and_visibility.h>
|
#include <layers_id_colors_and_visibility.h>
|
||||||
#include <i18n_utility.h> // For _HKI definition
|
#include <i18n_utility.h> // For _HKI definition
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,10 @@
|
||||||
#include <pcb_edit_frame.h>
|
#include <pcb_edit_frame.h>
|
||||||
#include <project.h>
|
#include <project.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
//#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
#include <wx_html_report_panel.h>
|
#include <wx_html_report_panel.h>
|
||||||
|
|
||||||
|
#include <fctsys.h>
|
||||||
#include <frame_type.h>
|
#include <frame_type.h>
|
||||||
#include <tool/actions.h>
|
#include <tool/actions.h>
|
||||||
#include <tool/tool_manager.h>
|
#include <tool/tool_manager.h>
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#define _DIALOG_DRC_H_
|
#define _DIALOG_DRC_H_
|
||||||
|
|
||||||
#include <wx/htmllbox.h>
|
#include <wx/htmllbox.h>
|
||||||
|
#include <fctsys.h>
|
||||||
#include <pcbnew.h>
|
#include <pcbnew.h>
|
||||||
#include <rc_item.h>
|
#include <rc_item.h>
|
||||||
#include <class_marker_pcb.h>
|
#include <class_marker_pcb.h>
|
||||||
|
|
|
@ -52,13 +52,13 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~DRC_TEST_PROVIDER_MATCHED_LENGTH()
|
virtual ~DRC_TEST_PROVIDER_MATCHED_LENGTH()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Run() override;
|
virtual bool Run() override;
|
||||||
|
|
||||||
virtual const wxString GetName() const override
|
virtual const wxString GetName() const override
|
||||||
{
|
{
|
||||||
return "length";
|
return "length";
|
||||||
};
|
};
|
||||||
|
@ -109,8 +109,7 @@ void test::DRC_TEST_PROVIDER_MATCHED_LENGTH::checkLengthViolations(
|
||||||
{
|
{
|
||||||
bool minViolation = false;
|
bool minViolation = false;
|
||||||
bool maxViolation = false;
|
bool maxViolation = false;
|
||||||
int minLen = 0;
|
int minLen, maxLen;
|
||||||
int maxLen = 0;
|
|
||||||
|
|
||||||
if( aConstraint.GetValue().HasMin() && ent.total < aConstraint.GetValue().Min() )
|
if( aConstraint.GetValue().HasMin() && ent.total < aConstraint.GetValue().Min() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
#include <boost/ptr_container/ptr_vector.hpp>
|
#include <boost/ptr_container/ptr_vector.hpp>
|
||||||
|
|
||||||
|
#include <fctsys.h>
|
||||||
#include <macros.h>
|
#include <macros.h>
|
||||||
#include <lib_id.h>
|
#include <lib_id.h>
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#ifndef PCBNEW_H
|
#ifndef PCBNEW_H
|
||||||
#define PCBNEW_H
|
#define PCBNEW_H
|
||||||
|
|
||||||
|
#include <fctsys.h> // wxWidgets include.
|
||||||
#include <convert_to_biu.h> // to define Mils2iu() conversion function
|
#include <convert_to_biu.h> // to define Mils2iu() conversion function
|
||||||
|
|
||||||
// These are only here for algorithmic safety, not to tell the user what to do
|
// These are only here for algorithmic safety, not to tell the user what to do
|
||||||
|
|
|
@ -24,10 +24,9 @@
|
||||||
|
|
||||||
#include <io_mgr.h>
|
#include <io_mgr.h>
|
||||||
#include <properties.h>
|
#include <properties.h>
|
||||||
#include <wx/translation.h>
|
|
||||||
|
|
||||||
|
|
||||||
#define FMT_UNIMPLEMENTED "Plugin \"%s\" does not implement the \"%s\" function."
|
#define FMT_UNIMPLEMENTED _( "Plugin \"%s\" does not implement the \"%s\" function." )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function not_implemented
|
* Function not_implemented
|
||||||
|
@ -39,8 +38,8 @@
|
||||||
static void not_implemented( PLUGIN* aPlugin, const char* aCaller )
|
static void not_implemented( PLUGIN* aPlugin, const char* aCaller )
|
||||||
{
|
{
|
||||||
THROW_IO_ERROR( wxString::Format( FMT_UNIMPLEMENTED,
|
THROW_IO_ERROR( wxString::Format( FMT_UNIMPLEMENTED,
|
||||||
aPlugin->PluginName(),
|
aPlugin->PluginName().GetData(),
|
||||||
wxString::FromUTF8( aCaller ) ) );
|
wxString::FromUTF8( aCaller ).GetData() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
// see http://www.boost.org/libs/ptr_container/doc/ptr_set.html
|
// see http://www.boost.org/libs/ptr_container/doc/ptr_set.html
|
||||||
#include <boost/ptr_container/ptr_set.hpp>
|
#include <boost/ptr_container/ptr_set.hpp>
|
||||||
|
|
||||||
|
#include <fctsys.h>
|
||||||
#include <specctra_import_export/specctra_lexer.h>
|
#include <specctra_import_export/specctra_lexer.h>
|
||||||
#include <pcbnew.h>
|
#include <pcbnew.h>
|
||||||
|
|
||||||
|
@ -3934,7 +3935,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function FromBOARD
|
* Function FromBOARD
|
||||||
* adds the entire BOARD to the PCB but does not write it out. Note that the BOARD given
|
* adds the entire BOARD to the PCB but does not write it out. Note that the BOARD given
|
||||||
* to this function must have all the MODULEs on the component side of the BOARD.
|
* to this function must have all the MODULEs on the component side of the BOARD.
|
||||||
*
|
*
|
||||||
* See PCB_EDIT_FRAME::ExportToSpecctra() for an example before calling this function.
|
* See PCB_EDIT_FRAME::ExportToSpecctra() for an example before calling this function.
|
||||||
|
@ -3945,8 +3946,8 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function FromSESSION
|
* Function FromSESSION
|
||||||
* adds the entire SESSION info to a BOARD but does not write it out. The BOARD given to
|
* adds the entire SESSION info to a BOARD but does not write it out. The BOARD given to
|
||||||
* this function will have all its tracks and via's replaced, and all its components are
|
* this function will have all its tracks and via's replaced, and all its components are
|
||||||
* subject to being moved.
|
* subject to being moved.
|
||||||
*
|
*
|
||||||
* @param aBoard The BOARD to merge the SESSION information into.
|
* @param aBoard The BOARD to merge the SESSION information into.
|
||||||
|
|
|
@ -268,11 +268,9 @@ void UpdateCopyOfZonesList( PICKED_ITEMS_LIST& aPickList,
|
||||||
if( notfound ) // happens when the new zone overlaps an existing zone
|
if( notfound ) // happens when the new zone overlaps an existing zone
|
||||||
// and these zones are combined
|
// and these zones are combined
|
||||||
{
|
{
|
||||||
#if defined(DEBUG)
|
DBG( printf(
|
||||||
printf(
|
|
||||||
"UpdateCopyOfZonesList(): item not found in aAuxiliaryList,"
|
"UpdateCopyOfZonesList(): item not found in aAuxiliaryList,"
|
||||||
"combined with another zone\n" );
|
"combined with another zone\n" ) );
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
|
|
||||||
#include <unit_test_utils/unit_test_utils.h>
|
#include <unit_test_utils/unit_test_utils.h>
|
||||||
|
|
||||||
#include <layers_id_colors_and_visibility.h>
|
#include <layers_id_colors_and_visibility.h>
|
||||||
|
@ -42,11 +40,11 @@ struct EXPR_TO_TEST
|
||||||
|
|
||||||
using VAL = LIBEVAL::VALUE;
|
using VAL = LIBEVAL::VALUE;
|
||||||
|
|
||||||
const static std::vector<EXPR_TO_TEST> simpleExpressions = {
|
const static std::vector<EXPR_TO_TEST> simpleExpressions = {
|
||||||
{ "10mm + 20 mm", false, VAL( 30e6 ) },
|
{ "10mm + 20 mm", false, VAL( 30e6 ) },
|
||||||
{ "3*(7+8)", false, VAL( 3 * ( 7 + 8 ) ) },
|
{ "3*(7+8)", false, VAL( 3 * ( 7 + 8 ) ) },
|
||||||
{ "3*7+8", false, VAL( 3 * 7 + 8 ) },
|
{ "3*7+8", false, VAL( 3 * 7 + 8 ) },
|
||||||
{ "(3*7)+8", false, VAL( 3 * 7 + 8 ) },
|
{ "(3*7)+8", false, VAL( 3 * 7 + 8 ) },
|
||||||
{ "10mm + 20)", true, VAL( 0 ) },
|
{ "10mm + 20)", true, VAL( 0 ) },
|
||||||
|
|
||||||
{ "1", false, VAL(1) },
|
{ "1", false, VAL(1) },
|
||||||
|
|
Loading…
Reference in New Issue