Browse Source
LEGACY_PLUGIN is now in full use:
LEGACY_PLUGIN is now in full use:
*) for footprint access into *.mod files and *) BOARD save/load The item_io.cpp and ioascii.cpp have been set off to the side for reference as *.notused, for awhile. The CMake options USE_NEW_PCBNEW_LOAD and USE_NEW_PCBNEW_SAVE are gone, this is now the mandatory usage of the LEGACY_PLUGIN. This should reduce code maintenance for awhile until the s-expression plugin comes into play. But at least for legacy format, there is not two code bodies to maintain any more. A new LEGACY_PLUGIN footprint library caching scheme is in place which needs some testing. It should not be any faster, but might give better results in a networked environment if there is *.mod files on the server.pull/1/head
59 changed files with 9566 additions and 9038 deletions
-
2CMakeLists.txt
-
2CMakeModules/config.h.cmake
-
14common/CMakeLists.txt
-
9common/base_screen.cpp
-
2common/drawframe.cpp
-
91common/footprint_info.cpp
-
125cvpcb/loadcmp.cpp
-
1eeschema/dialogs/dialog_edit_component_in_lib.cpp
-
21eeschema/dialogs/dialog_edit_component_in_lib_base.cpp
-
6620eeschema/dialogs/dialog_edit_component_in_lib_base.fbp
-
7eeschema/dialogs/dialog_edit_component_in_lib_base.h
-
5400eeschema/dialogs/dialog_edit_component_in_schematic_fbp.fbp
-
3206eeschema/dialogs/dialog_lib_new_component.fbp
-
473eeschema/dialogs/dialog_lib_new_component_base.cpp
-
148eeschema/dialogs/dialog_lib_new_component_base.h
-
2eeschema/libeditframe.cpp
-
112gerbview/export_to_pcbnew.cpp
-
7include/class_base_screen.h
-
30include/class_board_item.h
-
68include/dialog_helpers.h
-
1include/footprint_info.h
-
11include/pcbstruct.h
-
44include/wxBasePcbFrame.h
-
3pcbnew/CMakeLists.txt
-
4pcbnew/class_board.h
-
6pcbnew/class_board_connected_item.h
-
4pcbnew/class_dimension.h
-
4pcbnew/class_drawsegment.h
-
4pcbnew/class_edge_mod.h
-
0pcbnew/class_footprint_library.cpp.notused
-
11pcbnew/class_footprint_library.h.notused
-
7pcbnew/class_marker_pcb.h
-
4pcbnew/class_mire.h
-
1pcbnew/class_module.cpp
-
37pcbnew/class_module.h
-
16pcbnew/class_netclass.h
-
12pcbnew/class_netinfo.h
-
29pcbnew/class_pad.cpp
-
6pcbnew/class_pad.h
-
5pcbnew/class_pcb_text.h
-
10pcbnew/class_text_mod.h
-
2pcbnew/class_track.h
-
10pcbnew/class_zone.h
-
22pcbnew/classpcb.cpp
-
4pcbnew/dialogs/dialog_edit_module_for_BoardEditor.cpp
-
5pcbnew/dialogs/dialog_edit_module_for_Modedit.cpp
-
93pcbnew/files.cpp
-
158pcbnew/gen_modules_placefile.cpp
-
75pcbnew/io_mgr.cpp
-
140pcbnew/io_mgr.h
-
0pcbnew/ioascii.cpp.notused
-
0pcbnew/item_io.cpp.notused
-
713pcbnew/legacy_plugin.cpp
-
66pcbnew/legacy_plugin.h
-
566pcbnew/librairi.cpp
-
188pcbnew/loadcmp.cpp
-
1pcbnew/modview.cpp
-
1pcbnew/modview_frame.h
-
1pcbnew/specctra_export.cpp
6620
eeschema/dialogs/dialog_edit_component_in_lib_base.fbp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
5400
eeschema/dialogs/dialog_edit_component_in_schematic_fbp.fbp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
3206
eeschema/dialogs/dialog_lib_new_component.fbp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,233 +1,240 @@ |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_lib_new_component_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* mainSizer; |
|||
mainSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
wxBoxSizer* bSizer5; |
|||
bSizer5 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_staticText6 = new wxStaticText( this, wxID_ANY, _("General Settings"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText6->Wrap( -1 ); |
|||
m_staticText6->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) ); |
|||
|
|||
bSizer5->Add( m_staticText6, 0, wxALIGN_LEFT, 3 ); |
|||
|
|||
wxBoxSizer* bSizer2; |
|||
bSizer2 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer2->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Component &name:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText2->Wrap( -1 ); |
|||
m_staticText2->SetToolTip( _("This is the component name in library,\nand also the default component value when loaded in the schematic.") ); |
|||
|
|||
bSizer2->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer2->Add( 0, 0, 1, wxEXPAND, 3 ); |
|||
|
|||
m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 100,-1 ), 0 ); |
|||
bSizer2->Add( m_textName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer2->Add( 30, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
bSizer5->Add( bSizer2, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer3; |
|||
bSizer3 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer3->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText3 = new wxStaticText( this, wxID_ANY, _("Default &reference designator:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText3->Wrap( -1 ); |
|||
m_staticText3->SetToolTip( _("This is the reference used in schematic for annotation.\nDo not use digits in reference.") ); |
|||
|
|||
bSizer3->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer3->Add( 0, 0, 1, wxEXPAND, 5 ); |
|||
|
|||
m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxSize( 100,-1 ), 0 ); |
|||
bSizer3->Add( m_textReference, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer3->Add( 30, 0, 0, wxEXPAND, 5 ); |
|||
|
|||
bSizer5->Add( bSizer3, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer4; |
|||
bSizer4 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer4->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText4 = new wxStaticText( this, wxID_ANY, _("Number of &parts per package:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText4->Wrap( -1 ); |
|||
m_staticText4->SetToolTip( _("This is the number of parts in this component package.\nA 74LS00 gate has 4 parts per packages.") ); |
|||
|
|||
bSizer4->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer4->Add( 0, 0, 1, wxEXPAND, 3 ); |
|||
|
|||
m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxSize( 100,-1 ), wxSP_ARROW_KEYS, 1, 26, 0 ); |
|||
bSizer4->Add( m_spinPartCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer4->Add( 30, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
bSizer5->Add( bSizer4, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer7; |
|||
bSizer7 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer7->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create component with &alternate body style (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
|
|||
m_checkHasConversion->SetToolTip( _("Check this option for components that have a De Morgan representation.\nThis is usual for gates.") ); |
|||
|
|||
bSizer7->Add( m_checkHasConversion, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
bSizer5->Add( bSizer7, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer8; |
|||
bSizer8 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer8->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create component as power &symbol"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
|
|||
m_checkIsPowerSymbol->SetToolTip( _("Check this option for power symbols.\nPower symbols have specific properties for Eeschema:\n- Value cannot be edited (to avoid mistakes) because this is the pin name that is important for a power symbol\n- Reference is updated automatically when a netlist is created (no need to run Annotate)") ); |
|||
|
|||
bSizer8->Add( m_checkIsPowerSymbol, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
bSizer5->Add( bSizer8, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer9; |
|||
bSizer9 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer9->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Parts in package locked (cannot be swapped)"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
|
|||
m_checkLockItems->SetToolTip( _("Check this option if Eeschema cannot change parts selections inside a given package\nThis happens when parts are different in this package.\nWhen this option is not checked, Eeschema automatically choose the parts in packages to minimize packages count") ); |
|||
|
|||
bSizer9->Add( m_checkLockItems, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
bSizer5->Add( bSizer9, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
|
|||
bSizer5->Add( 0, 0, 0, wxALL|wxEXPAND, 10 ); |
|||
|
|||
m_staticText7 = new wxStaticText( this, wxID_ANY, _("Global Pin Settings"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText7->Wrap( -1 ); |
|||
m_staticText7->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) ); |
|||
|
|||
bSizer5->Add( m_staticText7, 0, wxALIGN_LEFT|wxBOTTOM, 3 ); |
|||
|
|||
wxBoxSizer* bSizer6; |
|||
bSizer6 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer6->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText41 = new wxStaticText( this, wxID_ANY, _("Pin text position &offset:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText41->Wrap( -1 ); |
|||
m_staticText41->SetToolTip( _("Margin (in 0.001 inches) between a pin name position and the component body.\nA value from 10 to 40 is usually good.") ); |
|||
|
|||
bSizer6->Add( m_staticText41, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer6->Add( 0, 0, 1, wxEXPAND, 3 ); |
|||
|
|||
m_spinPinTextPosition = new wxSpinCtrl( this, wxID_ANY, wxT("40"), wxDefaultPosition, wxSize( 100,-1 ), wxSP_ARROW_KEYS, 1, 100, 40 ); |
|||
bSizer6->Add( m_spinPinTextPosition, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText5 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxSize( 30,-1 ), 0 ); |
|||
m_staticText5->Wrap( -1 ); |
|||
bSizer6->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL, 3 ); |
|||
|
|||
bSizer5->Add( bSizer6, 1, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer10; |
|||
bSizer10 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer10->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkShowPinNumber = new wxCheckBox( this, wxID_ANY, _("Show pin n&umber text"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkShowPinNumber->SetValue(true); |
|||
|
|||
bSizer10->Add( m_checkShowPinNumber, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
bSizer5->Add( bSizer10, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer12; |
|||
bSizer12 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer12->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name te&xt"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkShowPinName->SetValue(true); |
|||
|
|||
bSizer12->Add( m_checkShowPinName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
bSizer5->Add( bSizer12, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer121; |
|||
bSizer121 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer121->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name &inside"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkShowPinNameInside->SetValue(true); |
|||
|
|||
bSizer121->Add( m_checkShowPinNameInside, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
bSizer5->Add( bSizer121, 1, wxEXPAND, 5 ); |
|||
|
|||
|
|||
bSizer5->Add( 0, 5, 0, wxALL|wxEXPAND, 10 ); |
|||
|
|||
m_sdbSizer = new wxStdDialogButtonSizer(); |
|||
m_sdbSizerOK = new wxButton( this, wxID_OK ); |
|||
m_sdbSizer->AddButton( m_sdbSizerOK ); |
|||
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL ); |
|||
m_sdbSizer->AddButton( m_sdbSizerCancel ); |
|||
m_sdbSizer->Realize(); |
|||
bSizer5->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
mainSizer->Add( bSizer5, 1, wxALL|wxEXPAND, 12 ); |
|||
|
|||
this->SetSizer( mainSizer ); |
|||
this->Layout(); |
|||
mainSizer->Fit( this ); |
|||
|
|||
this->Centre( wxBOTH ); |
|||
} |
|||
|
|||
DIALOG_LIB_NEW_COMPONENT_BASE::~DIALOG_LIB_NEW_COMPONENT_BASE() |
|||
{ |
|||
} |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Apr 11 2012)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_lib_new_component_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* mainSizer; |
|||
mainSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
wxBoxSizer* bSizer5; |
|||
bSizer5 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_staticText6 = new wxStaticText( this, wxID_ANY, _("General Settings"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText6->Wrap( -1 ); |
|||
m_staticText6->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) ); |
|||
|
|||
bSizer5->Add( m_staticText6, 0, wxALIGN_LEFT, 3 ); |
|||
|
|||
wxBoxSizer* bSizer2; |
|||
bSizer2 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer2->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Component &name:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText2->Wrap( -1 ); |
|||
m_staticText2->SetToolTip( _("This is the component name in library,\nand also the default component value when loaded in the schematic.") ); |
|||
|
|||
bSizer2->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer2->Add( 0, 0, 1, wxEXPAND, 3 ); |
|||
|
|||
m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 100,-1 ), 0 ); |
|||
bSizer2->Add( m_textName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer2->Add( 30, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer2, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer3; |
|||
bSizer3 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer3->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText3 = new wxStaticText( this, wxID_ANY, _("Default &reference designator:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText3->Wrap( -1 ); |
|||
m_staticText3->SetToolTip( _("This is the reference used in schematic for annotation.\nDo not use digits in reference.") ); |
|||
|
|||
bSizer3->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer3->Add( 0, 0, 1, wxEXPAND, 5 ); |
|||
|
|||
m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxSize( 100,-1 ), 0 ); |
|||
bSizer3->Add( m_textReference, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer3->Add( 30, 0, 0, wxEXPAND, 5 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer3, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer4; |
|||
bSizer4 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer4->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText4 = new wxStaticText( this, wxID_ANY, _("Number of &parts per package:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText4->Wrap( -1 ); |
|||
m_staticText4->SetToolTip( _("This is the number of parts in this component package.\nA 74LS00 gate has 4 parts per packages.") ); |
|||
|
|||
bSizer4->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer4->Add( 0, 0, 1, wxEXPAND, 3 ); |
|||
|
|||
m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxSize( 100,-1 ), wxSP_ARROW_KEYS, 1, 26, 0 ); |
|||
bSizer4->Add( m_spinPartCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer4->Add( 30, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer4, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer7; |
|||
bSizer7 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer7->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create component with &alternate body style (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkHasConversion->SetToolTip( _("Check this option for components that have a De Morgan representation.\nThis is usual for gates.") ); |
|||
|
|||
bSizer7->Add( m_checkHasConversion, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer7, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer8; |
|||
bSizer8 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer8->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create component as power &symbol"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkIsPowerSymbol->SetToolTip( _("Check this option for power symbols.\nPower symbols have specific properties for Eeschema:\n- Value cannot be edited (to avoid mistakes) because this is the pin name that is important for a power symbol\n- Reference is updated automatically when a netlist is created (no need to run Annotate)") ); |
|||
|
|||
bSizer8->Add( m_checkIsPowerSymbol, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer8, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer9; |
|||
bSizer9 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer9->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Parts in package locked (cannot be swapped)"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkLockItems->SetToolTip( _("Check this option if Eeschema cannot change parts selections inside a given package\nThis happens when parts are different in this package.\nWhen this option is not checked, Eeschema automatically choose the parts in packages to minimize packages count") ); |
|||
|
|||
bSizer9->Add( m_checkLockItems, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer9, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
|
|||
bSizer5->Add( 0, 0, 0, wxALL|wxEXPAND, 10 ); |
|||
|
|||
m_staticText7 = new wxStaticText( this, wxID_ANY, _("Global Pin Settings"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText7->Wrap( -1 ); |
|||
m_staticText7->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) ); |
|||
|
|||
bSizer5->Add( m_staticText7, 0, wxALIGN_LEFT|wxBOTTOM, 3 ); |
|||
|
|||
wxBoxSizer* bSizer6; |
|||
bSizer6 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer6->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_staticText41 = new wxStaticText( this, wxID_ANY, _("Pin text position &offset:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText41->Wrap( -1 ); |
|||
m_staticText41->SetToolTip( _("Margin (in 0.001 inches) between a pin name position and the component body.\nA value from 10 to 40 is usually good.") ); |
|||
|
|||
bSizer6->Add( m_staticText41, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer6->Add( 0, 0, 1, wxEXPAND, 3 ); |
|||
|
|||
m_spinPinTextPosition = new wxSpinCtrl( this, wxID_ANY, wxT("40"), wxDefaultPosition, wxSize( 100,-1 ), wxSP_ARROW_KEYS, 1, 100, 40 ); |
|||
bSizer6->Add( m_spinPinTextPosition, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText5 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxSize( 30,-1 ), 0 ); |
|||
m_staticText5->Wrap( -1 ); |
|||
bSizer6->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer6, 1, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer10; |
|||
bSizer10 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer10->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkShowPinNumber = new wxCheckBox( this, wxID_ANY, _("Show pin n&umber text"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkShowPinNumber->SetValue(true); |
|||
bSizer10->Add( m_checkShowPinNumber, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer10, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer12; |
|||
bSizer12 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer12->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name te&xt"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkShowPinName->SetValue(true); |
|||
bSizer12->Add( m_checkShowPinName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer12, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer121; |
|||
bSizer121 = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
|
|||
bSizer121->Add( 12, 0, 0, wxEXPAND, 3 ); |
|||
|
|||
m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name &inside"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkShowPinNameInside->SetValue(true); |
|||
bSizer121->Add( m_checkShowPinNameInside, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer5->Add( bSizer121, 1, wxEXPAND, 5 ); |
|||
|
|||
|
|||
bSizer5->Add( 0, 5, 0, wxALL|wxEXPAND, 10 ); |
|||
|
|||
m_sdbSizer = new wxStdDialogButtonSizer(); |
|||
m_sdbSizerOK = new wxButton( this, wxID_OK ); |
|||
m_sdbSizer->AddButton( m_sdbSizerOK ); |
|||
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL ); |
|||
m_sdbSizer->AddButton( m_sdbSizerCancel ); |
|||
m_sdbSizer->Realize(); |
|||
|
|||
bSizer5->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
|
|||
mainSizer->Add( bSizer5, 1, wxALL|wxEXPAND, 12 ); |
|||
|
|||
|
|||
this->SetSizer( mainSizer ); |
|||
this->Layout(); |
|||
mainSizer->Fit( this ); |
|||
|
|||
this->Centre( wxBOTH ); |
|||
} |
|||
|
|||
DIALOG_LIB_NEW_COMPONENT_BASE::~DIALOG_LIB_NEW_COMPONENT_BASE() |
|||
{ |
|||
} |
|||
@ -1,82 +1,66 @@ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __dialog_lib_new_component_base__ |
|||
#define __dialog_lib_new_component_base__ |
|||
|
|||
#include <wx/intl.h> |
|||
|
|||
#include <wx/string.h> |
|||
#include <wx/stattext.h> |
|||
#include <wx/gdicmn.h> |
|||
#include <wx/font.h> |
|||
#include <wx/colour.h> |
|||
#include <wx/settings.h> |
|||
#include <wx/textctrl.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/spinctrl.h> |
|||
#include <wx/checkbox.h> |
|||
#include <wx/button.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_LIB_NEW_COMPONENT_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_LIB_NEW_COMPONENT_BASE : public wxDialog |
|||
{ |
|||
private: |
|||
|
|||
protected: |
|||
wxStaticText* m_staticText6; |
|||
|
|||
wxStaticText* m_staticText2; |
|||
|
|||
wxTextCtrl* m_textName; |
|||
|
|||
|
|||
wxStaticText* m_staticText3; |
|||
|
|||
wxTextCtrl* m_textReference; |
|||
|
|||
|
|||
wxStaticText* m_staticText4; |
|||
|
|||
wxSpinCtrl* m_spinPartCount; |
|||
|
|||
|
|||
wxCheckBox* m_checkHasConversion; |
|||
|
|||
wxCheckBox* m_checkIsPowerSymbol; |
|||
|
|||
wxCheckBox* m_checkLockItems; |
|||
|
|||
wxStaticText* m_staticText7; |
|||
|
|||
wxStaticText* m_staticText41; |
|||
|
|||
wxSpinCtrl* m_spinPinTextPosition; |
|||
wxStaticText* m_staticText5; |
|||
|
|||
wxCheckBox* m_checkShowPinNumber; |
|||
|
|||
wxCheckBox* m_checkShowPinName; |
|||
|
|||
wxCheckBox* m_checkShowPinNameInside; |
|||
|
|||
wxStdDialogButtonSizer* m_sdbSizer; |
|||
wxButton* m_sdbSizerOK; |
|||
wxButton* m_sdbSizerCancel; |
|||
|
|||
public: |
|||
DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_LIB_NEW_COMPONENT_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__dialog_lib_new_component_base__ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Apr 11 2012) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __DIALOG_LIB_NEW_COMPONENT_BASE_H__ |
|||
#define __DIALOG_LIB_NEW_COMPONENT_BASE_H__ |
|||
|
|||
#include <wx/artprov.h> |
|||
#include <wx/xrc/xmlres.h> |
|||
#include <wx/intl.h> |
|||
#include "dialog_shim.h" |
|||
#include <wx/string.h> |
|||
#include <wx/stattext.h> |
|||
#include <wx/gdicmn.h> |
|||
#include <wx/font.h> |
|||
#include <wx/colour.h> |
|||
#include <wx/settings.h> |
|||
#include <wx/textctrl.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/spinctrl.h> |
|||
#include <wx/checkbox.h> |
|||
#include <wx/button.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_LIB_NEW_COMPONENT_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_LIB_NEW_COMPONENT_BASE : public DIALOG_SHIM |
|||
{ |
|||
private: |
|||
|
|||
protected: |
|||
wxStaticText* m_staticText6; |
|||
wxStaticText* m_staticText2; |
|||
wxTextCtrl* m_textName; |
|||
wxStaticText* m_staticText3; |
|||
wxTextCtrl* m_textReference; |
|||
wxStaticText* m_staticText4; |
|||
wxSpinCtrl* m_spinPartCount; |
|||
wxCheckBox* m_checkHasConversion; |
|||
wxCheckBox* m_checkIsPowerSymbol; |
|||
wxCheckBox* m_checkLockItems; |
|||
wxStaticText* m_staticText7; |
|||
wxStaticText* m_staticText41; |
|||
wxSpinCtrl* m_spinPinTextPosition; |
|||
wxStaticText* m_staticText5; |
|||
wxCheckBox* m_checkShowPinNumber; |
|||
wxCheckBox* m_checkShowPinName; |
|||
wxCheckBox* m_checkShowPinNameInside; |
|||
wxStdDialogButtonSizer* m_sdbSizer; |
|||
wxButton* m_sdbSizerOK; |
|||
wxButton* m_sdbSizerCancel; |
|||
|
|||
public: |
|||
|
|||
DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_LIB_NEW_COMPONENT_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__DIALOG_LIB_NEW_COMPONENT_BASE_H__ |
|||
713
pcbnew/legacy_plugin.cpp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue