Browse Source

Removed a few more headers from base_struct.h

pull/3/merge
Maciej Suminski 9 years ago
parent
commit
d7bf44eee0
  1. 13
      common/base_struct.cpp
  2. 1
      common/common_plotSVG_functions.cpp
  3. 1
      common/dialog_shim.cpp
  4. 1
      common/eda_text.cpp
  5. 1
      common/page_layout/class_worksheet_dataitem.cpp
  6. 1
      common/page_layout/page_layout_graphic_items.cpp
  7. 1
      common/tool/context_menu.cpp
  8. 1
      eeschema/class_libentry.h
  9. 1
      eeschema/lib_draw_item.h
  10. 1
      eeschema/lib_pin.h
  11. 1
      gerbview/class_gbr_layout.h
  12. 17
      include/base_struct.h
  13. 1
      include/basic_gal.h
  14. 1
      include/block_commande.h
  15. 1
      include/class_collector.h
  16. 1
      include/class_drawpanel.h
  17. 4
      include/class_title_block.h
  18. 1
      include/tool/tool_base.h
  19. 1
      pagelayout_editor/class_pl_editor_layout.cpp
  20. 1
      pcbnew/autorouter/autorout.h
  21. 1
      pcbnew/autorouter/routing_matrix.cpp

13
common/base_struct.cpp

@ -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
{
wxCHECK_MSG( false, NULL, wxT( "Clone not implemented in derived class " ) + GetClass() +

1
common/common_plotSVG_functions.cpp

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

1
common/dialog_shim.cpp

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

1
common/eda_text.cpp

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

1
common/page_layout/class_worksheet_dataitem.cpp

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

1
common/page_layout/page_layout_graphic_items.cpp

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

1
common/tool/context_menu.cpp

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

1
eeschema/class_libentry.h

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

1
eeschema/lib_draw_item.h

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

1
eeschema/lib_pin.h

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

1
gerbview/class_gbr_layout.h

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

17
include/base_struct.h

@ -34,13 +34,8 @@
#include <core/typeinfo.h>
#include <colors.h>
#include <bitmap_types.h>
#include <richio.h>
#include <view/view_item.h>
#include <class_eda_rect.h>
#include <functional>
#if defined(DEBUG)
#include <iostream> // needed for Show()
@ -305,17 +300,7 @@ public:
* system.
* It is OK to overestimate the size by a few counts.
*/
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 ) );
}
virtual const EDA_RECT GetBoundingBox() const;
/**
* Function Clone

1
include/basic_gal.h

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

1
include/block_commande.h

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

1
include/class_collector.h

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

1
include/class_drawpanel.h

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

4
include/class_title_block.h

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

1
include/tool/tool_base.h

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

1
pagelayout_editor/class_pl_editor_layout.cpp

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

1
pcbnew/autorouter/autorout.h

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

1
pcbnew/autorouter/routing_matrix.cpp

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

Loading…
Cancel
Save