Remove kicad_string.h from eda_text.h

This commit is contained in:
Marek Roszko 2020-10-14 07:03:58 -04:00
parent 90da5fccbd
commit 5302f7ce73
13 changed files with 17 additions and 6 deletions

View File

@ -39,6 +39,7 @@
#include <schematic.h> #include <schematic.h>
#include <connection_graph.h> #include <connection_graph.h>
#include <widgets/ui_common.h> #include <widgets/ui_common.h>
#include <kicad_string.h>
#include <advanced_config.h> // for realtime connectivity switch #include <advanced_config.h> // for realtime connectivity switch

View File

@ -27,6 +27,7 @@
#include <sch_validators.h> #include <sch_validators.h>
#include <dialog_edit_sheet_pin.h> #include <dialog_edit_sheet_pin.h>
#include <html_messagebox.h> #include <html_messagebox.h>
#include <kicad_string.h>
static wxString sheetPinTypes[] = static wxString sheetPinTypes[] =

View File

@ -48,6 +48,7 @@
#include <wx/ffile.h> #include <wx/ffile.h>
#include <erc_item.h> #include <erc_item.h>
#include <eeschema_settings.h> #include <eeschema_settings.h>
#include <kicad_string.h>
DIALOG_ERC::DIALOG_ERC( SCH_EDIT_FRAME* parent ) : DIALOG_ERC::DIALOG_ERC( SCH_EDIT_FRAME* parent ) :
DIALOG_ERC_BASE( parent, ID_DIALOG_ERC ), // parent looks for this ID explicitly DIALOG_ERC_BASE( parent, ID_DIALOG_ERC ), // parent looks for this ID explicitly

View File

@ -33,6 +33,7 @@
#include <widgets/wx_grid.h> #include <widgets/wx_grid.h>
#include <pgm_base.h> #include <pgm_base.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <kicad_string.h>
class PIN_TABLE_DATA_MODEL : public wxGridTableBase class PIN_TABLE_DATA_MODEL : public wxGridTableBase
{ {

View File

@ -27,6 +27,7 @@
#include <sch_screen.h> #include <sch_screen.h>
#include <project/net_settings.h> #include <project/net_settings.h>
#include <advanced_config.h> #include <advanced_config.h>
#include <kicad_string.h>
#include <sch_connection.h> #include <sch_connection.h>

View File

@ -33,6 +33,7 @@
#include <hierarch.h> #include <hierarch.h>
#include <html_messagebox.h> #include <html_messagebox.h>
#include <invoke_sch_dialog.h> #include <invoke_sch_dialog.h>
#include <kicad_string.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <kiplatform/app.h> #include <kiplatform/app.h>
#include <kiway.h> #include <kiway.h>

View File

@ -29,6 +29,7 @@
#include <lib_arc.h> #include <lib_arc.h>
#include <lib_polyline.h> #include <lib_polyline.h>
#include <lib_text.h> #include <lib_text.h>
#include <kicad_string.h>
#include <sch_bus_entry.h> #include <sch_bus_entry.h>
#include <sch_edit_frame.h> //COMPONENT_ORIENTATION_T #include <sch_edit_frame.h> //COMPONENT_ORIENTATION_T
#include <sch_io_mgr.h> #include <sch_io_mgr.h>
@ -87,14 +88,14 @@ void CADSTAR_SCH_ARCHIVE_LOADER::Load( ::SCHEMATIC* aSchematic, ::SCH_SHEET* aRo
loadFigures(); loadFigures();
loadTexts(); loadTexts();
loadDocumentationSymbols(); loadDocumentationSymbols();
if( Schematic.VariantHierarchy.Variants.size() > 0 ) if( Schematic.VariantHierarchy.Variants.size() > 0 )
{ {
wxLogWarning( wxLogWarning(
_( "The CADSTAR design contains variants which has no KiCad equivalent. All " _( "The CADSTAR design contains variants which has no KiCad equivalent. All "
"components have been loaded on top of each other. " ) ); "components have been loaded on top of each other. " ) );
} }
if( Schematic.Groups.size() > 0 ) if( Schematic.Groups.size() > 0 )
{ {
wxLogWarning( wxLogWarning(
@ -1050,11 +1051,11 @@ CADSTAR_SCH_ARCHIVE_LOADER::POINT CADSTAR_SCH_ARCHIVE_LOADER::getLocationOfNetEl
const NET_SCH& aNet, const NETELEMENT_ID& aNetElementID ) const NET_SCH& aNet, const NETELEMENT_ID& aNetElementID )
{ {
// clang-format off // clang-format off
auto logUnknownNetElementError = auto logUnknownNetElementError =
[&]() [&]()
{ {
wxLogError( wxString::Format( _( wxLogError( wxString::Format( _(
"Net %s references unknown net element %s. The net was " "Net %s references unknown net element %s. The net was "
"not properly loaded and may require manual fixing." ), "not properly loaded and may require manual fixing." ),
getNetName( aNet ), aNetElementID ) ); getNetName( aNet ), aNetElementID ) );

View File

@ -58,6 +58,7 @@
#include <sch_plugins/kicad/sch_sexpr_parser.h> #include <sch_plugins/kicad/sch_sexpr_parser.h>
#include <symbol_lib_table.h> // for PropPowerSymsOnly definintion. #include <symbol_lib_table.h> // for PropPowerSymsOnly definintion.
#include <ee_selection.h> #include <ee_selection.h>
#include <kicad_string.h>
using namespace TSCHEMATIC_T; using namespace TSCHEMATIC_T;

View File

@ -32,6 +32,7 @@
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <sch_sheet_path.h> #include <sch_sheet_path.h>
#include <schematic.h> #include <schematic.h>
#include <kicad_string.h>
#include <kiface_i.h> #include <kiface_i.h>
#include <wildcards_and_files_ext.h> #include <wildcards_and_files_ext.h>

View File

@ -34,6 +34,7 @@
#include <confirm.h> #include <confirm.h>
#include <eda_item.h> #include <eda_item.h>
#include <reporter.h> #include <reporter.h>
#include <kicad_string.h>
#include <sch_item.h> #include <sch_item.h>
#include <sch_component.h> #include <sch_component.h>
#include <sch_sheet.h> #include <sch_sheet.h>

View File

@ -25,6 +25,7 @@
#include <gerber_file_image_list.h> #include <gerber_file_image_list.h>
#include <gerbview_painter.h> #include <gerbview_painter.h>
#include <gerbview_frame.h> #include <gerbview_frame.h>
#include <kicad_string.h>
#include <excellon_image.h> #include <excellon_image.h>
#include <menus_helpers.h> #include <menus_helpers.h>
#include <tool/tool_manager.h> #include <tool/tool_manager.h>

View File

@ -26,6 +26,7 @@ using namespace std::placeholders;
#include <bitmaps.h> #include <bitmaps.h>
#include <gerber_collectors.h> #include <gerber_collectors.h>
#include <class_draw_panel_gal.h> #include <class_draw_panel_gal.h>
#include <kicad_string.h>
#include <view/view.h> #include <view/view.h>
#include <view/view_controls.h> #include <view/view_controls.h>
#include <view/view_group.h> #include <view/view_group.h>

View File

@ -27,7 +27,6 @@
#include <common.h> // wxStringSplit #include <common.h> // wxStringSplit
#include <eda_rect.h> #include <eda_rect.h>
#include "kicad_string.h"
#include "painter.h" #include "painter.h"
class SHAPE_COMPOUND; class SHAPE_COMPOUND;