Removed a few more headers from base_struct.h

This commit is contained in:
Maciej Suminski 2017-02-22 17:54:01 +01:00
parent 0dc88bb4cf
commit d7bf44eee0
21 changed files with 33 additions and 19 deletions

View File

@ -109,6 +109,19 @@ void EDA_ITEM::SetModified()
} }
const EDA_RECT EDA_ITEM::GetBoundingBox() const
{
#if defined(DEBUG)
printf( "Missing GetBoundingBox()\n" );
Show( 0, std::cout ); // tell me which classes still need GetBoundingBox support
#endif
// return a zero-sized box per default. derived classes should override
// this
return EDA_RECT( wxPoint( 0, 0 ), wxSize( 0, 0 ) );
}
EDA_ITEM* EDA_ITEM::Clone() const EDA_ITEM* EDA_ITEM::Clone() const
{ {
wxCHECK_MSG( false, NULL, wxT( "Clone not implemented in derived class " ) + GetClass() + wxCHECK_MSG( false, NULL, wxT( "Clone not implemented in derived class " ) + GetClass() +

View File

@ -93,6 +93,7 @@
#include <fctsys.h> #include <fctsys.h>
#include <trigo.h> #include <trigo.h>
#include <wxstruct.h> #include <wxstruct.h>
#include <class_eda_rect.h>
#include <base_struct.h> #include <base_struct.h>
#include <common.h> #include <common.h>
#include <plot_common.h> #include <plot_common.h>

View File

@ -26,6 +26,7 @@
#include <kiway_player.h> #include <kiway_player.h>
#include <wx/evtloop.h> #include <wx/evtloop.h>
#include <pgm_base.h> #include <pgm_base.h>
#include <class_eda_rect.h>
/// Toggle a window's "enable" status to disabled, then enabled on destruction. /// Toggle a window's "enable" status to disabled, then enabled on destruction.

View File

@ -29,6 +29,7 @@
#include <eda_text.h> #include <eda_text.h>
#include <drawtxt.h> #include <drawtxt.h>
#include <class_eda_rect.h>
#include <macros.h> #include <macros.h>
#include <trigo.h> // RotatePoint #include <trigo.h> // RotatePoint
#include <class_drawpanel.h> // EDA_DRAW_PANEL #include <class_drawpanel.h> // EDA_DRAW_PANEL

View File

@ -56,6 +56,7 @@
#include <fctsys.h> #include <fctsys.h>
#include <drawtxt.h> #include <drawtxt.h>
#include <class_eda_rect.h>
#include <worksheet.h> #include <worksheet.h>
#include <class_title_block.h> #include <class_title_block.h>
#include <worksheet_shape_builder.h> #include <worksheet_shape_builder.h>

View File

@ -53,6 +53,7 @@
*/ */
#include <fctsys.h> #include <fctsys.h>
#include <class_eda_rect.h>
#include <drawtxt.h> #include <drawtxt.h>
#include <worksheet.h> #include <worksheet.h>
#include <class_title_block.h> #include <class_title_block.h>

View File

@ -27,6 +27,7 @@
#include <tool/tool_manager.h> #include <tool/tool_manager.h>
#include <tool/tool_interactive.h> #include <tool/tool_interactive.h>
#include <tool/context_menu.h> #include <tool/context_menu.h>
#include <wx/log.h>
#include <functional> #include <functional>
using namespace std::placeholders; using namespace std::placeholders;

View File

@ -37,6 +37,7 @@
#include <vector> #include <vector>
#include <memory> #include <memory>
class EDA_RECT;
class LINE_READER; class LINE_READER;
class OUTPUTFORMATTER; class OUTPUTFORMATTER;
class PART_LIB; class PART_LIB;

View File

@ -32,6 +32,7 @@
#define _LIB_ITEM_H_ #define _LIB_ITEM_H_
#include <base_struct.h> #include <base_struct.h>
#include <class_eda_rect.h>
#include <transform.h> #include <transform.h>
#include <gr_basic.h> #include <gr_basic.h>

View File

@ -32,6 +32,7 @@
class SCH_COMPONENT; class SCH_COMPONENT;
#include <class_eda_rect.h>
#include <lib_draw_item.h> #include <lib_draw_item.h>
#include "pin_shape.h" #include "pin_shape.h"

View File

@ -42,6 +42,7 @@
#include <class_gbr_display_options.h> #include <class_gbr_display_options.h>
#include <gr_basic.h> #include <gr_basic.h>
#include <class_eda_rect.h>
class GERBER_FILE_IMAGE_LIST; class GERBER_FILE_IMAGE_LIST;

View File

@ -34,13 +34,8 @@
#include <core/typeinfo.h> #include <core/typeinfo.h>
#include <colors.h>
#include <bitmap_types.h> #include <bitmap_types.h>
#include <richio.h>
#include <view/view_item.h> #include <view/view_item.h>
#include <class_eda_rect.h>
#include <functional>
#if defined(DEBUG) #if defined(DEBUG)
#include <iostream> // needed for Show() #include <iostream> // needed for Show()
@ -305,17 +300,7 @@ public:
* system. * system.
* It is OK to overestimate the size by a few counts. * It is OK to overestimate the size by a few counts.
*/ */
virtual const EDA_RECT GetBoundingBox() const virtual const EDA_RECT GetBoundingBox() const;
{
#if defined(DEBUG)
printf( "Missing GetBoundingBox()\n" );
Show( 0, std::cout ); // tell me which classes still need GetBoundingBox support
#endif
// return a zero-sized box per default. derived classes should override
// this
return EDA_RECT( wxPoint( 0, 0 ), wxSize( 0, 0 ) );
}
/** /**
* Function Clone * Function Clone

View File

@ -26,6 +26,7 @@
#define BASIC_GAL_H #define BASIC_GAL_H
#include <plot_common.h> #include <plot_common.h>
#include <class_eda_rect.h>
#include <gal/stroke_font.h> #include <gal/stroke_font.h>
#include <gal/graphics_abstraction_layer.h> #include <gal/graphics_abstraction_layer.h>

View File

@ -35,6 +35,7 @@
#include <base_struct.h> #include <base_struct.h>
#include <class_undoredo_container.h> #include <class_undoredo_container.h>
#include <gr_basic.h> #include <gr_basic.h>
#include <class_eda_rect.h>
/* Block state codes. */ /* Block state codes. */
typedef enum { typedef enum {

View File

@ -35,6 +35,7 @@
#include <fctsys.h> #include <fctsys.h>
#include <base_struct.h> // SEARCH_RESULT #include <base_struct.h> // SEARCH_RESULT
#include <common.h> // GetNewTimeStamp() #include <common.h> // GetNewTimeStamp()
#include <class_eda_rect.h>
class EDA_ITEM; class EDA_ITEM;

View File

@ -33,6 +33,7 @@
#include <base_struct.h> #include <base_struct.h>
#include <gr_basic.h> #include <gr_basic.h>
#include <class_eda_rect.h>
class BASE_SCREEN; class BASE_SCREEN;

View File

@ -25,11 +25,9 @@
#define CLASS_TITLE_BLOCK_H_ #define CLASS_TITLE_BLOCK_H_
#include <wx/string.h> #include <wx/string.h>
#include <ki_exception.h>
class OUTPUTFORMATTER; class OUTPUTFORMATTER;
class IO_ERROR;
/** /**
* Class TITLE_BLOCK * Class TITLE_BLOCK

View File

@ -36,6 +36,7 @@
class EDA_ITEM; class EDA_ITEM;
class TOOL_MANAGER; class TOOL_MANAGER;
class wxWindow;
namespace KIGFX namespace KIGFX
{ {

View File

@ -31,6 +31,7 @@
#include <fctsys.h> #include <fctsys.h>
#include <common.h> #include <common.h>
#include <class_eda_rect.h>
#include <class_pl_editor_layout.h> #include <class_pl_editor_layout.h>
PL_EDITOR_LAYOUT::PL_EDITOR_LAYOUT() PL_EDITOR_LAYOUT::PL_EDITOR_LAYOUT()

View File

@ -34,6 +34,7 @@
#include <base_struct.h> #include <base_struct.h>
#include <class_eda_rect.h>
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>

View File

@ -37,6 +37,7 @@
#include <cell.h> #include <cell.h>
#include <autorout.h> #include <autorout.h>
#include <class_eda_rect.h>
#include <class_board.h> #include <class_board.h>
#include <class_module.h> #include <class_module.h>
#include <class_track.h> #include <class_track.h>