UI string normalization.
Replace all instances of "component" and "part" with "symbol" when referring to schematic and library symbols. Replace all instances of "component" with "footprint" when referring to board and library footprints. Minor dialog layout fixes to some of the dialogs impacted by the UI string changes.
This commit is contained in:
parent
fe6ade185a
commit
f7ab50f791
|
@ -283,7 +283,7 @@ wxString Shapes3DFileWildcard()
|
||||||
|
|
||||||
wxString IDF3DFileWildcard()
|
wxString IDF3DFileWildcard()
|
||||||
{
|
{
|
||||||
return _( "IDFv3 component files (*.idf)|*." ) + FormatWildcardExt( "idf" );
|
return _( "IDFv3 footprint files (*.idf)|*." ) + FormatWildcardExt( "idf" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
|
||||||
// Save the footprints back into eeschema
|
// Save the footprints back into eeschema
|
||||||
AddMenuItem( filesMenu, wxID_SAVE,
|
AddMenuItem( filesMenu, wxID_SAVE,
|
||||||
_( "&Save Footprint Associations\tCtrl+S" ),
|
_( "&Save Footprint Associations\tCtrl+S" ),
|
||||||
_( "Save footprint association in schematic component footprint fields" ),
|
_( "Save footprint association in schematic symbol footprint fields" ),
|
||||||
KiBitmap( save_xpm ) );
|
KiBitmap( save_xpm ) );
|
||||||
|
|
||||||
// Separator
|
// Separator
|
||||||
|
@ -93,7 +93,7 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
|
||||||
_( "Footprint &Association Files" ),
|
_( "Footprint &Association Files" ),
|
||||||
_( "Configure footprint association file (.equ) list."
|
_( "Configure footprint association file (.equ) list."
|
||||||
"These files are used to automatically assign "
|
"These files are used to automatically assign "
|
||||||
"the footprint name (FPID) from the component value" ),
|
"the footprint name from the symbol value" ),
|
||||||
KiBitmap( library_table_xpm ) );
|
KiBitmap( library_table_xpm ) );
|
||||||
preferencesMenu->AppendSeparator();
|
preferencesMenu->AppendSeparator();
|
||||||
|
|
||||||
|
|
|
@ -62,11 +62,11 @@ void CVPCB_MAINFRAME::ReCreateHToolbar()
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
m_mainToolBar->AddTool( ID_CVPCB_GOTO_PREVIOUSNA, wxEmptyString,
|
m_mainToolBar->AddTool( ID_CVPCB_GOTO_PREVIOUSNA, wxEmptyString,
|
||||||
KiBitmap( left_xpm ),
|
KiBitmap( left_xpm ),
|
||||||
_( "Select previous unlinked component" ) );
|
_( "Select previous unlinked symbol" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_CVPCB_GOTO_FIRSTNA, wxEmptyString,
|
m_mainToolBar->AddTool( ID_CVPCB_GOTO_FIRSTNA, wxEmptyString,
|
||||||
KiBitmap( right_xpm ),
|
KiBitmap( right_xpm ),
|
||||||
_( "Select next unlinked component" ) );
|
_( "Select next unlinked symbol" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
m_mainToolBar->AddTool( ID_CVPCB_AUTO_ASSOCIE, wxEmptyString,
|
m_mainToolBar->AddTool( ID_CVPCB_AUTO_ASSOCIE, wxEmptyString,
|
||||||
|
@ -82,7 +82,7 @@ void CVPCB_MAINFRAME::ReCreateHToolbar()
|
||||||
KiBitmap( module_filtered_list_xpm ),
|
KiBitmap( module_filtered_list_xpm ),
|
||||||
wxNullBitmap,
|
wxNullBitmap,
|
||||||
true, NULL,
|
true, NULL,
|
||||||
_( "Filter footprint list by schematic components keywords" ),
|
_( "Filter footprint list by schematic symbol keywords" ),
|
||||||
wxEmptyString );
|
wxEmptyString );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_CVPCB_FOOTPRINT_DISPLAY_PIN_FILTERED_LIST,
|
m_mainToolBar->AddTool( ID_CVPCB_FOOTPRINT_DISPLAY_PIN_FILTERED_LIST,
|
||||||
|
|
|
@ -191,17 +191,17 @@ void DIALOG_ANNOTATE::OnApplyClick( wxCommandEvent& event )
|
||||||
if( GetResetItems() )
|
if( GetResetItems() )
|
||||||
{
|
{
|
||||||
if( GetLevel() )
|
if( GetLevel() )
|
||||||
message += _( "Clear and annotate all of the components on the entire schematic?" );
|
message += _( "Clear and annotate all of the symbols on the entire schematic?" );
|
||||||
else
|
else
|
||||||
message += _( "Clear and annotate all of the components on the current sheet?" );
|
message += _( "Clear and annotate all of the symbols on the current sheet?" );
|
||||||
promptUser = true;
|
promptUser = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( GetLevel() )
|
if( GetLevel() )
|
||||||
message += _( "Annotate only the unannotated components on the entire schematic?" );
|
message += _( "Annotate only the unannotated symbols on the entire schematic?" );
|
||||||
else
|
else
|
||||||
message += _( "Annotate only the unannotated components on the current sheet?" );
|
message += _( "Annotate only the unannotated symbols on the current sheet?" );
|
||||||
}
|
}
|
||||||
|
|
||||||
message += _( "\n\nThis operation will change the current annotation and cannot be undone." );
|
message += _( "\n\nThis operation will change the current annotation and cannot be undone." );
|
||||||
|
|
|
@ -259,12 +259,12 @@ void DIALOG_BOM_EDITOR::UpdateTitle()
|
||||||
|
|
||||||
if( m_bom->GetColumnGrouping() )
|
if( m_bom->GetColumnGrouping() )
|
||||||
{
|
{
|
||||||
title.Printf ( _( "Component table - %u components in %u groups" ),
|
title.Printf ( _( "Symbo Table - %u symbols in %u groups" ),
|
||||||
m_bom->ComponentCount(),
|
m_bom->ComponentCount(),
|
||||||
(unsigned int) m_bom->Groups.size() );
|
(unsigned int) m_bom->Groups.size() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
title.Printf ( _( "Component table - %u components" ),
|
title.Printf ( _( "Symbol Table - %u components" ),
|
||||||
m_bom->ComponentCount() );
|
m_bom->ComponentCount() );
|
||||||
|
|
||||||
unsigned int count = m_bom->CountChangedComponents();
|
unsigned int count = m_bom->CountChangedComponents();
|
||||||
|
@ -426,7 +426,7 @@ void DIALOG_BOM_EDITOR::OnRevertFieldChanges( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
if( m_bom->HaveFieldsChanged() )
|
if( m_bom->HaveFieldsChanged() )
|
||||||
{
|
{
|
||||||
if( IsOK( this, _( "Revert all component table changes?" ) ) )
|
if( IsOK( this, _( "Revert all symbol table changes?" ) ) )
|
||||||
{
|
{
|
||||||
m_bom->RevertFieldChanges();
|
m_bom->RevertFieldChanges();
|
||||||
Update();
|
Update();
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Feb 19 2017)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_bom_editor_base.h"
|
#include "dialog_bom_editor_base.h"
|
||||||
|
@ -34,13 +34,13 @@ DIALOG_BOM_EDITOR_BASE::DIALOG_BOM_EDITOR_BASE( wxWindow* parent, wxWindowID id,
|
||||||
wxStaticBoxSizer* sbSizer1;
|
wxStaticBoxSizer* sbSizer1;
|
||||||
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_leftPanel, wxID_ANY, _("Options") ), wxVERTICAL );
|
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_leftPanel, wxID_ANY, _("Options") ), wxVERTICAL );
|
||||||
|
|
||||||
m_groupComponentsBox = new wxCheckBox( sbSizer1->GetStaticBox(), OPT_GROUP_COMPONENTS, _("Group components"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_groupComponentsBox = new wxCheckBox( sbSizer1->GetStaticBox(), OPT_GROUP_COMPONENTS, _("Group symbols"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_groupComponentsBox->SetValue(true);
|
m_groupComponentsBox->SetValue(true);
|
||||||
m_groupComponentsBox->SetToolTip( _("Group components together based on common properties") );
|
m_groupComponentsBox->SetToolTip( _("Group components together based on common properties") );
|
||||||
|
|
||||||
sbSizer1->Add( m_groupComponentsBox, 0, wxALL|wxEXPAND, 5 );
|
sbSizer1->Add( m_groupComponentsBox, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_regroupComponentsButton = new wxButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Regroup components"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_regroupComponentsButton = new wxButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Regroup symbols"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizer1->Add( m_regroupComponentsButton, 0, wxALL|wxEXPAND, 5 );
|
sbSizer1->Add( m_regroupComponentsButton, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -399,7 +399,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">OPT_GROUP_COMPONENTS</property>
|
<property name="id">OPT_GROUP_COMPONENTS</property>
|
||||||
<property name="label">Group components</property>
|
<property name="label">Group symbols</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -487,7 +487,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Regroup components</property>
|
<property name="label">Regroup symbols</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Feb 19 2017)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_BOM_EDITOR_BASE_H__
|
#ifndef __DIALOG_BOM_EDITOR_BASE_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/checkbox.h>
|
||||||
|
|
|
@ -206,7 +206,7 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnOkClick( wxCommandEvent& event )
|
||||||
alias = component->GetAlias( m_Parent->GetAliasName() );
|
alias = component->GetAlias( m_Parent->GetAliasName() );
|
||||||
|
|
||||||
wxCHECK_RET( alias != NULL,
|
wxCHECK_RET( alias != NULL,
|
||||||
wxT( "Alias \"" ) + m_Parent->GetAliasName() + wxT( "\" of component \"" ) +
|
wxT( "Alias \"" ) + m_Parent->GetAliasName() + wxT( "\" of symbol \"" ) +
|
||||||
component->GetName() + wxT( "\" does not exist." ) );
|
component->GetName() + wxT( "\" does not exist." ) );
|
||||||
|
|
||||||
alias->SetDescription( m_DocCtrl->GetValue() );
|
alias->SetDescription( m_DocCtrl->GetValue() );
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_edit_component_in_lib_base.h"
|
#include "dialog_edit_component_in_lib_base.h"
|
||||||
|
@ -28,7 +28,7 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE::DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wx
|
||||||
m_OptionsBoxSizer = new wxStaticBoxSizer( new wxStaticBox( m_PanelBasic, wxID_ANY, _("General") ), wxVERTICAL );
|
m_OptionsBoxSizer = new wxStaticBoxSizer( new wxStaticBox( m_PanelBasic, wxID_ANY, _("General") ), wxVERTICAL );
|
||||||
|
|
||||||
m_AsConvertButt = new wxCheckBox( m_OptionsBoxSizer->GetStaticBox(), wxID_ANY, _("Has alternate symbol (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_AsConvertButt = new wxCheckBox( m_OptionsBoxSizer->GetStaticBox(), wxID_ANY, _("Has alternate symbol (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_AsConvertButt->SetToolTip( _("Check this option if the component has an alternate body style (De Morgan)") );
|
m_AsConvertButt->SetToolTip( _("Check this option if the symbol has an alternate body style (De Morgan)") );
|
||||||
|
|
||||||
m_OptionsBoxSizer->Add( m_AsConvertButt, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
m_OptionsBoxSizer->Add( m_AsConvertButt, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE::DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wx
|
||||||
|
|
||||||
m_staticTextNbUnits = new wxStaticText( m_PanelBasic, wxID_ANY, _("Number of Units"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextNbUnits = new wxStaticText( m_PanelBasic, wxID_ANY, _("Number of Units"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextNbUnits->Wrap( -1 );
|
m_staticTextNbUnits->Wrap( -1 );
|
||||||
m_staticTextNbUnits->SetToolTip( _("Enter the number of units for a component that contains more than one unit") );
|
m_staticTextNbUnits->SetToolTip( _("Enter the number of units for a symbol that contains more than one unit") );
|
||||||
|
|
||||||
bSizernbunits->Add( m_staticTextNbUnits, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bSizernbunits->Add( m_staticTextNbUnits, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
@ -96,12 +96,12 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE::DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wx
|
||||||
bSizerBasicPanel->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
|
bSizerBasicPanel->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
|
||||||
|
|
||||||
m_OptionPower = new wxCheckBox( m_PanelBasic, wxID_ANY, _("Define as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_OptionPower = new wxCheckBox( m_PanelBasic, wxID_ANY, _("Define as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_OptionPower->SetToolTip( _("Check this option when the component is a power symbol") );
|
m_OptionPower->SetToolTip( _("Check this option when the symbol is a power symbol") );
|
||||||
|
|
||||||
bSizerBasicPanel->Add( m_OptionPower, 0, wxALL, 5 );
|
bSizerBasicPanel->Add( m_OptionPower, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_OptionPartsLocked = new wxCheckBox( m_PanelBasic, wxID_ANY, _("All units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_OptionPartsLocked = new wxCheckBox( m_PanelBasic, wxID_ANY, _("All units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_OptionPartsLocked->SetToolTip( _("Check this option when creating multiple unit components and all units are not interchangeable") );
|
m_OptionPartsLocked->SetToolTip( _("Check this option when creating multiple unit symbols and all units are not interchangeable") );
|
||||||
|
|
||||||
bSizerBasicPanel->Add( m_OptionPartsLocked, 0, wxALL, 5 );
|
bSizerBasicPanel->Add( m_OptionPartsLocked, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
@ -121,27 +121,24 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE::DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wx
|
||||||
m_PanelDocBoxSizer->Add( m_staticTextDescription, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
m_PanelDocBoxSizer->Add( m_staticTextDescription, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_DocCtrl = new wxTextCtrl( m_PanelDoc, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_DocCtrl = new wxTextCtrl( m_PanelDoc, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_DocCtrl->SetMaxLength( 0 );
|
|
||||||
m_PanelDocBoxSizer->Add( m_DocCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
m_PanelDocBoxSizer->Add( m_DocCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_staticTextKeywords = new wxStaticText( m_PanelDoc, wxID_ANY, _("Keywords"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextKeywords = new wxStaticText( m_PanelDoc, wxID_ANY, _("Keywords"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextKeywords->Wrap( -1 );
|
m_staticTextKeywords->Wrap( -1 );
|
||||||
m_staticTextKeywords->SetToolTip( _("Enter key words that can be used to select this component.\nKey words cannot have spaces and are separated by a space.") );
|
m_staticTextKeywords->SetToolTip( _("Enter key words that can be used to select this symbol.\nKey words cannot have spaces and are separated by a space.") );
|
||||||
|
|
||||||
m_PanelDocBoxSizer->Add( m_staticTextKeywords, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
m_PanelDocBoxSizer->Add( m_staticTextKeywords, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_KeywordsCtrl = new wxTextCtrl( m_PanelDoc, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_KeywordsCtrl = new wxTextCtrl( m_PanelDoc, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_KeywordsCtrl->SetMaxLength( 0 );
|
|
||||||
m_PanelDocBoxSizer->Add( m_KeywordsCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
m_PanelDocBoxSizer->Add( m_KeywordsCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_staticTextDocFileName = new wxStaticText( m_PanelDoc, wxID_ANY, _("Documentation File Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextDocFileName = new wxStaticText( m_PanelDoc, wxID_ANY, _("Documentation File Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextDocFileName->Wrap( -1 );
|
m_staticTextDocFileName->Wrap( -1 );
|
||||||
m_staticTextDocFileName->SetToolTip( _("Enter the documentation file (a .pdf document) associated to the component.") );
|
m_staticTextDocFileName->SetToolTip( _("Enter the documentation file (a .pdf document) associated with the symbol.") );
|
||||||
|
|
||||||
m_PanelDocBoxSizer->Add( m_staticTextDocFileName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
m_PanelDocBoxSizer->Add( m_staticTextDocFileName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_DocfileCtrl = new wxTextCtrl( m_PanelDoc, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 400,-1 ), 0 );
|
m_DocfileCtrl = new wxTextCtrl( m_PanelDoc, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 400,-1 ), 0 );
|
||||||
m_DocfileCtrl->SetMaxLength( 0 );
|
|
||||||
m_PanelDocBoxSizer->Add( m_DocfileCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
m_PanelDocBoxSizer->Add( m_DocfileCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizerPaneldocbutts;
|
wxBoxSizer* bSizerPaneldocbutts;
|
||||||
|
@ -170,7 +167,7 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE::DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wx
|
||||||
|
|
||||||
m_staticTextAlias = new wxStaticText( m_PanelAlias, wxID_ANY, _("Alias List"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextAlias = new wxStaticText( m_PanelAlias, wxID_ANY, _("Alias List"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextAlias->Wrap( -1 );
|
m_staticTextAlias->Wrap( -1 );
|
||||||
m_staticTextAlias->SetToolTip( _("An alias is a component that uses the body of its root component.\nIt has its own documentation and keywords.\nA fast way to extend a library with similar components") );
|
m_staticTextAlias->SetToolTip( _("An alias is a symbol that uses the body of its root symbol.\nIt has its own documentation and keywords.\nA fast way to extend a library with similar symbols.") );
|
||||||
|
|
||||||
bLeftBoxSizerPanelAlias->Add( m_staticTextAlias, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftBoxSizerPanelAlias->Add( m_staticTextAlias, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
@ -209,7 +206,7 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE::DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wx
|
||||||
|
|
||||||
m_staticTextFootprints = new wxStaticText( m_PanelFootprintFilter, wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextFootprints = new wxStaticText( m_PanelFootprintFilter, wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextFootprints->Wrap( -1 );
|
m_staticTextFootprints->Wrap( -1 );
|
||||||
m_staticTextFootprints->SetToolTip( _("A list of footprints names that can be used for this component.\nFootprints names can used jockers.\n(like sm* to allow all footprints names starting by sm).") );
|
m_staticTextFootprints->SetToolTip( _("A list of footprints names that can be used for this symbol.\nFootprints names can used wildcards like sm* to allow all footprints names starting by sm.") );
|
||||||
|
|
||||||
bFpFilterLeftBoxSizer->Add( m_staticTextFootprints, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bFpFilterLeftBoxSizer->Add( m_staticTextFootprints, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<property name="size">-1,-1</property>
|
<property name="size">-1,-1</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Library Component Properties</property>
|
<property name="title">Library Symbol Properties</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
|
@ -277,6 +277,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">m_OptionsBoxSizer</property>
|
<property name="name">m_OptionsBoxSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="parent">1</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
|
@ -333,7 +334,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Check this option if the component has an alternate body style (De Morgan)</property>
|
<property name="tooltip">Check this option if the symbol has an alternate body style (De Morgan)</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -785,7 +786,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Enter the number of units for a component that contains more than one unit</property>
|
<property name="tooltip">Enter the number of units for a symbol that contains more than one unit</property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
@ -1224,7 +1225,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Check this option when the component is a power symbol</property>
|
<property name="tooltip">Check this option when the symbol is a power symbol</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -1312,7 +1313,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Check this option when creating multiple unit components and all units are not interchangeable</property>
|
<property name="tooltip">Check this option when creating multiple unit symbols and all units are not interchangeable</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -1659,7 +1660,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Enter key words that can be used to select this component.
Key words cannot have spaces and are separated by a space.</property>
|
<property name="tooltip">Enter key words that can be used to select this symbol.
Key words cannot have spaces and are separated by a space.</property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
@ -1833,7 +1834,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Enter the documentation file (a .pdf document) associated to the component.</property>
|
<property name="tooltip">Enter the documentation file (a .pdf document) associated with the symbol.</property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
@ -2289,7 +2290,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">An alias is a component that uses the body of its root component.
It has its own documentation and keywords.
A fast way to extend a library with similar components</property>
|
<property name="tooltip">An alias is a symbol that uses the body of its root symbol.
It has its own documentation and keywords.
A fast way to extend a library with similar symbols.</property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
@ -2832,7 +2833,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">A list of footprints names that can be used for this component.
Footprints names can used jockers.
(like sm* to allow all footprints names starting by sm).</property>
|
<property name="tooltip">A list of footprints names that can be used for this symbol.
Footprints names can used wildcards like sm* to allow all footprints names starting by sm.</property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
|
#ifndef __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/checkbox.h>
|
||||||
|
@ -112,7 +110,7 @@ class DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wxWindow* parent, wxWindowID id = ID_LIBEDIT_NOTEBOOK, const wxString& title = _("Library Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wxWindow* parent, wxWindowID id = ID_LIBEDIT_NOTEBOOK, const wxString& title = _("Library Symbol Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE();
|
~DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_edit_component_in_schematic_fbp.h"
|
#include "dialog_edit_component_in_schematic_fbp.h"
|
||||||
|
@ -49,7 +49,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
|
||||||
int orientationRadioBoxNChoices = sizeof( orientationRadioBoxChoices ) / sizeof( wxString );
|
int orientationRadioBoxNChoices = sizeof( orientationRadioBoxChoices ) / sizeof( wxString );
|
||||||
orientationRadioBox = new wxRadioBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Orientation (degrees):"), wxDefaultPosition, wxDefaultSize, orientationRadioBoxNChoices, orientationRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
orientationRadioBox = new wxRadioBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Orientation (degrees):"), wxDefaultPosition, wxDefaultSize, orientationRadioBoxNChoices, orientationRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
orientationRadioBox->SetSelection( 0 );
|
orientationRadioBox->SetSelection( 0 );
|
||||||
orientationRadioBox->SetToolTip( _("Select if the component is to be rotated when drawn") );
|
orientationRadioBox->SetToolTip( _("Select if the symbol is to be rotated when drawn") );
|
||||||
|
|
||||||
optionsSizer->Add( orientationRadioBox, 0, wxEXPAND|wxALL, 5 );
|
optionsSizer->Add( orientationRadioBox, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
@ -57,12 +57,12 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
|
||||||
int mirrorRadioBoxNChoices = sizeof( mirrorRadioBoxChoices ) / sizeof( wxString );
|
int mirrorRadioBoxNChoices = sizeof( mirrorRadioBoxChoices ) / sizeof( wxString );
|
||||||
mirrorRadioBox = new wxRadioBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Position:"), wxDefaultPosition, wxDefaultSize, mirrorRadioBoxNChoices, mirrorRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
mirrorRadioBox = new wxRadioBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Position:"), wxDefaultPosition, wxDefaultSize, mirrorRadioBoxNChoices, mirrorRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
mirrorRadioBox->SetSelection( 0 );
|
mirrorRadioBox->SetSelection( 0 );
|
||||||
mirrorRadioBox->SetToolTip( _("Pick the graphical transformation to be used when displaying the component, if any") );
|
mirrorRadioBox->SetToolTip( _("Pick the graphical transformation to be used when displaying the symbol") );
|
||||||
|
|
||||||
optionsSizer->Add( mirrorRadioBox, 0, wxALL|wxEXPAND, 5 );
|
optionsSizer->Add( mirrorRadioBox, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
convertCheckBox = new wxCheckBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Convert Shape"), wxDefaultPosition, wxDefaultSize, 0 );
|
convertCheckBox = new wxCheckBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Convert Shape"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
convertCheckBox->SetToolTip( _("Use the alternate shape of this component.\nFor gates, this is the \"De Morgan\" conversion") );
|
convertCheckBox->SetToolTip( _("Use the alternate shape of this symbol.\nFor gates, this is the \"De Morgan\" conversion") );
|
||||||
|
|
||||||
optionsSizer->Add( convertCheckBox, 0, wxALL, 5 );
|
optionsSizer->Add( convertCheckBox, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
|
||||||
sbSizerChipName = new wxStaticBoxSizer( new wxStaticBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Component Name:") ), wxVERTICAL );
|
sbSizerChipName = new wxStaticBoxSizer( new wxStaticBox( optionsSizer->GetStaticBox(), wxID_ANY, _("Component Name:") ), wxVERTICAL );
|
||||||
|
|
||||||
chipnameTextCtrl = new wxTextCtrl( sbSizerChipName->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
chipnameTextCtrl = new wxTextCtrl( sbSizerChipName->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
chipnameTextCtrl->SetToolTip( _("Name of the symbol in the library from which this component come from") );
|
chipnameTextCtrl->SetToolTip( _("Name of the symbol in the library to which this symbol is linked") );
|
||||||
|
|
||||||
sbSizerChipName->Add( chipnameTextCtrl, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
sbSizerChipName->Add( chipnameTextCtrl, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
|
||||||
optionsSizer->Add( m_staticTextTimeStamp, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
optionsSizer->Add( m_staticTextTimeStamp, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_textCtrlTimeStamp = new wxTextCtrl( optionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
m_textCtrlTimeStamp = new wxTextCtrl( optionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||||
m_textCtrlTimeStamp->SetToolTip( _("Unique ID that identifies the component") );
|
m_textCtrlTimeStamp->SetToolTip( _("Unique ID that identifies the symbol") );
|
||||||
|
|
||||||
optionsSizer->Add( m_textCtrlTimeStamp, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
optionsSizer->Add( m_textCtrlTimeStamp, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
|
||||||
optionsSizer->Add( spiceFieldsButton, 0, wxALL|wxEXPAND, 5 );
|
optionsSizer->Add( spiceFieldsButton, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
resetFieldsStyleButton = new wxButton( optionsSizer->GetStaticBox(), wxID_ANY, _("Reset Field Properties"), wxDefaultPosition, wxDefaultSize, 0 );
|
resetFieldsStyleButton = new wxButton( optionsSizer->GetStaticBox(), wxID_ANY, _("Reset Field Properties"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
resetFieldsStyleButton->SetToolTip( _("Set position and style of fields and component orientation to default library value.\nField values are not modified.") );
|
resetFieldsStyleButton->SetToolTip( _("Set position and style of fields and symbol orientation to default library value.\nField values are not modified.") );
|
||||||
|
|
||||||
optionsSizer->Add( resetFieldsStyleButton, 0, wxALL|wxEXPAND, 5 );
|
optionsSizer->Add( resetFieldsStyleButton, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
@ -307,6 +307,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
|
||||||
|
|
||||||
this->SetSizer( mainSizer );
|
this->SetSizer( mainSizer );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
|
mainSizer->Fit( this );
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnCloseDialog ) );
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::OnCloseDialog ) );
|
||||||
|
|
|
@ -44,10 +44,10 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP</property>
|
<property name="name">DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">928,794</property>
|
<property name="size">-1,-1</property>
|
||||||
<property name="style">wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU</property>
|
<property name="style">wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Component Properties</property>
|
<property name="title">Symbol Properties</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
|
@ -519,7 +519,7 @@
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style">wxRA_SPECIFY_COLS</property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Select if the component is to be rotated when drawn</property>
|
<property name="tooltip">Select if the symbol is to be rotated when drawn</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -609,7 +609,7 @@
|
||||||
<property name="style">wxRA_SPECIFY_COLS</property>
|
<property name="style">wxRA_SPECIFY_COLS</property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Pick the graphical transformation to be used when displaying the component, if any</property>
|
<property name="tooltip">Pick the graphical transformation to be used when displaying the symbol</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -697,7 +697,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Use the alternate shape of this component.
For gates, this is the "De Morgan" conversion</property>
|
<property name="tooltip">Use the alternate shape of this symbol.
For gates, this is the "De Morgan" conversion</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -797,7 +797,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Name of the symbol in the library from which this component come from</property>
|
<property name="tooltip">Name of the symbol in the library to which this symbol is linked</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -1160,7 +1160,7 @@
|
||||||
<property name="style">wxTE_READONLY</property>
|
<property name="style">wxTE_READONLY</property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Unique ID that identifies the component</property>
|
<property name="tooltip">Unique ID that identifies the symbol</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -1421,7 +1421,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Set position and style of fields and component orientation to default library value.
Field values are not modified.</property>
|
<property name="tooltip">Set position and style of fields and symbol orientation to default library value.
Field values are not modified.</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP_H__
|
#ifndef __DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
|
@ -111,7 +109,7 @@ class DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Component Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 928,794 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU );
|
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Symbol Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU );
|
||||||
~DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP();
|
~DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -311,6 +311,7 @@ void DIALOG_EDIT_COMPONENTS_LIBID::initDlg()
|
||||||
m_grid->SetSelectionMode( wxGrid::wxGridSelectRows );
|
m_grid->SetSelectionMode( wxGrid::wxGridSelectRows );
|
||||||
|
|
||||||
m_buttonOrphanItems->Enable( m_OrphansRowIndexes.size() > 0 );
|
m_buttonOrphanItems->Enable( m_OrphansRowIndexes.size() > 0 );
|
||||||
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -616,4 +617,4 @@ bool InvokeDialogEditComponentsLibId( SCH_EDIT_FRAME* aCaller )
|
||||||
dlg.ShowModal();
|
dlg.ShowModal();
|
||||||
|
|
||||||
return dlg.IsSchematicModified();
|
return dlg.IsSchematicModified();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 2 2017)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_edit_components_libid_base.h"
|
#include "dialog_edit_components_libid_base.h"
|
||||||
|
@ -23,25 +23,26 @@ DIALOG_EDIT_COMPONENTS_LIBID_BASE::DIALOG_EDIT_COMPONENTS_LIBID_BASE( wxWindow*
|
||||||
m_grid = new wxGrid( m_panelGrid, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
m_grid = new wxGrid( m_panelGrid, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
// Grid
|
// Grid
|
||||||
m_grid->CreateGrid( 1, 3 );
|
m_grid->CreateGrid( 5, 3 );
|
||||||
m_grid->EnableEditing( true );
|
m_grid->EnableEditing( true );
|
||||||
m_grid->EnableGridLines( true );
|
m_grid->EnableGridLines( true );
|
||||||
m_grid->EnableDragGridSize( false );
|
m_grid->EnableDragGridSize( false );
|
||||||
m_grid->SetMargins( 0, 0 );
|
m_grid->SetMargins( 0, 0 );
|
||||||
|
|
||||||
// Columns
|
// Columns
|
||||||
m_grid->SetColSize( 0, 500 );
|
m_grid->SetColSize( 0, 300 );
|
||||||
m_grid->SetColSize( 1, 100 );
|
m_grid->SetColSize( 1, 200 );
|
||||||
m_grid->SetColSize( 2, 100 );
|
m_grid->SetColSize( 2, 200 );
|
||||||
m_grid->EnableDragColMove( false );
|
m_grid->EnableDragColMove( false );
|
||||||
m_grid->EnableDragColSize( true );
|
m_grid->EnableDragColSize( true );
|
||||||
m_grid->SetColLabelSize( 30 );
|
m_grid->SetColLabelSize( 30 );
|
||||||
m_grid->SetColLabelValue( 0, _("Components") );
|
m_grid->SetColLabelValue( 0, _("Symbols") );
|
||||||
m_grid->SetColLabelValue( 1, _("Current Symbol") );
|
m_grid->SetColLabelValue( 1, _("Current Symbol") );
|
||||||
m_grid->SetColLabelValue( 2, _("New Symbol") );
|
m_grid->SetColLabelValue( 2, _("New Symbol") );
|
||||||
m_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
m_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
||||||
|
|
||||||
// Rows
|
// Rows
|
||||||
|
m_grid->AutoSizeRows();
|
||||||
m_grid->EnableDragRowSize( true );
|
m_grid->EnableDragRowSize( true );
|
||||||
m_grid->SetRowLabelSize( 30 );
|
m_grid->SetRowLabelSize( 30 );
|
||||||
m_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
m_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
||||||
|
@ -106,6 +107,7 @@ DIALOG_EDIT_COMPONENTS_LIBID_BASE::DIALOG_EDIT_COMPONENTS_LIBID_BASE( wxWindow*
|
||||||
|
|
||||||
this->SetSizer( bSizerMain );
|
this->SetSizer( bSizerMain );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
|
bSizerMain->Fit( this );
|
||||||
|
|
||||||
this->Centre( wxBOTH );
|
this->Centre( wxBOTH );
|
||||||
|
|
||||||
|
|
|
@ -44,10 +44,10 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">DIALOG_EDIT_COMPONENTS_LIBID_BASE</property>
|
<property name="name">DIALOG_EDIT_COMPONENTS_LIBID_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">766,311</property>
|
<property name="size">-1,-1</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Edit Components Links to Symbols in Libraries</property>
|
<property name="title">Edit Symbol Library Associations</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
|
@ -176,11 +176,11 @@
|
||||||
<property name="name">bSizerGrid</property>
|
<property name="name">bSizerGrid</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxGrid" expanded="1">
|
<object class="wxGrid" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
<property name="aui_position"></property>
|
<property name="aui_position"></property>
|
||||||
<property name="aui_row"></property>
|
<property name="aui_row"></property>
|
||||||
<property name="autosize_cols">0</property>
|
<property name="autosize_cols">0</property>
|
||||||
<property name="autosize_rows">0</property>
|
<property name="autosize_rows">1</property>
|
||||||
<property name="best_size"></property>
|
<property name="best_size"></property>
|
||||||
<property name="bg"></property>
|
<property name="bg"></property>
|
||||||
<property name="caption"></property>
|
<property name="caption"></property>
|
||||||
|
@ -204,10 +204,10 @@
|
||||||
<property name="close_button">1</property>
|
<property name="close_button">1</property>
|
||||||
<property name="col_label_horiz_alignment">wxALIGN_CENTRE</property>
|
<property name="col_label_horiz_alignment">wxALIGN_CENTRE</property>
|
||||||
<property name="col_label_size">30</property>
|
<property name="col_label_size">30</property>
|
||||||
<property name="col_label_values">"Components" "Current Symbol" "New Symbol"</property>
|
<property name="col_label_values">"Symbols" "Current Symbol" "New Symbol"</property>
|
||||||
<property name="col_label_vert_alignment">wxALIGN_CENTRE</property>
|
<property name="col_label_vert_alignment">wxALIGN_CENTRE</property>
|
||||||
<property name="cols">3</property>
|
<property name="cols">3</property>
|
||||||
<property name="column_sizes">500,100,100</property>
|
<property name="column_sizes">300,200,200</property>
|
||||||
<property name="context_help"></property>
|
<property name="context_help"></property>
|
||||||
<property name="context_menu">1</property>
|
<property name="context_menu">1</property>
|
||||||
<property name="default_pane">0</property>
|
<property name="default_pane">0</property>
|
||||||
|
@ -253,7 +253,7 @@
|
||||||
<property name="row_label_values"></property>
|
<property name="row_label_values"></property>
|
||||||
<property name="row_label_vert_alignment">wxALIGN_CENTRE</property>
|
<property name="row_label_vert_alignment">wxALIGN_CENTRE</property>
|
||||||
<property name="row_sizes"></property>
|
<property name="row_sizes"></property>
|
||||||
<property name="rows">1</property>
|
<property name="rows">5</property>
|
||||||
<property name="show">1</property>
|
<property name="show">1</property>
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
|
@ -412,11 +412,11 @@
|
||||||
<property name="name">bSizerMsgWarning</property>
|
<property name="name">bSizerMsgWarning</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</property>
|
<property name="flag">wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 2 2017)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_EDIT_COMPONENTS_LIBID_BASE_H__
|
#ifndef __DIALOG_EDIT_COMPONENTS_LIBID_BASE_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/colour.h>
|
#include <wx/colour.h>
|
||||||
#include <wx/settings.h>
|
#include <wx/settings.h>
|
||||||
|
@ -63,7 +61,7 @@ class DIALOG_EDIT_COMPONENTS_LIBID_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_EDIT_COMPONENTS_LIBID_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Edit Components Links to Symbols in Libraries"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 766,311 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_EDIT_COMPONENTS_LIBID_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Edit Symbol Library Associations"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_EDIT_COMPONENTS_LIBID_BASE();
|
~DIALOG_EDIT_COMPONENTS_LIBID_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,245 +1,245 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Aug 4 2017)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_edit_libentry_fields_in_lib_base.h"
|
#include "dialog_edit_libentry_fields_in_lib_base.h"
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_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 );
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
||||||
|
|
||||||
wxBoxSizer* mainSizer;
|
wxBoxSizer* mainSizer;
|
||||||
mainSizer = new wxBoxSizer( wxVERTICAL );
|
mainSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxBoxSizer* bSizerFieldsSetup;
|
wxBoxSizer* bSizerFieldsSetup;
|
||||||
bSizerFieldsSetup = new wxBoxSizer( wxHORIZONTAL );
|
bSizerFieldsSetup = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxBoxSizer* bSizerFiledsList;
|
wxBoxSizer* bSizerFiledsList;
|
||||||
bSizerFiledsList = new wxBoxSizer( wxVERTICAL );
|
bSizerFiledsList = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
fieldListCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
|
fieldListCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_HRULES|wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_VRULES );
|
||||||
bSizerFiledsList->Add( fieldListCtrl, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 6 );
|
bSizerFiledsList->Add( fieldListCtrl, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 6 );
|
||||||
|
|
||||||
wxBoxSizer* bSizer8;
|
wxBoxSizer* bSizer8;
|
||||||
bSizer8 = new wxBoxSizer( wxHORIZONTAL );
|
bSizer8 = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
moveUpButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
moveUpButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
||||||
moveUpButton->SetToolTip( _("Move the selected optional field up one position") );
|
moveUpButton->SetToolTip( _("Move the selected optional field up one position") );
|
||||||
|
|
||||||
bSizer8->Add( moveUpButton, 0, wxALL, 5 );
|
bSizer8->Add( moveUpButton, 0, wxALL, 5 );
|
||||||
|
|
||||||
moveDownButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
moveDownButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
||||||
moveDownButton->SetToolTip( _("Move the selected optional field down one position") );
|
moveDownButton->SetToolTip( _("Move the selected optional field down one position") );
|
||||||
|
|
||||||
bSizer8->Add( moveDownButton, 0, wxALL, 5 );
|
bSizer8->Add( moveDownButton, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
|
bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
deleteFieldButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
deleteFieldButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
||||||
deleteFieldButton->SetToolTip( _("Delete one of the optional fields") );
|
deleteFieldButton->SetToolTip( _("Delete one of the optional fields") );
|
||||||
|
|
||||||
bSizer8->Add( deleteFieldButton, 0, wxALL, 5 );
|
bSizer8->Add( deleteFieldButton, 0, wxALL, 5 );
|
||||||
|
|
||||||
addFieldButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
addFieldButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
||||||
addFieldButton->SetToolTip( _("Add a new custom field") );
|
addFieldButton->SetToolTip( _("Add a new custom field") );
|
||||||
|
|
||||||
bSizer8->Add( addFieldButton, 0, wxALL, 5 );
|
bSizer8->Add( addFieldButton, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizerFiledsList->Add( bSizer8, 0, wxEXPAND, 5 );
|
bSizerFiledsList->Add( bSizer8, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_spiceFieldsButton = new wxButton( this, wxID_ANY, _("Edit Spice model"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_spiceFieldsButton = new wxButton( this, wxID_ANY, _("Edit Spice model"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizerFiledsList->Add( m_spiceFieldsButton, 0, wxALL|wxEXPAND, 5 );
|
bSizerFiledsList->Add( m_spiceFieldsButton, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizerFieldsSetup->Add( bSizerFiledsList, 3, wxEXPAND, 5 );
|
bSizerFieldsSetup->Add( bSizerFiledsList, 3, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxBoxSizer* fieldEditBoxSizer;
|
wxBoxSizer* fieldEditBoxSizer;
|
||||||
fieldEditBoxSizer = new wxBoxSizer( wxVERTICAL );
|
fieldEditBoxSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxBoxSizer* bSizerJustify;
|
wxBoxSizer* bSizerJustify;
|
||||||
bSizerJustify = new wxBoxSizer( wxHORIZONTAL );
|
bSizerJustify = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxString m_FieldHJustifyCtrlChoices[] = { _("Left"), _("Center"), _("Right") };
|
wxString m_FieldHJustifyCtrlChoices[] = { _("Left"), _("Center"), _("Right") };
|
||||||
int m_FieldHJustifyCtrlNChoices = sizeof( m_FieldHJustifyCtrlChoices ) / sizeof( wxString );
|
int m_FieldHJustifyCtrlNChoices = sizeof( m_FieldHJustifyCtrlChoices ) / sizeof( wxString );
|
||||||
m_FieldHJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Horiz. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldHJustifyCtrlNChoices, m_FieldHJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS );
|
m_FieldHJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Horiz. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldHJustifyCtrlNChoices, m_FieldHJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_FieldHJustifyCtrl->SetSelection( 1 );
|
m_FieldHJustifyCtrl->SetSelection( 1 );
|
||||||
m_FieldHJustifyCtrl->SetToolTip( _("Select if the component is to be rotated when drawn") );
|
m_FieldHJustifyCtrl->SetToolTip( _("Select if the symbol is to be rotated when drawn") );
|
||||||
|
|
||||||
bSizerJustify->Add( m_FieldHJustifyCtrl, 1, wxEXPAND|wxALL, 5 );
|
bSizerJustify->Add( m_FieldHJustifyCtrl, 1, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
wxString m_FieldVJustifyCtrlChoices[] = { _("Bottom"), _("Center"), _("Top") };
|
wxString m_FieldVJustifyCtrlChoices[] = { _("Bottom"), _("Center"), _("Top") };
|
||||||
int m_FieldVJustifyCtrlNChoices = sizeof( m_FieldVJustifyCtrlChoices ) / sizeof( wxString );
|
int m_FieldVJustifyCtrlNChoices = sizeof( m_FieldVJustifyCtrlChoices ) / sizeof( wxString );
|
||||||
m_FieldVJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Vert. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldVJustifyCtrlNChoices, m_FieldVJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS );
|
m_FieldVJustifyCtrl = new wxRadioBox( this, wxID_ANY, _("Vert. Justify"), wxDefaultPosition, wxDefaultSize, m_FieldVJustifyCtrlNChoices, m_FieldVJustifyCtrlChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_FieldVJustifyCtrl->SetSelection( 0 );
|
m_FieldVJustifyCtrl->SetSelection( 0 );
|
||||||
m_FieldVJustifyCtrl->SetToolTip( _("Pick the graphical transformation to be used when displaying the component, if any") );
|
m_FieldVJustifyCtrl->SetToolTip( _("Pick the graphical transformation to be used when displaying the symbol") );
|
||||||
|
|
||||||
bSizerJustify->Add( m_FieldVJustifyCtrl, 1, wxEXPAND|wxALL, 5 );
|
bSizerJustify->Add( m_FieldVJustifyCtrl, 1, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
fieldEditBoxSizer->Add( bSizerJustify, 1, wxALL|wxEXPAND, 5 );
|
fieldEditBoxSizer->Add( bSizerJustify, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizerAspect;
|
wxBoxSizer* bSizerAspect;
|
||||||
bSizerAspect = new wxBoxSizer( wxHORIZONTAL );
|
bSizerAspect = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxStaticBoxSizer* visibilitySizer;
|
wxStaticBoxSizer* visibilitySizer;
|
||||||
visibilitySizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Visibility") ), wxVERTICAL );
|
visibilitySizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Visibility") ), wxVERTICAL );
|
||||||
|
|
||||||
showCheckBox = new wxCheckBox( visibilitySizer->GetStaticBox(), wxID_ANY, _("Show"), wxDefaultPosition, wxDefaultSize, 0 );
|
showCheckBox = new wxCheckBox( visibilitySizer->GetStaticBox(), wxID_ANY, _("Show"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
showCheckBox->SetToolTip( _("Check if you want this field visible") );
|
showCheckBox->SetToolTip( _("Check if you want this field visible") );
|
||||||
|
|
||||||
visibilitySizer->Add( showCheckBox, 0, wxALL, 5 );
|
visibilitySizer->Add( showCheckBox, 0, wxALL, 5 );
|
||||||
|
|
||||||
rotateCheckBox = new wxCheckBox( visibilitySizer->GetStaticBox(), wxID_ANY, _("Rotate"), wxDefaultPosition, wxDefaultSize, 0 );
|
rotateCheckBox = new wxCheckBox( visibilitySizer->GetStaticBox(), wxID_ANY, _("Rotate"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
rotateCheckBox->SetToolTip( _("Check if you want this field's text rotated 90 degrees") );
|
rotateCheckBox->SetToolTip( _("Check if you want this field's text rotated 90 degrees") );
|
||||||
|
|
||||||
visibilitySizer->Add( rotateCheckBox, 0, wxALL, 5 );
|
visibilitySizer->Add( rotateCheckBox, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizerAspect->Add( visibilitySizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
bSizerAspect->Add( visibilitySizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_StyleRadioBoxChoices[] = { _("Normal"), _("Italic"), _("Bold"), _("Bold Italic") };
|
wxString m_StyleRadioBoxChoices[] = { _("Normal"), _("Italic"), _("Bold"), _("Bold Italic") };
|
||||||
int m_StyleRadioBoxNChoices = sizeof( m_StyleRadioBoxChoices ) / sizeof( wxString );
|
int m_StyleRadioBoxNChoices = sizeof( m_StyleRadioBoxChoices ) / sizeof( wxString );
|
||||||
m_StyleRadioBox = new wxRadioBox( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, m_StyleRadioBoxNChoices, m_StyleRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
m_StyleRadioBox = new wxRadioBox( this, wxID_ANY, _("Style"), wxDefaultPosition, wxDefaultSize, m_StyleRadioBoxNChoices, m_StyleRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_StyleRadioBox->SetSelection( 0 );
|
m_StyleRadioBox->SetSelection( 0 );
|
||||||
bSizerAspect->Add( m_StyleRadioBox, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
bSizerAspect->Add( m_StyleRadioBox, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
fieldEditBoxSizer->Add( bSizerAspect, 1, wxALL|wxEXPAND|wxTOP, 5 );
|
fieldEditBoxSizer->Add( bSizerAspect, 1, wxALL|wxEXPAND|wxTOP, 5 );
|
||||||
|
|
||||||
wxBoxSizer* fieldNameBoxSizer;
|
wxBoxSizer* fieldNameBoxSizer;
|
||||||
fieldNameBoxSizer = new wxBoxSizer( wxVERTICAL );
|
fieldNameBoxSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
fieldNameLabel = new wxStaticText( this, wxID_ANY, _("Field Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
fieldNameLabel = new wxStaticText( this, wxID_ANY, _("Field Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
fieldNameLabel->Wrap( -1 );
|
fieldNameLabel->Wrap( -1 );
|
||||||
fieldNameBoxSizer->Add( fieldNameLabel, 0, 0, 5 );
|
fieldNameBoxSizer->Add( fieldNameLabel, 0, 0, 5 );
|
||||||
|
|
||||||
fieldNameTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
fieldNameTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
fieldNameTextCtrl->SetToolTip( _("The text (or value) of the currently selected field") );
|
fieldNameTextCtrl->SetToolTip( _("The text (or value) of the currently selected field") );
|
||||||
|
|
||||||
fieldNameBoxSizer->Add( fieldNameTextCtrl, 0, wxBOTTOM|wxEXPAND, 5 );
|
fieldNameBoxSizer->Add( fieldNameTextCtrl, 0, wxBOTTOM|wxEXPAND, 5 );
|
||||||
|
|
||||||
fieldValueLabel = new wxStaticText( this, wxID_ANY, _("Field Value"), wxDefaultPosition, wxDefaultSize, 0 );
|
fieldValueLabel = new wxStaticText( this, wxID_ANY, _("Field Value"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
fieldValueLabel->Wrap( -1 );
|
fieldValueLabel->Wrap( -1 );
|
||||||
fieldNameBoxSizer->Add( fieldValueLabel, 0, wxTOP, 5 );
|
fieldNameBoxSizer->Add( fieldValueLabel, 0, wxTOP, 5 );
|
||||||
|
|
||||||
fieldValueTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
fieldValueTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
fieldValueTextCtrl->SetToolTip( _("The text (or value) of the currently selected field") );
|
fieldValueTextCtrl->SetToolTip( _("The text (or value) of the currently selected field") );
|
||||||
|
|
||||||
fieldNameBoxSizer->Add( fieldValueTextCtrl, 0, wxBOTTOM|wxEXPAND, 5 );
|
fieldNameBoxSizer->Add( fieldValueTextCtrl, 0, wxBOTTOM|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_show_datasheet_button = new wxButton( this, wxID_ANY, _("Show in Browser"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_show_datasheet_button = new wxButton( this, wxID_ANY, _("Show in Browser"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_show_datasheet_button->SetToolTip( _("If your datasheet is given as an http:// link, then pressing this button should bring it up in your webbrowser.") );
|
m_show_datasheet_button->SetToolTip( _("If your datasheet is given as an http:// link, then pressing this button should bring it up in your webbrowser.") );
|
||||||
|
|
||||||
fieldNameBoxSizer->Add( m_show_datasheet_button, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
fieldNameBoxSizer->Add( m_show_datasheet_button, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
||||||
|
|
||||||
|
|
||||||
fieldEditBoxSizer->Add( fieldNameBoxSizer, 0, wxALL|wxEXPAND, 5 );
|
fieldEditBoxSizer->Add( fieldNameBoxSizer, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxFlexGridSizer* fgSizerPosSize;
|
wxFlexGridSizer* fgSizerPosSize;
|
||||||
fgSizerPosSize = new wxFlexGridSizer( 3, 3, 5, 5 );
|
fgSizerPosSize = new wxFlexGridSizer( 3, 3, 5, 5 );
|
||||||
fgSizerPosSize->AddGrowableCol( 1 );
|
fgSizerPosSize->AddGrowableCol( 1 );
|
||||||
fgSizerPosSize->SetFlexibleDirection( wxBOTH );
|
fgSizerPosSize->SetFlexibleDirection( wxBOTH );
|
||||||
fgSizerPosSize->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
fgSizerPosSize->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
textSizeLabel = new wxStaticText( this, wxID_ANY, _("Size"), wxDefaultPosition, wxDefaultSize, 0 );
|
textSizeLabel = new wxStaticText( this, wxID_ANY, _("Size"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
textSizeLabel->Wrap( -1 );
|
textSizeLabel->Wrap( -1 );
|
||||||
fgSizerPosSize->Add( textSizeLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizerPosSize->Add( textSizeLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
textSizeTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
textSizeTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
textSizeTextCtrl->SetToolTip( _("The vertical height of the currently selected field's text in the schematic") );
|
textSizeTextCtrl->SetToolTip( _("The vertical height of the currently selected field's text in the schematic") );
|
||||||
|
|
||||||
fgSizerPosSize->Add( textSizeTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
fgSizerPosSize->Add( textSizeTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticTextUnitSize = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextUnitSize = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextUnitSize->Wrap( -1 );
|
m_staticTextUnitSize->Wrap( -1 );
|
||||||
fgSizerPosSize->Add( m_staticTextUnitSize, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizerPosSize->Add( m_staticTextUnitSize, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
posXLabel = new wxStaticText( this, wxID_ANY, _("X Position"), wxDefaultPosition, wxDefaultSize, 0 );
|
posXLabel = new wxStaticText( this, wxID_ANY, _("X Position"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
posXLabel->Wrap( -1 );
|
posXLabel->Wrap( -1 );
|
||||||
fgSizerPosSize->Add( posXLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizerPosSize->Add( posXLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
posXTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
posXTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
fgSizerPosSize->Add( posXTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
fgSizerPosSize->Add( posXTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticTextUnitPosX = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextUnitPosX = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextUnitPosX->Wrap( -1 );
|
m_staticTextUnitPosX->Wrap( -1 );
|
||||||
fgSizerPosSize->Add( m_staticTextUnitPosX, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizerPosSize->Add( m_staticTextUnitPosX, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
posYLabel = new wxStaticText( this, wxID_ANY, _("Y Position"), wxDefaultPosition, wxDefaultSize, 0 );
|
posYLabel = new wxStaticText( this, wxID_ANY, _("Y Position"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
posYLabel->Wrap( -1 );
|
posYLabel->Wrap( -1 );
|
||||||
fgSizerPosSize->Add( posYLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizerPosSize->Add( posYLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
posYTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
posYTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
posYTextCtrl->SetToolTip( _("The Y coordinate of the text relative to the component") );
|
posYTextCtrl->SetToolTip( _("The Y coordinate of the text relative to the symbol anchor position") );
|
||||||
|
|
||||||
fgSizerPosSize->Add( posYTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
fgSizerPosSize->Add( posYTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticTextUnitPosY = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextUnitPosY = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextUnitPosY->Wrap( -1 );
|
m_staticTextUnitPosY->Wrap( -1 );
|
||||||
fgSizerPosSize->Add( m_staticTextUnitPosY, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizerPosSize->Add( m_staticTextUnitPosY, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
fieldEditBoxSizer->Add( fgSizerPosSize, 1, wxALL|wxEXPAND, 5 );
|
fieldEditBoxSizer->Add( fgSizerPosSize, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizerFieldsSetup->Add( fieldEditBoxSizer, 2, wxEXPAND, 5 );
|
bSizerFieldsSetup->Add( fieldEditBoxSizer, 2, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
mainSizer->Add( bSizerFieldsSetup, 1, wxEXPAND, 5 );
|
mainSizer->Add( bSizerFieldsSetup, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
mainSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
mainSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
stdDialogButtonSizer = new wxStdDialogButtonSizer();
|
stdDialogButtonSizer = new wxStdDialogButtonSizer();
|
||||||
stdDialogButtonSizerOK = new wxButton( this, wxID_OK );
|
stdDialogButtonSizerOK = new wxButton( this, wxID_OK );
|
||||||
stdDialogButtonSizer->AddButton( stdDialogButtonSizerOK );
|
stdDialogButtonSizer->AddButton( stdDialogButtonSizerOK );
|
||||||
stdDialogButtonSizerCancel = new wxButton( this, wxID_CANCEL );
|
stdDialogButtonSizerCancel = new wxButton( this, wxID_CANCEL );
|
||||||
stdDialogButtonSizer->AddButton( stdDialogButtonSizerCancel );
|
stdDialogButtonSizer->AddButton( stdDialogButtonSizerCancel );
|
||||||
stdDialogButtonSizer->Realize();
|
stdDialogButtonSizer->Realize();
|
||||||
|
|
||||||
mainSizer->Add( stdDialogButtonSizer, 0, wxALL|wxEXPAND, 6 );
|
mainSizer->Add( stdDialogButtonSizer, 0, wxALL|wxEXPAND, 6 );
|
||||||
|
|
||||||
|
|
||||||
this->SetSizer( mainSizer );
|
this->SetSizer( mainSizer );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
mainSizer->Fit( this );
|
mainSizer->Fit( this );
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCloseDialog ) );
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCloseDialog ) );
|
||||||
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnInitDialog ) );
|
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnInitDialog ) );
|
||||||
fieldListCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemDeselected ), NULL, this );
|
fieldListCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemDeselected ), NULL, this );
|
||||||
fieldListCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemSelected ), NULL, this );
|
fieldListCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemSelected ), NULL, this );
|
||||||
moveUpButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveUpButtonHandler ), NULL, this );
|
moveUpButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveUpButtonHandler ), NULL, this );
|
||||||
moveDownButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveDownButtonHandler ), NULL, this );
|
moveDownButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveDownButtonHandler ), NULL, this );
|
||||||
deleteFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::deleteFieldButtonHandler ), NULL, this );
|
deleteFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::deleteFieldButtonHandler ), NULL, this );
|
||||||
addFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::addFieldButtonHandler ), NULL, this );
|
addFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::addFieldButtonHandler ), NULL, this );
|
||||||
m_spiceFieldsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::EditSpiceModel ), NULL, this );
|
m_spiceFieldsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::EditSpiceModel ), NULL, this );
|
||||||
m_show_datasheet_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::showButtonHandler ), NULL, this );
|
m_show_datasheet_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::showButtonHandler ), NULL, this );
|
||||||
stdDialogButtonSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCancelButtonClick ), NULL, this );
|
stdDialogButtonSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCancelButtonClick ), NULL, this );
|
||||||
stdDialogButtonSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnOKButtonClick ), NULL, this );
|
stdDialogButtonSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnOKButtonClick ), NULL, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::~DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE()
|
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::~DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE()
|
||||||
{
|
{
|
||||||
// Disconnect Events
|
// Disconnect Events
|
||||||
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCloseDialog ) );
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCloseDialog ) );
|
||||||
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnInitDialog ) );
|
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnInitDialog ) );
|
||||||
fieldListCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemDeselected ), NULL, this );
|
fieldListCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemDeselected ), NULL, this );
|
||||||
fieldListCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemSelected ), NULL, this );
|
fieldListCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnListItemSelected ), NULL, this );
|
||||||
moveUpButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveUpButtonHandler ), NULL, this );
|
moveUpButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveUpButtonHandler ), NULL, this );
|
||||||
moveDownButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveDownButtonHandler ), NULL, this );
|
moveDownButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::moveDownButtonHandler ), NULL, this );
|
||||||
deleteFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::deleteFieldButtonHandler ), NULL, this );
|
deleteFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::deleteFieldButtonHandler ), NULL, this );
|
||||||
addFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::addFieldButtonHandler ), NULL, this );
|
addFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::addFieldButtonHandler ), NULL, this );
|
||||||
m_spiceFieldsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::EditSpiceModel ), NULL, this );
|
m_spiceFieldsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::EditSpiceModel ), NULL, this );
|
||||||
m_show_datasheet_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::showButtonHandler ), NULL, this );
|
m_show_datasheet_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::showButtonHandler ), NULL, this );
|
||||||
stdDialogButtonSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCancelButtonClick ), NULL, this );
|
stdDialogButtonSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnCancelButtonClick ), NULL, this );
|
||||||
stdDialogButtonSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnOKButtonClick ), NULL, this );
|
stdDialogButtonSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::OnOKButtonClick ), NULL, this );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,100 +1,98 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Aug 4 2017)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
|
#ifndef __DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
|
||||||
#define __DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
|
#define __DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
|
||||||
|
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
#include "dialog_shim.h"
|
||||||
|
#include <wx/listctrl.h>
|
||||||
#include "dialog_shim.h"
|
#include <wx/gdicmn.h>
|
||||||
#include <wx/listctrl.h>
|
#include <wx/font.h>
|
||||||
#include <wx/gdicmn.h>
|
#include <wx/colour.h>
|
||||||
#include <wx/font.h>
|
#include <wx/settings.h>
|
||||||
#include <wx/colour.h>
|
#include <wx/string.h>
|
||||||
#include <wx/settings.h>
|
#include <wx/bitmap.h>
|
||||||
#include <wx/string.h>
|
#include <wx/image.h>
|
||||||
#include <wx/bitmap.h>
|
#include <wx/icon.h>
|
||||||
#include <wx/image.h>
|
#include <wx/bmpbuttn.h>
|
||||||
#include <wx/icon.h>
|
#include <wx/button.h>
|
||||||
#include <wx/bmpbuttn.h>
|
#include <wx/sizer.h>
|
||||||
#include <wx/button.h>
|
#include <wx/radiobox.h>
|
||||||
#include <wx/sizer.h>
|
#include <wx/checkbox.h>
|
||||||
#include <wx/radiobox.h>
|
#include <wx/statbox.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/stattext.h>
|
||||||
#include <wx/statbox.h>
|
#include <wx/textctrl.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/statline.h>
|
||||||
#include <wx/textctrl.h>
|
#include <wx/dialog.h>
|
||||||
#include <wx/statline.h>
|
|
||||||
#include <wx/dialog.h>
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// Class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
/// Class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
|
class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE : public DIALOG_SHIM
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
{
|
||||||
class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE : public DIALOG_SHIM
|
private:
|
||||||
{
|
|
||||||
private:
|
protected:
|
||||||
|
wxListCtrl* fieldListCtrl;
|
||||||
protected:
|
wxBitmapButton* moveUpButton;
|
||||||
wxListCtrl* fieldListCtrl;
|
wxBitmapButton* moveDownButton;
|
||||||
wxBitmapButton* moveUpButton;
|
wxBitmapButton* deleteFieldButton;
|
||||||
wxBitmapButton* moveDownButton;
|
wxBitmapButton* addFieldButton;
|
||||||
wxBitmapButton* deleteFieldButton;
|
wxButton* m_spiceFieldsButton;
|
||||||
wxBitmapButton* addFieldButton;
|
wxRadioBox* m_FieldHJustifyCtrl;
|
||||||
wxButton* m_spiceFieldsButton;
|
wxRadioBox* m_FieldVJustifyCtrl;
|
||||||
wxRadioBox* m_FieldHJustifyCtrl;
|
wxCheckBox* showCheckBox;
|
||||||
wxRadioBox* m_FieldVJustifyCtrl;
|
wxCheckBox* rotateCheckBox;
|
||||||
wxCheckBox* showCheckBox;
|
wxRadioBox* m_StyleRadioBox;
|
||||||
wxCheckBox* rotateCheckBox;
|
wxStaticText* fieldNameLabel;
|
||||||
wxRadioBox* m_StyleRadioBox;
|
wxTextCtrl* fieldNameTextCtrl;
|
||||||
wxStaticText* fieldNameLabel;
|
wxStaticText* fieldValueLabel;
|
||||||
wxTextCtrl* fieldNameTextCtrl;
|
wxTextCtrl* fieldValueTextCtrl;
|
||||||
wxStaticText* fieldValueLabel;
|
wxButton* m_show_datasheet_button;
|
||||||
wxTextCtrl* fieldValueTextCtrl;
|
wxStaticText* textSizeLabel;
|
||||||
wxButton* m_show_datasheet_button;
|
wxTextCtrl* textSizeTextCtrl;
|
||||||
wxStaticText* textSizeLabel;
|
wxStaticText* m_staticTextUnitSize;
|
||||||
wxTextCtrl* textSizeTextCtrl;
|
wxStaticText* posXLabel;
|
||||||
wxStaticText* m_staticTextUnitSize;
|
wxTextCtrl* posXTextCtrl;
|
||||||
wxStaticText* posXLabel;
|
wxStaticText* m_staticTextUnitPosX;
|
||||||
wxTextCtrl* posXTextCtrl;
|
wxStaticText* posYLabel;
|
||||||
wxStaticText* m_staticTextUnitPosX;
|
wxTextCtrl* posYTextCtrl;
|
||||||
wxStaticText* posYLabel;
|
wxStaticText* m_staticTextUnitPosY;
|
||||||
wxTextCtrl* posYTextCtrl;
|
wxStaticLine* m_staticline1;
|
||||||
wxStaticText* m_staticTextUnitPosY;
|
wxStdDialogButtonSizer* stdDialogButtonSizer;
|
||||||
wxStaticLine* m_staticline1;
|
wxButton* stdDialogButtonSizerOK;
|
||||||
wxStdDialogButtonSizer* stdDialogButtonSizer;
|
wxButton* stdDialogButtonSizerCancel;
|
||||||
wxButton* stdDialogButtonSizerOK;
|
|
||||||
wxButton* stdDialogButtonSizerCancel;
|
// Virtual event handlers, overide them in your derived class
|
||||||
|
virtual void OnCloseDialog( wxCloseEvent& event ) { event.Skip(); }
|
||||||
// Virtual event handlers, overide them in your derived class
|
virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
|
||||||
virtual void OnCloseDialog( wxCloseEvent& event ) { event.Skip(); }
|
virtual void OnListItemDeselected( wxListEvent& event ) { event.Skip(); }
|
||||||
virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
|
virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); }
|
||||||
virtual void OnListItemDeselected( wxListEvent& event ) { event.Skip(); }
|
virtual void moveUpButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); }
|
virtual void moveDownButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void moveUpButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
virtual void deleteFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void moveDownButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
virtual void addFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void deleteFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
virtual void EditSpiceModel( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void addFieldButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
virtual void showButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void EditSpiceModel( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnCancelButtonClick( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void showButtonHandler( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnOKButtonClick( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnCancelButtonClick( wxCommandEvent& event ) { event.Skip(); }
|
|
||||||
virtual void OnOKButtonClick( wxCommandEvent& event ) { event.Skip(); }
|
|
||||||
|
public:
|
||||||
|
|
||||||
public:
|
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Field Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU );
|
||||||
|
~DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE();
|
||||||
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Field Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU );
|
|
||||||
~DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE();
|
};
|
||||||
|
|
||||||
};
|
#endif //__DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
|
||||||
|
|
||||||
#endif //__DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE_H__
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Sep 8 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_eeschema_options_base.h"
|
#include "dialog_eeschema_options_base.h"
|
||||||
|
@ -116,7 +116,7 @@ DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wx
|
||||||
m_panel5->SetSizer( bSizer82 );
|
m_panel5->SetSizer( bSizer82 );
|
||||||
m_panel5->Layout();
|
m_panel5->Layout();
|
||||||
bSizer82->Fit( m_panel5 );
|
bSizer82->Fit( m_panel5 );
|
||||||
m_notebook->AddPage( m_panel5, _("Display"), true );
|
m_notebook->AddPage( m_panel5, _("Display"), false );
|
||||||
m_panel3 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
m_panel3 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||||
wxBoxSizer* bSizer8;
|
wxBoxSizer* bSizer8;
|
||||||
bSizer8 = new wxBoxSizer( wxVERTICAL );
|
bSizer8 = new wxBoxSizer( wxVERTICAL );
|
||||||
|
@ -206,7 +206,7 @@ DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wx
|
||||||
m_staticline2 = new wxStaticLine( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
m_staticline2 = new wxStaticLine( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
bSizer9->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
|
bSizer9->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
|
||||||
|
|
||||||
m_checkAutoplaceFields = new wxCheckBox( m_panel3, wxID_ANY, _("A&utomatically place component fields"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkAutoplaceFields = new wxCheckBox( m_panel3, wxID_ANY, _("A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer9->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
|
bSizer9->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 3 );
|
||||||
|
|
||||||
m_checkAutoplaceJustify = new wxCheckBox( m_panel3, wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkAutoplaceJustify = new wxCheckBox( m_panel3, wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
@ -355,7 +355,7 @@ DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wx
|
||||||
m_panel2->SetSizer( bSizer6 );
|
m_panel2->SetSizer( bSizer6 );
|
||||||
m_panel2->Layout();
|
m_panel2->Layout();
|
||||||
bSizer6->Fit( m_panel2 );
|
bSizer6->Fit( m_panel2 );
|
||||||
m_notebook->AddPage( m_panel2, _("Default Fields"), false );
|
m_notebook->AddPage( m_panel2, _("Default Fields"), true );
|
||||||
|
|
||||||
bOptionsSizer->Add( m_notebook, 1, wxALL|wxEXPAND, 5 );
|
bOptionsSizer->Add( m_notebook, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
|
@ -187,8 +187,8 @@
|
||||||
<object class="notebookpage" expanded="1">
|
<object class="notebookpage" expanded="1">
|
||||||
<property name="bitmap"></property>
|
<property name="bitmap"></property>
|
||||||
<property name="label">Display</property>
|
<property name="label">Display</property>
|
||||||
<property name="select">1</property>
|
<property name="select">0</property>
|
||||||
<object class="wxPanel" expanded="0">
|
<object class="wxPanel" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -262,16 +262,16 @@
|
||||||
<event name="OnSetFocus"></event>
|
<event name="OnSetFocus"></event>
|
||||||
<event name="OnSize"></event>
|
<event name="OnSize"></event>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizer82</property>
|
<property name="name">bSizer82</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxFlexGridSizer" expanded="0">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
<property name="cols">3</property>
|
<property name="cols">3</property>
|
||||||
<property name="flexible_direction">wxBOTH</property>
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
<property name="growablecols">0,1,2</property>
|
<property name="growablecols">0,1,2</property>
|
||||||
|
@ -1675,11 +1675,11 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="notebookpage" expanded="0">
|
<object class="notebookpage" expanded="1">
|
||||||
<property name="bitmap"></property>
|
<property name="bitmap"></property>
|
||||||
<property name="label">Editing</property>
|
<property name="label">Editing</property>
|
||||||
<property name="select">0</property>
|
<property name="select">0</property>
|
||||||
<object class="wxPanel" expanded="0">
|
<object class="wxPanel" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -1753,7 +1753,7 @@
|
||||||
<event name="OnSetFocus"></event>
|
<event name="OnSetFocus"></event>
|
||||||
<event name="OnSize"></event>
|
<event name="OnSize"></event>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizer8</property>
|
<property name="name">bSizer8</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
@ -3154,11 +3154,11 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizer9</property>
|
<property name="name">bSizer9</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
@ -3277,7 +3277,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">A&utomatically place component fields</property>
|
<property name="label">A&utomatically place symbol fields</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -3517,7 +3517,7 @@
|
||||||
<property name="bitmap"></property>
|
<property name="bitmap"></property>
|
||||||
<property name="label">Controls</property>
|
<property name="label">Controls</property>
|
||||||
<property name="select">0</property>
|
<property name="select">0</property>
|
||||||
<object class="wxPanel" expanded="0">
|
<object class="wxPanel" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
<property name="RightDockable">1</property>
|
<property name="RightDockable">1</property>
|
||||||
|
@ -3591,7 +3591,7 @@
|
||||||
<event name="OnSetFocus"></event>
|
<event name="OnSetFocus"></event>
|
||||||
<event name="OnSize"></event>
|
<event name="OnSize"></event>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizer81</property>
|
<property name="name">bSizer81</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
@ -3614,11 +3614,11 @@
|
||||||
<property name="vgap">0</property>
|
<property name="vgap">0</property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">m_controlsSizer</property>
|
<property name="name">m_controlsSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
@ -4318,7 +4318,7 @@
|
||||||
<object class="notebookpage" expanded="0">
|
<object class="notebookpage" expanded="0">
|
||||||
<property name="bitmap"></property>
|
<property name="bitmap"></property>
|
||||||
<property name="label">Default Fields</property>
|
<property name="label">Default Fields</property>
|
||||||
<property name="select">0</property>
|
<property name="select">1</property>
|
||||||
<object class="wxPanel" expanded="0">
|
<object class="wxPanel" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Sep 8 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_EESCHEMA_OPTIONS_BASE_H__
|
#ifndef __DIALOG_EESCHEMA_OPTIONS_BASE_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<property name="size"></property>
|
<property name="size"></property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Component Properties</property>
|
<property name="title">Symbol Properties</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">20</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT</property>
|
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxFlexGridSizer" expanded="0">
|
<object class="wxFlexGridSizer" expanded="0">
|
||||||
|
@ -233,7 +233,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Component &name:</property>
|
<property name="label">Symbol &name:</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -254,7 +254,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">This is the component name in library,
and also the default component value when loaded in the schematic.</property>
|
<property name="tooltip">This is the symbol name in library,
and also the default component value when loaded in the schematic.</property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name"></property>
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
|
@ -286,7 +286,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">3</property>
|
<property name="border">3</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxTextCtrl" expanded="0">
|
<object class="wxTextCtrl" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -377,7 +377,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="0">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -459,8 +459,8 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">3</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxTextCtrl" expanded="0">
|
<object class="wxTextCtrl" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -551,7 +551,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="0">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -633,8 +633,8 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">3</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxSpinCtrl" expanded="0">
|
<object class="wxSpinCtrl" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -722,11 +722,11 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">15</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT</property>
|
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizer17</property>
|
<property name="name">bSizer17</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
@ -764,7 +764,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Create component with alternate body style (DeMorgan)</property>
|
<property name="label">Create symbol with alternate body style (DeMorgan)</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -852,7 +852,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Create component as power symbol</property>
|
<property name="label">Create symbol as power symbol</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
@ -1008,16 +1008,6 @@
|
||||||
<property name="name">bSizer18</property>
|
<property name="name">bSizer18</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxEXPAND</property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="spacer" expanded="1">
|
|
||||||
<property name="height">10</property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="width">0</property>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALL</property>
|
||||||
|
@ -1102,7 +1092,7 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">20</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxLEFT|wxRIGHT</property>
|
<property name="flag">wxLEFT|wxRIGHT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxFlexGridSizer" expanded="1">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
|
@ -1119,7 +1109,7 @@
|
||||||
<property name="vgap">0</property>
|
<property name="vgap">0</property>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="1">
|
<object class="wxStaticText" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -1202,7 +1192,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxSpinCtrl" expanded="1">
|
<object class="wxSpinCtrl" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -1291,7 +1281,7 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">15</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT</property>
|
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxBoxSizer" expanded="1">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
@ -1389,7 +1379,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxBOTTOM|wxLEFT|wxRIGHT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxCheckBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -1477,7 +1467,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxBOTTOM|wxLEFT|wxRIGHT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxCheckBox" expanded="1">
|
<object class="wxCheckBox" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -1565,10 +1555,20 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="spacer" expanded="1">
|
||||||
|
<property name="height">10</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="width">0</property>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">10</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStdDialogButtonSizer" expanded="1">
|
<object class="wxStdDialogButtonSizer" expanded="1">
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version May 6 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_lib_new_component_base.h"
|
#include "dialog_lib_new_component_base.h"
|
||||||
|
@ -31,46 +31,46 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent,
|
||||||
fgSizer31->SetFlexibleDirection( wxBOTH );
|
fgSizer31->SetFlexibleDirection( wxBOTH );
|
||||||
fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
fgSizer31->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Component &name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Symbol &name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText2->Wrap( -1 );
|
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.") );
|
m_staticText2->SetToolTip( _("This is the symbol name in library,\nand also the default component value when loaded in the schematic.") );
|
||||||
|
|
||||||
fgSizer31->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
fgSizer31->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
||||||
|
|
||||||
m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 100,-1 ), 0 );
|
m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 100,-1 ), 0 );
|
||||||
fgSizer31->Add( m_textName, 1, wxALL|wxEXPAND, 3 );
|
fgSizer31->Add( m_textName, 1, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 );
|
||||||
|
|
||||||
m_staticText9 = new wxStaticText( this, wxID_ANY, _("Default reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText9 = new wxStaticText( this, wxID_ANY, _("Default reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText9->Wrap( -1 );
|
m_staticText9->Wrap( -1 );
|
||||||
fgSizer31->Add( m_staticText9, 0, wxALL, 5 );
|
fgSizer31->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_textReference = new wxTextCtrl( this, wxID_ANY, _("U"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
fgSizer31->Add( m_textReference, 0, wxALL|wxEXPAND, 5 );
|
fgSizer31->Add( m_textReference, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 );
|
||||||
|
|
||||||
m_staticText10 = new wxStaticText( this, wxID_ANY, _("Number of units per package:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText10 = new wxStaticText( this, wxID_ANY, _("Number of units per package:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText10->Wrap( -1 );
|
m_staticText10->Wrap( -1 );
|
||||||
fgSizer31->Add( m_staticText10, 0, wxALL, 5 );
|
fgSizer31->Add( m_staticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 26, 0 );
|
m_spinPartCount = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 26, 0 );
|
||||||
fgSizer31->Add( m_spinPartCount, 0, wxALL, 5 );
|
fgSizer31->Add( m_spinPartCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
||||||
|
|
||||||
|
|
||||||
bSizer16->Add( fgSizer31, 1, wxEXPAND|wxLEFT|wxRIGHT, 20 );
|
bSizer16->Add( fgSizer31, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizer17;
|
wxBoxSizer* bSizer17;
|
||||||
bSizer17 = new wxBoxSizer( wxVERTICAL );
|
bSizer17 = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create component with alternate body style (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create symbol with alternate body style (DeMorgan)"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer17->Add( m_checkHasConversion, 0, wxALL, 5 );
|
bSizer17->Add( m_checkHasConversion, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create component as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkIsPowerSymbol = new wxCheckBox( this, wxID_ANY, _("Create symbol as power symbol"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer17->Add( m_checkIsPowerSymbol, 0, wxALL, 5 );
|
bSizer17->Add( m_checkIsPowerSymbol, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer17->Add( m_checkLockItems, 0, wxALL, 5 );
|
bSizer17->Add( m_checkLockItems, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer16->Add( bSizer17, 1, wxEXPAND|wxLEFT|wxRIGHT, 15 );
|
bSizer16->Add( bSizer17, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer7->Add( bSizer16, 0, wxALL|wxEXPAND, 5 );
|
bSizer7->Add( bSizer16, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
@ -78,9 +78,6 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent,
|
||||||
wxBoxSizer* bSizer18;
|
wxBoxSizer* bSizer18;
|
||||||
bSizer18 = new wxBoxSizer( wxVERTICAL );
|
bSizer18 = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
|
||||||
bSizer18->Add( 0, 10, 0, wxEXPAND, 5 );
|
|
||||||
|
|
||||||
m_staticText11 = new wxStaticText( this, wxID_ANY, _("General Pin Settings"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText11 = new wxStaticText( this, wxID_ANY, _("General Pin Settings"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText11->Wrap( -1 );
|
m_staticText11->Wrap( -1 );
|
||||||
m_staticText11->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
m_staticText11->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
||||||
|
@ -94,13 +91,13 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent,
|
||||||
|
|
||||||
m_staticText12 = new wxStaticText( this, wxID_ANY, _("Pin text position offset:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText12 = new wxStaticText( this, wxID_ANY, _("Pin text position offset:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText12->Wrap( -1 );
|
m_staticText12->Wrap( -1 );
|
||||||
fgSizer4->Add( m_staticText12, 0, wxALL, 5 );
|
fgSizer4->Add( m_staticText12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
m_spinPinTextPosition = new wxSpinCtrl( this, wxID_ANY, wxT("40"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 100, 40 );
|
m_spinPinTextPosition = new wxSpinCtrl( this, wxID_ANY, wxT("40"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 100, 40 );
|
||||||
fgSizer4->Add( m_spinPinTextPosition, 0, wxALL, 5 );
|
fgSizer4->Add( m_spinPinTextPosition, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer18->Add( fgSizer4, 0, wxLEFT|wxRIGHT, 20 );
|
bSizer18->Add( fgSizer4, 0, wxLEFT|wxRIGHT, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizer19;
|
wxBoxSizer* bSizer19;
|
||||||
bSizer19 = new wxBoxSizer( wxVERTICAL );
|
bSizer19 = new wxBoxSizer( wxVERTICAL );
|
||||||
|
@ -111,14 +108,17 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent,
|
||||||
|
|
||||||
m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name text"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkShowPinName = new wxCheckBox( this, wxID_ANY, _("Show pin name text"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_checkShowPinName->SetValue(true);
|
m_checkShowPinName->SetValue(true);
|
||||||
bSizer19->Add( m_checkShowPinName, 0, wxALL, 5 );
|
bSizer19->Add( m_checkShowPinName, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||||
|
|
||||||
m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name inside"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkShowPinNameInside = new wxCheckBox( this, wxID_ANY, _("Pin name inside"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_checkShowPinNameInside->SetValue(true);
|
m_checkShowPinNameInside->SetValue(true);
|
||||||
bSizer19->Add( m_checkShowPinNameInside, 0, wxALL, 5 );
|
bSizer19->Add( m_checkShowPinNameInside, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer18->Add( bSizer19, 0, wxEXPAND|wxLEFT|wxRIGHT, 15 );
|
bSizer18->Add( bSizer19, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bSizer18->Add( 0, 10, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer7->Add( bSizer18, 1, wxALL|wxEXPAND, 5 );
|
bSizer7->Add( bSizer18, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
@ -130,7 +130,7 @@ DIALOG_LIB_NEW_COMPONENT_BASE::DIALOG_LIB_NEW_COMPONENT_BASE( wxWindow* parent,
|
||||||
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
||||||
m_sdbSizer->Realize();
|
m_sdbSizer->Realize();
|
||||||
|
|
||||||
bSizer7->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 10 );
|
bSizer7->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
this->SetSizer( bSizer7 );
|
this->SetSizer( bSizer7 );
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version May 6 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_LIB_NEW_COMPONENT_BASE_H__
|
#ifndef __DIALOG_LIB_NEW_COMPONENT_BASE_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
|
@ -59,7 +57,7 @@ class DIALOG_LIB_NEW_COMPONENT_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
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( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Symbol Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_LIB_NEW_COMPONENT_BASE();
|
~DIALOG_LIB_NEW_COMPONENT_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -395,9 +395,9 @@ void NETLIST_DIALOG::InstallPageSpice()
|
||||||
new NETLIST_PAGE_DIALOG( m_NoteBook, title, NET_TYPE_SPICE );
|
new NETLIST_PAGE_DIALOG( m_NoteBook, title, NET_TYPE_SPICE );
|
||||||
|
|
||||||
page->m_SpiceAjustPassiveValues = new wxCheckBox( page, ID_USE_NETCODE_AS_NETNAME,
|
page->m_SpiceAjustPassiveValues = new wxCheckBox( page, ID_USE_NETCODE_AS_NETNAME,
|
||||||
_( "Reformat passive component values" ) );
|
_( "Reformat passive symbol values" ) );
|
||||||
page->m_SpiceAjustPassiveValues->SetToolTip(
|
page->m_SpiceAjustPassiveValues->SetToolTip(
|
||||||
_( "Reformat passive component values e.g. 1M -> 1Meg" ) );
|
_( "Reformat passive symbol values e.g. 1M -> 1Meg" ) );
|
||||||
page->m_SpiceAjustPassiveValues->SetValue( m_Parent->GetSpiceAjustPassiveValues() );
|
page->m_SpiceAjustPassiveValues->SetValue( m_Parent->GetSpiceAjustPassiveValues() );
|
||||||
page->m_LeftBoxSizer->Add( page->m_SpiceAjustPassiveValues, 0, wxGROW | wxALL, 5 );
|
page->m_LeftBoxSizer->Add( page->m_SpiceAjustPassiveValues, 0, wxGROW | wxALL, 5 );
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 31 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_sim_settings_base.h"
|
#include "dialog_sim_settings_base.h"
|
||||||
|
@ -385,7 +385,7 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID
|
||||||
|
|
||||||
bSizer1->Add( m_simPages, 1, wxEXPAND | wxALL, 5 );
|
bSizer1->Add( m_simPages, 1, wxEXPAND | wxALL, 5 );
|
||||||
|
|
||||||
m_fixPassiveVals = new wxCheckBox( this, wxID_ANY, _("Adjust passive component values (e.g. M -> Meg; 100 nF -> 100n)"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_fixPassiveVals = new wxCheckBox( this, wxID_ANY, _("Adjust passive symbol values (e.g. M -> Meg; 100 nF -> 100n)"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer1->Add( m_fixPassiveVals, 0, wxALL, 5 );
|
bSizer1->Add( m_fixPassiveVals, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_fixIncludePaths = new wxCheckBox( this, wxID_ANY, _("Add full path for .include library directives"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_fixIncludePaths = new wxCheckBox( this, wxID_ANY, _("Add full path for .include library directives"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
@ -404,6 +404,7 @@ DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID
|
||||||
|
|
||||||
this->SetSizer( bSizer1 );
|
this->SetSizer( bSizer1 );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
|
bSizer1->Fit( this );
|
||||||
|
|
||||||
this->Centre( wxBOTH );
|
this->Centre( wxBOTH );
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">DIALOG_SIM_SETTINGS_BASE</property>
|
<property name="name">DIALOG_SIM_SETTINGS_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">685,518</property>
|
<property name="size">-1,-1</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Simulation settings</property>
|
<property name="title">Simulation settings</property>
|
||||||
|
@ -1269,6 +1269,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox"></event>
|
<event name="OnCombobox"></event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -2086,6 +2088,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox"></event>
|
<event name="OnCombobox"></event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -2814,11 +2818,11 @@
|
||||||
<property name="width">0</property>
|
<property name="width">0</property>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALIGN_CENTER_HORIZONTAL</property>
|
<property name="flag">wxALIGN_CENTER_HORIZONTAL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxFlexGridSizer" expanded="0">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
<property name="cols">3</property>
|
<property name="cols">3</property>
|
||||||
<property name="flexible_direction">wxBOTH</property>
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
<property name="growablecols"></property>
|
<property name="growablecols"></property>
|
||||||
|
@ -2978,6 +2982,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox"></event>
|
<event name="OnCombobox"></event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -3162,6 +3168,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox"></event>
|
<event name="OnCombobox"></event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -3419,6 +3427,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox"></event>
|
<event name="OnCombobox"></event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -5681,7 +5691,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Adjust passive component values (e.g. M -> Meg; 100 nF -> 100n)</property>
|
<property name="label">Adjust passive symbol values (e.g. M -> Meg; 100 nF -> 100n)</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 31 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_SIM_SETTINGS_BASE_H__
|
#ifndef __DIALOG_SIM_SETTINGS_BASE_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/radiobox.h>
|
#include <wx/radiobox.h>
|
||||||
|
@ -120,7 +118,7 @@ class DIALOG_SIM_SETTINGS_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Simulation settings"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 685,518 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Simulation settings"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_SIM_SETTINGS_BASE();
|
~DIALOG_SIM_SETTINGS_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_spice_model_base.h"
|
#include "dialog_spice_model_base.h"
|
||||||
|
@ -40,7 +40,7 @@ DIALOG_SPICE_MODEL_BASE::DIALOG_SPICE_MODEL_BASE( wxWindow* parent, wxWindowID i
|
||||||
|
|
||||||
m_staticText62 = new wxStaticText( m_passive, wxID_ANY, _("Passive type"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText62 = new wxStaticText( m_passive, wxID_ANY, _("Passive type"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText62->Wrap( -1 );
|
m_staticText62->Wrap( -1 );
|
||||||
fgSizer1->Add( m_staticText62, 0, wxALL, 5 );
|
fgSizer1->Add( m_staticText62, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
m_staticText3 = new wxStaticText( m_passive, wxID_ANY, _("Value"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText3 = new wxStaticText( m_passive, wxID_ANY, _("Value"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText3->Wrap( -1 );
|
m_staticText3->Wrap( -1 );
|
||||||
|
@ -53,7 +53,7 @@ DIALOG_SPICE_MODEL_BASE::DIALOG_SPICE_MODEL_BASE( wxWindow* parent, wxWindowID i
|
||||||
|
|
||||||
m_staticText63 = new wxStaticText( m_passive, wxID_ANY, _("Spice value in simulation"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText63 = new wxStaticText( m_passive, wxID_ANY, _("Spice value in simulation"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText63->Wrap( -1 );
|
m_staticText63->Wrap( -1 );
|
||||||
fgSizer1->Add( m_staticText63, 0, wxALL, 5 );
|
fgSizer1->Add( m_staticText63, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer41->Add( fgSizer1, 0, wxEXPAND|wxALL, 5 );
|
bSizer41->Add( fgSizer1, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
@ -253,7 +253,7 @@ DIALOG_SPICE_MODEL_BASE::DIALOG_SPICE_MODEL_BASE( wxWindow* parent, wxWindowID i
|
||||||
m_model->SetSizer( bSizer6 );
|
m_model->SetSizer( bSizer6 );
|
||||||
m_model->Layout();
|
m_model->Layout();
|
||||||
bSizer6->Fit( m_model );
|
bSizer6->Fit( m_model );
|
||||||
m_notebook->AddPage( m_model, _("Model"), true );
|
m_notebook->AddPage( m_model, _("Model"), false );
|
||||||
m_power = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
m_power = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||||
m_power->SetMinSize( wxSize( 650,-1 ) );
|
m_power->SetMinSize( wxSize( 650,-1 ) );
|
||||||
|
|
||||||
|
@ -568,14 +568,14 @@ DIALOG_SPICE_MODEL_BASE::DIALOG_SPICE_MODEL_BASE( wxWindow* parent, wxWindowID i
|
||||||
m_power->SetSizer( bSizer4 );
|
m_power->SetSizer( bSizer4 );
|
||||||
m_power->Layout();
|
m_power->Layout();
|
||||||
bSizer4->Fit( m_power );
|
bSizer4->Fit( m_power );
|
||||||
m_notebook->AddPage( m_power, _("Source"), false );
|
m_notebook->AddPage( m_power, _("Source"), true );
|
||||||
|
|
||||||
bSizer1->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
|
bSizer1->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
|
||||||
|
|
||||||
m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
bSizer1->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
|
bSizer1->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
|
||||||
|
|
||||||
m_disabled = new wxCheckBox( this, wxID_ANY, _("Disable component for simulation"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_disabled = new wxCheckBox( this, wxID_ANY, _("Disable symbol for simulation"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bSizer1->Add( m_disabled, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
bSizer1->Add( m_disabled, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizer2;
|
wxBoxSizer* bSizer2;
|
||||||
|
@ -607,6 +607,7 @@ DIALOG_SPICE_MODEL_BASE::DIALOG_SPICE_MODEL_BASE( wxWindow* parent, wxWindowID i
|
||||||
|
|
||||||
this->SetSizer( bSizer1 );
|
this->SetSizer( bSizer1 );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
|
bSizer1->Fit( this );
|
||||||
|
|
||||||
this->Centre( wxBOTH );
|
this->Centre( wxBOTH );
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<property name="minimum_size">-1,-1</property>
|
<property name="minimum_size">-1,-1</property>
|
||||||
<property name="name">DIALOG_SPICE_MODEL_BASE</property>
|
<property name="name">DIALOG_SPICE_MODEL_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">640,582</property>
|
<property name="size">-1,-1</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Spice Model Editor</property>
|
<property name="title">Spice Model Editor</property>
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxALL</property>
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxFlexGridSizer" expanded="0">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
<property name="cols">3</property>
|
<property name="cols">3</property>
|
||||||
<property name="flexible_direction">wxBOTH</property>
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
<property name="growablecols">1</property>
|
<property name="growablecols">1</property>
|
||||||
|
@ -422,6 +422,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox"></event>
|
<event name="OnCombobox"></event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -450,7 +452,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="0">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -707,7 +709,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="0">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL</property>
|
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticText" expanded="0">
|
<object class="wxStaticText" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
@ -875,7 +877,7 @@
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALIGN_CENTER_HORIZONTAL</property>
|
<property name="flag">wxALIGN_CENTER_HORIZONTAL</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizer5</property>
|
<property name="name">bSizer5</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
@ -1046,11 +1048,11 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxFlexGridSizer" expanded="0">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
<property name="cols">3</property>
|
<property name="cols">3</property>
|
||||||
<property name="flexible_direction">wxBOTH</property>
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
<property name="growablecols">1</property>
|
<property name="growablecols">1</property>
|
||||||
|
@ -3313,7 +3315,7 @@
|
||||||
<object class="notebookpage" expanded="1">
|
<object class="notebookpage" expanded="1">
|
||||||
<property name="bitmap"></property>
|
<property name="bitmap"></property>
|
||||||
<property name="label">Model</property>
|
<property name="label">Model</property>
|
||||||
<property name="select">1</property>
|
<property name="select">0</property>
|
||||||
<object class="wxPanel" expanded="1">
|
<object class="wxPanel" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
|
@ -3397,7 +3399,7 @@
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxFlexGridSizer" expanded="0">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
<property name="cols">2</property>
|
<property name="cols">2</property>
|
||||||
<property name="flexible_direction">wxBOTH</property>
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
<property name="growablecols">1</property>
|
<property name="growablecols">1</property>
|
||||||
|
@ -3492,11 +3494,11 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxBoxSizer" expanded="0">
|
<object class="wxBoxSizer" expanded="1">
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">bSizer7</property>
|
<property name="name">bSizer7</property>
|
||||||
<property name="orient">wxHORIZONTAL</property>
|
<property name="orient">wxHORIZONTAL</property>
|
||||||
|
@ -3830,6 +3832,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox">onModelSelected</event>
|
<event name="OnCombobox">onModelSelected</event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -4004,6 +4008,8 @@
|
||||||
<property name="window_style"></property>
|
<property name="window_style"></property>
|
||||||
<event name="OnChar"></event>
|
<event name="OnChar"></event>
|
||||||
<event name="OnCombobox"></event>
|
<event name="OnCombobox"></event>
|
||||||
|
<event name="OnComboboxCloseup"></event>
|
||||||
|
<event name="OnComboboxDropdown"></event>
|
||||||
<event name="OnEnterWindow"></event>
|
<event name="OnEnterWindow"></event>
|
||||||
<event name="OnEraseBackground"></event>
|
<event name="OnEraseBackground"></event>
|
||||||
<event name="OnKeyDown"></event>
|
<event name="OnKeyDown"></event>
|
||||||
|
@ -4129,7 +4135,7 @@
|
||||||
<object class="notebookpage" expanded="1">
|
<object class="notebookpage" expanded="1">
|
||||||
<property name="bitmap"></property>
|
<property name="bitmap"></property>
|
||||||
<property name="label">Source</property>
|
<property name="label">Source</property>
|
||||||
<property name="select">0</property>
|
<property name="select">1</property>
|
||||||
<object class="wxPanel" expanded="0">
|
<object class="wxPanel" expanded="0">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
<property name="LeftDockable">1</property>
|
<property name="LeftDockable">1</property>
|
||||||
|
@ -9643,7 +9649,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Disable component for simulation</property>
|
<property name="label">Disable symbol for simulation</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Jul 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_SPICE_MODEL_BASE_H__
|
#ifndef __DIALOG_SPICE_MODEL_BASE_H__
|
||||||
|
@ -11,8 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
|
@ -174,7 +172,7 @@ class DIALOG_SPICE_MODEL_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_SPICE_MODEL_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Spice Model Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 640,582 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_SPICE_MODEL_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Spice Model Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_SPICE_MODEL_BASE();
|
~DIALOG_SPICE_MODEL_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -147,7 +147,7 @@ static EDA_HOTKEY HkAddHierarchicalLabel( _HKI( "Add Hierarchical Label" ), HK_A
|
||||||
static EDA_HOTKEY HkAddGlobalLabel( _HKI( "Add Global Label" ), HK_ADD_GLABEL, GR_KB_CTRL + 'H',
|
static EDA_HOTKEY HkAddGlobalLabel( _HKI( "Add Global Label" ), HK_ADD_GLABEL, GR_KB_CTRL + 'H',
|
||||||
ID_GLABEL_BUTT );
|
ID_GLABEL_BUTT );
|
||||||
static EDA_HOTKEY HkAddJunction( _HKI( "Add Junction" ), HK_ADD_JUNCTION, 'J', ID_JUNCTION_BUTT );
|
static EDA_HOTKEY HkAddJunction( _HKI( "Add Junction" ), HK_ADD_JUNCTION, 'J', ID_JUNCTION_BUTT );
|
||||||
static EDA_HOTKEY HkAddComponent( _HKI( "Add Component" ), HK_ADD_NEW_COMPONENT, 'A',
|
static EDA_HOTKEY HkAddComponent( _HKI( "Add Symbol" ), HK_ADD_NEW_COMPONENT, 'A',
|
||||||
ID_SCH_PLACE_COMPONENT );
|
ID_SCH_PLACE_COMPONENT );
|
||||||
static EDA_HOTKEY HkAddPower( _HKI( "Add Power" ), HK_ADD_NEW_POWER, 'P',
|
static EDA_HOTKEY HkAddPower( _HKI( "Add Power" ), HK_ADD_NEW_POWER, 'P',
|
||||||
ID_PLACE_POWER_BUTT );
|
ID_PLACE_POWER_BUTT );
|
||||||
|
@ -171,16 +171,16 @@ static EDA_HOTKEY HkOrientNormalComponent( _HKI( "Orient Normal Component" ),
|
||||||
HK_ORIENT_NORMAL_COMPONENT, 'N', ID_SCH_ORIENT_NORMAL );
|
HK_ORIENT_NORMAL_COMPONENT, 'N', ID_SCH_ORIENT_NORMAL );
|
||||||
static EDA_HOTKEY HkRotate( _HKI( "Rotate Item" ), HK_ROTATE, 'R', ID_SCH_ROTATE_CLOCKWISE );
|
static EDA_HOTKEY HkRotate( _HKI( "Rotate Item" ), HK_ROTATE, 'R', ID_SCH_ROTATE_CLOCKWISE );
|
||||||
static EDA_HOTKEY HkEdit( _HKI( "Edit Item" ), HK_EDIT, 'E', ID_SCH_EDIT_ITEM );
|
static EDA_HOTKEY HkEdit( _HKI( "Edit Item" ), HK_EDIT, 'E', ID_SCH_EDIT_ITEM );
|
||||||
static EDA_HOTKEY HkEditComponentValue( _HKI( "Edit Component Value" ),
|
static EDA_HOTKEY HkEditComponentValue( _HKI( "Edit Symbol Value" ),
|
||||||
HK_EDIT_COMPONENT_VALUE, 'V',
|
HK_EDIT_COMPONENT_VALUE, 'V',
|
||||||
ID_SCH_EDIT_COMPONENT_VALUE );
|
ID_SCH_EDIT_COMPONENT_VALUE );
|
||||||
static EDA_HOTKEY HkEditComponentReference( _HKI( "Edit Component Reference" ),
|
static EDA_HOTKEY HkEditComponentReference( _HKI( "Edit Symbol Reference" ),
|
||||||
HK_EDIT_COMPONENT_REFERENCE, 'U',
|
HK_EDIT_COMPONENT_REFERENCE, 'U',
|
||||||
ID_SCH_EDIT_COMPONENT_REFERENCE );
|
ID_SCH_EDIT_COMPONENT_REFERENCE );
|
||||||
static EDA_HOTKEY HkEditComponentFootprint( _HKI( "Edit Component Footprint" ),
|
static EDA_HOTKEY HkEditComponentFootprint( _HKI( "Edit Symbol Footprint" ),
|
||||||
HK_EDIT_COMPONENT_FOOTPRINT, 'F',
|
HK_EDIT_COMPONENT_FOOTPRINT, 'F',
|
||||||
ID_SCH_EDIT_COMPONENT_FOOTPRINT );
|
ID_SCH_EDIT_COMPONENT_FOOTPRINT );
|
||||||
static EDA_HOTKEY HkEditComponentWithLibedit( _HKI( "Edit with Component Editor" ),
|
static EDA_HOTKEY HkEditComponentWithLibedit( _HKI( "Edit with Symbol Editor" ),
|
||||||
HK_EDIT_COMPONENT_WITH_LIBEDIT,
|
HK_EDIT_COMPONENT_WITH_LIBEDIT,
|
||||||
'E' + GR_KB_CTRL,
|
'E' + GR_KB_CTRL,
|
||||||
ID_POPUP_SCH_CALL_LIBEDIT_AND_LOAD_CMP );
|
ID_POPUP_SCH_CALL_LIBEDIT_AND_LOAD_CMP );
|
||||||
|
@ -188,7 +188,7 @@ static EDA_HOTKEY HkMove( _HKI( "Move Schematic Item" ),
|
||||||
HK_MOVE_COMPONENT_OR_ITEM, 'M',
|
HK_MOVE_COMPONENT_OR_ITEM, 'M',
|
||||||
ID_SCH_MOVE_ITEM );
|
ID_SCH_MOVE_ITEM );
|
||||||
|
|
||||||
static EDA_HOTKEY HkDuplicateItem( _HKI( "Duplicate Component or Label" ),
|
static EDA_HOTKEY HkDuplicateItem( _HKI( "Duplicate Symbol or Label" ),
|
||||||
HK_DUPLICATE_ITEM, 'C',
|
HK_DUPLICATE_ITEM, 'C',
|
||||||
ID_POPUP_SCH_DUPLICATE_ITEM );
|
ID_POPUP_SCH_DUPLICATE_ITEM );
|
||||||
|
|
||||||
|
|
|
@ -89,8 +89,8 @@ void LIB_EDIT_FRAME::EditField( LIB_FIELD* aField )
|
||||||
if( !lib.empty() && m_libMgr->PartExists( newFieldValue, lib ) )
|
if( !lib.empty() && m_libMgr->PartExists( newFieldValue, lib ) )
|
||||||
{
|
{
|
||||||
msg.Printf( _(
|
msg.Printf( _(
|
||||||
"The name \"%s\" conflicts with an existing entry in the component library \"%s\".\n\n"
|
"The name \"%s\" conflicts with an existing entry in the symbol library \"%s\".\n\n"
|
||||||
"Do you wish to replace the current component in the library with this one?" ),
|
"Do you wish to replace the current symbol in the library with this one?" ),
|
||||||
newFieldValue,
|
newFieldValue,
|
||||||
lib
|
lib
|
||||||
);
|
);
|
||||||
|
|
|
@ -190,7 +190,7 @@ void preparePlaceMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
wxString text;
|
wxString text;
|
||||||
|
|
||||||
text = AddHotkeyName( _( "&Component" ), g_Schematic_Hokeys_Descr,
|
text = AddHotkeyName( _( "&Symbol" ), g_Schematic_Hokeys_Descr,
|
||||||
HK_ADD_NEW_COMPONENT, IS_ACCELERATOR ); // add an accelerator, not a shortcut
|
HK_ADD_NEW_COMPONENT, IS_ACCELERATOR ); // add an accelerator, not a shortcut
|
||||||
AddMenuItem( aParentMenu, ID_SCH_PLACE_COMPONENT, text,
|
AddMenuItem( aParentMenu, ID_SCH_PLACE_COMPONENT, text,
|
||||||
HELP_PLACE_COMPONENTS,
|
HELP_PLACE_COMPONENTS,
|
||||||
|
@ -257,7 +257,7 @@ void preparePlaceMenu( wxMenu* aParentMenu )
|
||||||
KiBitmap( add_hierarchical_label_xpm ) );
|
KiBitmap( add_hierarchical_label_xpm ) );
|
||||||
|
|
||||||
|
|
||||||
text = AddHotkeyName( _( "Hierarchical &Sheet" ), g_Schematic_Hokeys_Descr,
|
text = AddHotkeyName( _( "Hierar&chical Sheet" ), g_Schematic_Hokeys_Descr,
|
||||||
HK_ADD_HIER_SHEET, IS_ACCELERATOR ); // add an accelerator, not a shortcut
|
HK_ADD_HIER_SHEET, IS_ACCELERATOR ); // add an accelerator, not a shortcut
|
||||||
AddMenuItem( aParentMenu, ID_SHEET_SYMBOL_BUTT, text,
|
AddMenuItem( aParentMenu, ID_SHEET_SYMBOL_BUTT, text,
|
||||||
HELP_PLACE_SHEET,
|
HELP_PLACE_SHEET,
|
||||||
|
@ -452,14 +452,14 @@ void prepareEditMenu( wxMenu* aParentMenu )
|
||||||
// Update field values
|
// Update field values
|
||||||
AddMenuItem( aParentMenu, ID_UPDATE_FIELDS,
|
AddMenuItem( aParentMenu, ID_UPDATE_FIELDS,
|
||||||
_( "Update Field Values" ),
|
_( "Update Field Values" ),
|
||||||
_( "Sets component fields to original library values" ),
|
_( "Sets symbol fields to original library values" ),
|
||||||
KiBitmap( update_fields_xpm ) );
|
KiBitmap( update_fields_xpm ) );
|
||||||
|
|
||||||
// Edit components to symbols library links (change LIB_ID values)
|
// Edit components to symbols library links (change LIB_ID values)
|
||||||
aParentMenu->AppendSeparator();
|
aParentMenu->AppendSeparator();
|
||||||
AddMenuItem( aParentMenu, ID_EDIT_COMPONENTS_TO_SYMBOLS_LIB_ID,
|
AddMenuItem( aParentMenu, ID_EDIT_COMPONENTS_TO_SYMBOLS_LIB_ID,
|
||||||
_( "Edit Components to Symbol Library Links" ),
|
_( "Edit Symbol Library Links" ),
|
||||||
_( "Edit components to symbols library links to switch to an other library link (library IDs)" ),
|
_( "Edit schematic symbol's symbol library links" ),
|
||||||
KiBitmap( edit_cmp_symb_links_xpm ) );
|
KiBitmap( edit_cmp_symb_links_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -468,7 +468,8 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
{
|
{
|
||||||
wxString text;
|
wxString text;
|
||||||
|
|
||||||
text = AddHotkeyName( _( "Update PCB from Schematic" ), g_Schematic_Hokeys_Descr, HK_UPDATE_PCB_FROM_SCH );
|
text = AddHotkeyName( _( "Update PCB from Schematic" ), g_Schematic_Hokeys_Descr,
|
||||||
|
HK_UPDATE_PCB_FROM_SCH );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_UPDATE_PCB_FROM_SCH,
|
ID_UPDATE_PCB_FROM_SCH,
|
||||||
|
@ -523,12 +524,12 @@ void prepareToolsMenu( wxMenu* aParentMenu )
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_GET_NETLIST,
|
ID_GET_NETLIST,
|
||||||
_( "Generate &Netlist File" ),
|
_( "Generate &Netlist File" ),
|
||||||
_( "Generate component netlist file" ),
|
_( "Generate netlist file" ),
|
||||||
KiBitmap( netlist_xpm ) );
|
KiBitmap( netlist_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
ID_OPEN_CMP_TABLE,
|
ID_OPEN_CMP_TABLE,
|
||||||
_( "Component Table &View" ),
|
_( "Symbol Table &View" ),
|
||||||
KiBitmap( spreadsheet_xpm ) );
|
KiBitmap( spreadsheet_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu,
|
AddMenuItem( aParentMenu,
|
||||||
|
|
|
@ -345,8 +345,7 @@ bool SCH_FIELD::Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint
|
||||||
{
|
{
|
||||||
SCH_COMPONENT* component = (SCH_COMPONENT*) m_Parent;
|
SCH_COMPONENT* component = (SCH_COMPONENT*) m_Parent;
|
||||||
|
|
||||||
wxCHECK_MSG( component != NULL, false,
|
wxCHECK_MSG( component != NULL, false, wxT( "No symbol associated with field" ) + text );
|
||||||
wxT( "No component associated with field" ) + text );
|
|
||||||
|
|
||||||
text = component->GetRef( (SCH_SHEET_PATH*) aAuxData );
|
text = component->GetRef( (SCH_SHEET_PATH*) aAuxData );
|
||||||
|
|
||||||
|
@ -379,12 +378,12 @@ bool SCH_FIELD::Replace( wxFindReplaceData& aSearchData, void* aAuxData )
|
||||||
wxT( "Cannot replace reference designator without valid sheet path." ) );
|
wxT( "Cannot replace reference designator without valid sheet path." ) );
|
||||||
|
|
||||||
wxCHECK_MSG( aSearchData.GetFlags() & FR_REPLACE_REFERENCES, false,
|
wxCHECK_MSG( aSearchData.GetFlags() & FR_REPLACE_REFERENCES, false,
|
||||||
wxT( "Invalid replace component reference field call." ) ) ;
|
wxT( "Invalid replace symbol reference field call." ) ) ;
|
||||||
|
|
||||||
SCH_COMPONENT* component = (SCH_COMPONENT*) m_Parent;
|
SCH_COMPONENT* component = (SCH_COMPONENT*) m_Parent;
|
||||||
|
|
||||||
wxCHECK_MSG( component != NULL, false,
|
wxCHECK_MSG( component != NULL, false,
|
||||||
wxT( "No component associated with field" ) + text );
|
wxT( "No symbol associated with field" ) + text );
|
||||||
|
|
||||||
text = component->GetRef( (SCH_SHEET_PATH*) aAuxData );
|
text = component->GetRef( (SCH_SHEET_PATH*) aAuxData );
|
||||||
|
|
||||||
|
|
|
@ -1201,7 +1201,7 @@ void SCH_EDIT_FRAME::OnOpenLibraryEditor( wxCommandEvent& event )
|
||||||
|
|
||||||
if( !item || (item->GetFlags() != 0) || ( item->Type() != SCH_COMPONENT_T ) )
|
if( !item || (item->GetFlags() != 0) || ( item->Type() != SCH_COMPONENT_T ) )
|
||||||
{
|
{
|
||||||
wxMessageBox( _( "Error: not a component or no component" ) );
|
wxMessageBox( _( "Error: not a symbol or no symbol." ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,13 +152,13 @@ void SCH_EDIT_FRAME::ReCreateHToolbar()
|
||||||
_( "Perform electrical rules check" ) );
|
_( "Perform electrical rules check" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_RUN_CVPCB, wxEmptyString, KiBitmap( cvpcb_xpm ),
|
m_mainToolBar->AddTool( ID_RUN_CVPCB, wxEmptyString, KiBitmap( cvpcb_xpm ),
|
||||||
_( "Run CvPcb to associate footprints to components" ) );
|
_( "Run CvPcb to associate footprints to symbols" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_GET_NETLIST, wxEmptyString, KiBitmap( netlist_xpm ),
|
m_mainToolBar->AddTool( ID_GET_NETLIST, wxEmptyString, KiBitmap( netlist_xpm ),
|
||||||
_( "Generate netlist" ) );
|
_( "Generate netlist" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_OPEN_CMP_TABLE, wxEmptyString, KiBitmap( spreadsheet_xpm ),
|
m_mainToolBar->AddTool( ID_OPEN_CMP_TABLE, wxEmptyString, KiBitmap( spreadsheet_xpm ),
|
||||||
_( "Edit Components Fields" ) );
|
_( "Edit symbol fields" ) );
|
||||||
|
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_GET_TOOLS, wxEmptyString, KiBitmap( bom_xpm ),
|
m_mainToolBar->AddTool( ID_GET_TOOLS, wxEmptyString, KiBitmap( bom_xpm ),
|
||||||
|
|
|
@ -54,16 +54,16 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBVIEW_SELECT_PART, wxEmptyString,
|
m_mainToolBar->AddTool( ID_LIBVIEW_SELECT_PART, wxEmptyString,
|
||||||
KiBitmap( add_component_xpm ),
|
KiBitmap( add_component_xpm ),
|
||||||
_( "Select component to browse" ) );
|
_( "Select symbol to browse" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
m_mainToolBar->AddTool( ID_LIBVIEW_PREVIOUS, wxEmptyString,
|
m_mainToolBar->AddTool( ID_LIBVIEW_PREVIOUS, wxEmptyString,
|
||||||
KiBitmap( lib_previous_xpm ),
|
KiBitmap( lib_previous_xpm ),
|
||||||
_( "Display previous component" ) );
|
_( "Display previous symbol" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddTool( ID_LIBVIEW_NEXT, wxEmptyString,
|
m_mainToolBar->AddTool( ID_LIBVIEW_NEXT, wxEmptyString,
|
||||||
KiBitmap( lib_next_xpm ),
|
KiBitmap( lib_next_xpm ),
|
||||||
_( "Display next component" ) );
|
_( "Display next symbol" ) );
|
||||||
|
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
msg = AddHotkeyName( _( "Zoom in" ), g_Viewlib_Hokeys_Descr,
|
msg = AddHotkeyName( _( "Zoom in" ), g_Viewlib_Hokeys_Descr,
|
||||||
|
@ -107,7 +107,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
m_mainToolBar->AddTool( ID_LIBVIEW_VIEWDOC, wxEmptyString,
|
m_mainToolBar->AddTool( ID_LIBVIEW_VIEWDOC, wxEmptyString,
|
||||||
KiBitmap( datasheet_xpm ),
|
KiBitmap( datasheet_xpm ),
|
||||||
_( "View component documents" ) );
|
_( "View symbol documents" ) );
|
||||||
m_mainToolBar->EnableTool( ID_LIBVIEW_VIEWDOC, false );
|
m_mainToolBar->EnableTool( ID_LIBVIEW_VIEWDOC, false );
|
||||||
|
|
||||||
if( IsModal() )
|
if( IsModal() )
|
||||||
|
@ -115,7 +115,7 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
|
||||||
m_mainToolBar->AddSeparator();
|
m_mainToolBar->AddSeparator();
|
||||||
m_mainToolBar->AddTool( ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC,
|
m_mainToolBar->AddTool( ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC,
|
||||||
wxEmptyString, KiBitmap( export_xpm ),
|
wxEmptyString, KiBitmap( export_xpm ),
|
||||||
_( "Insert component in schematic" ) );
|
_( "Insert symbol in schematic" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// after adding the buttons to the toolbar, must call Realize() to
|
// after adding the buttons to the toolbar, must call Realize() to
|
||||||
|
@ -183,7 +183,7 @@ void LIB_VIEW_FRAME::ReCreateMenuBar( void )
|
||||||
|
|
||||||
AddMenuItem( fileMenu, wxID_EXIT,
|
AddMenuItem( fileMenu, wxID_EXIT,
|
||||||
_( "Cl&ose" ),
|
_( "Cl&ose" ),
|
||||||
_( "Close schematic component viewer" ),
|
_( "Close schematic symbol viewer" ),
|
||||||
KiBitmap( exit_xpm ) );
|
KiBitmap( exit_xpm ) );
|
||||||
|
|
||||||
// View menu
|
// View menu
|
||||||
|
|
|
@ -105,13 +105,13 @@ MODULE* BOARD_NETLIST_UPDATER::addNewComponent( COMPONENT* aComponent )
|
||||||
|
|
||||||
if( aComponent->GetModule() != NULL )
|
if( aComponent->GetModule() != NULL )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Adding new component \"%s:%s\" footprint \"%s\".\n" ),
|
msg.Printf( _( "Adding new symbol \"%s:%s\" footprint \"%s\".\n" ),
|
||||||
GetChars( aComponent->GetReference() ),
|
GetChars( aComponent->GetReference() ),
|
||||||
GetChars( aComponent->GetTimeStamp() ),
|
GetChars( aComponent->GetTimeStamp() ),
|
||||||
GetChars( aComponent->GetFPID().Format() ) );
|
GetChars( aComponent->GetFPID().Format() ) );
|
||||||
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
||||||
|
|
||||||
msg.Printf( _( "Add component %s, footprint: %s.\n" ),
|
msg.Printf( _( "Add symbol %s, footprint: %s.\n" ),
|
||||||
GetChars( aComponent->GetReference() ),
|
GetChars( aComponent->GetReference() ),
|
||||||
GetChars( aComponent->GetFPID().Format() ) );
|
GetChars( aComponent->GetFPID().Format() ) );
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
@ -133,13 +133,13 @@ MODULE* BOARD_NETLIST_UPDATER::addNewComponent( COMPONENT* aComponent )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Cannot add component %s due to missing footprint %s.\n" ),
|
msg.Printf( _( "Cannot add symbol %s due to missing footprint %s.\n" ),
|
||||||
GetChars( aComponent->GetReference() ),
|
GetChars( aComponent->GetReference() ),
|
||||||
GetChars( aComponent->GetFPID().Format() ) );
|
GetChars( aComponent->GetFPID().Format() ) );
|
||||||
|
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ERROR );
|
m_reporter->Report( msg, REPORTER::RPT_ERROR );
|
||||||
|
|
||||||
msg.Printf( _( "Cannot add new component \"%s:%s\" due to missing "
|
msg.Printf( _( "Cannot add new symbol \"%s:%s\" due to missing "
|
||||||
"footprint \"%s\".\n" ),
|
"footprint \"%s\".\n" ),
|
||||||
GetChars( aComponent->GetReference() ),
|
GetChars( aComponent->GetReference() ),
|
||||||
GetChars( aComponent->GetTimeStamp() ),
|
GetChars( aComponent->GetTimeStamp() ),
|
||||||
|
@ -166,14 +166,14 @@ MODULE* BOARD_NETLIST_UPDATER::replaceComponent( NETLIST& aNetlist, MODULE* aPcb
|
||||||
|
|
||||||
if( aNewComponent->GetModule() != NULL )
|
if( aNewComponent->GetModule() != NULL )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Change component %s footprint from %s to %s.\n"),
|
msg.Printf( _( "Change symbol %s footprint from %s to %s.\n"),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetFPID().Format() ),
|
GetChars( aPcbComponent->GetFPID().Format() ),
|
||||||
GetChars( aNewComponent->GetFPID().Format() ) );
|
GetChars( aNewComponent->GetFPID().Format() ) );
|
||||||
|
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
|
||||||
msg.Printf( _( "Replacing component \"%s:%s\" footprint \"%s\" with "
|
msg.Printf( _( "Replacing symbol \"%s:%s\" footprint \"%s\" with "
|
||||||
"\"%s\".\n" ),
|
"\"%s\".\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetPath() ),
|
GetChars( aPcbComponent->GetPath() ),
|
||||||
|
@ -203,14 +203,14 @@ MODULE* BOARD_NETLIST_UPDATER::replaceComponent( NETLIST& aNetlist, MODULE* aPcb
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Cannot change component %s footprint due to missing "
|
msg.Printf( _( "Cannot change symbol %s footprint due to missing "
|
||||||
"footprint %s.\n" ),
|
"footprint %s.\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aNewComponent->GetFPID().Format() ) );
|
GetChars( aNewComponent->GetFPID().Format() ) );
|
||||||
|
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ERROR );
|
m_reporter->Report( msg, REPORTER::RPT_ERROR );
|
||||||
|
|
||||||
msg.Printf( _( "Cannot replace component \"%s:%s\" due to missing "
|
msg.Printf( _( "Cannot replace symbol \"%s:%s\" due to missing "
|
||||||
"footprint \"%s\".\n" ),
|
"footprint \"%s\".\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetPath() ),
|
GetChars( aPcbComponent->GetPath() ),
|
||||||
|
@ -239,13 +239,13 @@ bool BOARD_NETLIST_UPDATER::updateComponentParameters( MODULE* aPcbComponent, CO
|
||||||
// Test for reference designator field change.
|
// Test for reference designator field change.
|
||||||
if( aPcbComponent->GetReference() != aNewComponent->GetReference() )
|
if( aPcbComponent->GetReference() != aNewComponent->GetReference() )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Change component %s reference to %s.\n" ),
|
msg.Printf( _( "Change symbol %s reference to %s.\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aNewComponent->GetReference() ) );
|
GetChars( aNewComponent->GetReference() ) );
|
||||||
|
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
|
||||||
msg.Printf( _( "Changing component \"%s:%s\" reference to \"%s\".\n" ),
|
msg.Printf( _( "Changing symbol \"%s:%s\" reference to \"%s\".\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetPath() ),
|
GetChars( aPcbComponent->GetPath() ),
|
||||||
GetChars( aNewComponent->GetReference() ) );
|
GetChars( aNewComponent->GetReference() ) );
|
||||||
|
@ -262,14 +262,14 @@ bool BOARD_NETLIST_UPDATER::updateComponentParameters( MODULE* aPcbComponent, CO
|
||||||
// Test for value field change.
|
// Test for value field change.
|
||||||
if( aPcbComponent->GetValue() != aNewComponent->GetValue() )
|
if( aPcbComponent->GetValue() != aNewComponent->GetValue() )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Change component %s value from %s to %s.\n" ),
|
msg.Printf( _( "Change symbol %s value from %s to %s.\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetValue() ),
|
GetChars( aPcbComponent->GetValue() ),
|
||||||
GetChars( aNewComponent->GetValue() ) );
|
GetChars( aNewComponent->GetValue() ) );
|
||||||
|
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
|
||||||
msg.Printf( _( "Changing component \"%s:%s\" value from \"%s\" to \"%s\".\n" ),
|
msg.Printf( _( "Changing symbol \"%s:%s\" value from \"%s\" to \"%s\".\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetPath() ),
|
GetChars( aPcbComponent->GetPath() ),
|
||||||
GetChars( aPcbComponent->GetValue() ),
|
GetChars( aPcbComponent->GetValue() ),
|
||||||
|
@ -287,7 +287,7 @@ bool BOARD_NETLIST_UPDATER::updateComponentParameters( MODULE* aPcbComponent, CO
|
||||||
// Test for time stamp change.
|
// Test for time stamp change.
|
||||||
if( aPcbComponent->GetPath() != aNewComponent->GetTimeStamp() )
|
if( aPcbComponent->GetPath() != aNewComponent->GetTimeStamp() )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Changing component path \"%s:%s\" to \"%s\".\n" ),
|
msg.Printf( _( "Changing symbol path \"%s:%s\" to \"%s\".\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetPath() ),
|
GetChars( aPcbComponent->GetPath() ),
|
||||||
GetChars( aNewComponent->GetTimeStamp() ) );
|
GetChars( aNewComponent->GetTimeStamp() ) );
|
||||||
|
@ -327,12 +327,12 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
|
||||||
{
|
{
|
||||||
if( !pad->GetNetname().IsEmpty() )
|
if( !pad->GetNetname().IsEmpty() )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Disconnect component %s pin %s.\n" ),
|
msg.Printf( _( "Disconnect symbol %s pin %s.\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( pad->GetName() ) );
|
GetChars( pad->GetName() ) );
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
|
||||||
msg.Printf( _( "Clearing component \"%s:%s\" pin \"%s\" net name.\n" ),
|
msg.Printf( _( "Clearing symbol \"%s:%s\" pin \"%s\" net name.\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetPath() ),
|
GetChars( aPcbComponent->GetPath() ),
|
||||||
GetChars( pad->GetName() ) );
|
GetChars( pad->GetName() ) );
|
||||||
|
@ -378,14 +378,14 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
|
||||||
|
|
||||||
if( !pad->GetNetname().IsEmpty() )
|
if( !pad->GetNetname().IsEmpty() )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Reconnect component %s pin %s from net %s to net %s.\n"),
|
msg.Printf( _( "Reconnect symbol %s pin %s from net %s to net %s.\n"),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( pad->GetName() ),
|
GetChars( pad->GetName() ),
|
||||||
GetChars( pad->GetNetname() ),
|
GetChars( pad->GetNetname() ),
|
||||||
GetChars( netName ) );
|
GetChars( netName ) );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
msg.Printf( _( "Connect component %s pin %s to net %s.\n"),
|
msg.Printf( _( "Connect symbol %s pin %s to net %s.\n"),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( pad->GetName() ),
|
GetChars( pad->GetName() ),
|
||||||
GetChars( netName ) );
|
GetChars( netName ) );
|
||||||
|
@ -393,7 +393,7 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
|
||||||
|
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
|
||||||
msg.Printf( _( "Changing component \"%s:%s\" pin \"%s\" net name from "
|
msg.Printf( _( "Changing symbol \"%s:%s\" pin \"%s\" net name from "
|
||||||
"\"%s\" to \"%s\".\n" ),
|
"\"%s\" to \"%s\".\n" ),
|
||||||
GetChars( aPcbComponent->GetReference() ),
|
GetChars( aPcbComponent->GetReference() ),
|
||||||
GetChars( aPcbComponent->GetPath() ),
|
GetChars( aPcbComponent->GetPath() ),
|
||||||
|
@ -439,17 +439,17 @@ bool BOARD_NETLIST_UPDATER::deleteUnusedComponents( NETLIST& aNetlist )
|
||||||
{
|
{
|
||||||
if( module->IsLocked() )
|
if( module->IsLocked() )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Component %s is locked, skipping removal.\n" ),
|
msg.Printf( _( "Footprint %s is locked, skipping removal.\n" ),
|
||||||
GetChars( module->GetReference() ) );
|
GetChars( module->GetReference() ) );
|
||||||
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.Printf( _( "Remove component %s." ),
|
msg.Printf( _( "Remove footprint %s." ),
|
||||||
GetChars( module->GetReference() ) );
|
GetChars( module->GetReference() ) );
|
||||||
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
m_reporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
|
||||||
msg.Printf( _( "Removing unused component \"%s:%s\".\n" ),
|
msg.Printf( _( "Removing unused footprint \"%s:%s\".\n" ),
|
||||||
GetChars( module->GetReference() ),
|
GetChars( module->GetReference() ),
|
||||||
GetChars( module->GetPath() ) );
|
GetChars( module->GetPath() ) );
|
||||||
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
m_reporter->Report( msg, REPORTER::RPT_INFO );
|
||||||
|
|
|
@ -2408,7 +2408,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
if( aReporter )
|
if( aReporter )
|
||||||
{
|
{
|
||||||
|
|
||||||
msg.Printf( _( "Checking netlist component footprint \"%s:%s:%s\".\n" ),
|
msg.Printf( _( "Checking netlist symbol footprint \"%s:%s:%s\".\n" ),
|
||||||
GetChars( component->GetReference() ),
|
GetChars( component->GetReference() ),
|
||||||
GetChars( component->GetTimeStamp() ),
|
GetChars( component->GetTimeStamp() ),
|
||||||
GetChars( component->GetFPID().Format() ) );
|
GetChars( component->GetFPID().Format() ) );
|
||||||
|
@ -2426,7 +2426,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
{
|
{
|
||||||
if( component->GetModule() != NULL )
|
if( component->GetModule() != NULL )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Adding new component \"%s:%s\" footprint \"%s\".\n" ),
|
msg.Printf( _( "Adding new symbol \"%s:%s\" footprint \"%s\".\n" ),
|
||||||
GetChars( component->GetReference() ),
|
GetChars( component->GetReference() ),
|
||||||
GetChars( component->GetTimeStamp() ),
|
GetChars( component->GetTimeStamp() ),
|
||||||
GetChars( component->GetFPID().Format() ) );
|
GetChars( component->GetFPID().Format() ) );
|
||||||
|
@ -2435,7 +2435,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Cannot add new component \"%s:%s\" due to missing "
|
msg.Printf( _( "Cannot add new symbol \"%s:%s\" due to missing "
|
||||||
"footprint \"%s\".\n" ),
|
"footprint \"%s\".\n" ),
|
||||||
GetChars( component->GetReference() ),
|
GetChars( component->GetReference() ),
|
||||||
GetChars( component->GetTimeStamp() ),
|
GetChars( component->GetTimeStamp() ),
|
||||||
|
@ -2469,7 +2469,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
{
|
{
|
||||||
if( component->GetModule() != NULL )
|
if( component->GetModule() != NULL )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Replacing component \"%s:%s\" footprint \"%s\" with "
|
msg.Printf( _( "Replacing symbol \"%s:%s\" footprint \"%s\" with "
|
||||||
"\"%s\".\n" ),
|
"\"%s\".\n" ),
|
||||||
GetChars( footprint->GetReference() ),
|
GetChars( footprint->GetReference() ),
|
||||||
GetChars( footprint->GetPath() ),
|
GetChars( footprint->GetPath() ),
|
||||||
|
@ -2480,7 +2480,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Cannot replace component \"%s:%s\" due to missing "
|
msg.Printf( _( "Cannot replace symbol \"%s:%s\" due to missing "
|
||||||
"footprint \"%s\".\n" ),
|
"footprint \"%s\".\n" ),
|
||||||
GetChars( footprint->GetReference() ),
|
GetChars( footprint->GetReference() ),
|
||||||
GetChars( footprint->GetPath() ),
|
GetChars( footprint->GetPath() ),
|
||||||
|
@ -2533,7 +2533,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
{
|
{
|
||||||
if( aReporter )
|
if( aReporter )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Changing component \"%s:%s\" reference to \"%s\".\n" ),
|
msg.Printf( _( "Changing footprint \"%s:%s\" reference to \"%s\".\n" ),
|
||||||
GetChars( footprint->GetReference() ),
|
GetChars( footprint->GetReference() ),
|
||||||
GetChars( footprint->GetPath() ),
|
GetChars( footprint->GetPath() ),
|
||||||
GetChars( component->GetReference() ) );
|
GetChars( component->GetReference() ) );
|
||||||
|
@ -2549,7 +2549,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
{
|
{
|
||||||
if( aReporter )
|
if( aReporter )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Changing component \"%s:%s\" value from \"%s\" to \"%s\".\n" ),
|
msg.Printf( _( "Changing footprint \"%s:%s\" value from \"%s\" to \"%s\".\n" ),
|
||||||
GetChars( footprint->GetReference() ),
|
GetChars( footprint->GetReference() ),
|
||||||
GetChars( footprint->GetPath() ),
|
GetChars( footprint->GetPath() ),
|
||||||
GetChars( footprint->GetValue() ),
|
GetChars( footprint->GetValue() ),
|
||||||
|
@ -2609,7 +2609,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
{
|
{
|
||||||
if( aReporter )
|
if( aReporter )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Changing component \"%s:%s\" pin \"%s\" net name from "
|
msg.Printf( _( "Changing footprint \"%s:%s\" pad \"%s\" net name from "
|
||||||
"\"%s\" to \"%s\".\n" ),
|
"\"%s\" to \"%s\".\n" ),
|
||||||
GetChars( footprint->GetReference() ),
|
GetChars( footprint->GetReference() ),
|
||||||
GetChars( footprint->GetPath() ),
|
GetChars( footprint->GetPath() ),
|
||||||
|
@ -2661,7 +2661,7 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
|
||||||
{
|
{
|
||||||
if( aReporter )
|
if( aReporter )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Removing unused component \"%s:%s\".\n" ),
|
msg.Printf( _( "Removing unused footprint \"%s:%s\".\n" ),
|
||||||
GetChars( module->GetReference() ),
|
GetChars( module->GetReference() ),
|
||||||
GetChars( module->GetPath() ) );
|
GetChars( module->GetPath() ) );
|
||||||
aReporter->Report( msg, REPORTER::RPT_ACTION );
|
aReporter->Report( msg, REPORTER::RPT_ACTION );
|
||||||
|
|
|
@ -327,14 +327,14 @@ void DIALOG_MODULE_BOARD_EDITOR::InitModeditProperties()
|
||||||
m_textCtrlSheetPath->SetValue( m_CurrentModule->GetPath() );
|
m_textCtrlSheetPath->SetValue( m_CurrentModule->GetPath() );
|
||||||
|
|
||||||
m_AttributsCtrl->SetItemToolTip( 0,
|
m_AttributsCtrl->SetItemToolTip( 0,
|
||||||
_( "Use this attribute for most non SMD components\n"
|
_( "Use this attribute for most non SMD footprints\n"
|
||||||
"Components with this option are not put in the footprint position list file" ) );
|
"Footprints with this option are not put in the footprint position list file" ) );
|
||||||
m_AttributsCtrl->SetItemToolTip( 1,
|
m_AttributsCtrl->SetItemToolTip( 1,
|
||||||
_( "Use this attribute for SMD components.\n"
|
_( "Use this attribute for SMD footprints.\n"
|
||||||
"Only components with this option are put in the footprint position list file" ) );
|
"Only footprints with this option are put in the footprint position list file" ) );
|
||||||
m_AttributsCtrl->SetItemToolTip( 2,
|
m_AttributsCtrl->SetItemToolTip( 2,
|
||||||
_( "Use this attribute for \"virtual\" components drawn on board\n"
|
_( "Use this attribute for \"virtual\" footprints drawn on board\n"
|
||||||
"like an edge connector (old ISA PC bus for instance)" ) );
|
"such as an edge connector (old ISA PC bus for instance)" ) );
|
||||||
|
|
||||||
// Controls on right side of the dialog
|
// Controls on right side of the dialog
|
||||||
switch( m_CurrentModule->GetAttributes() & 255 )
|
switch( m_CurrentModule->GetAttributes() & 255 )
|
||||||
|
|
|
@ -179,12 +179,12 @@ void DIALOG_MODULE_MODULE_EDITOR::initModeditProperties()
|
||||||
m_FootprintNameCtrl->SetValue( m_currentFPID.GetLibItemName() );
|
m_FootprintNameCtrl->SetValue( m_currentFPID.GetLibItemName() );
|
||||||
m_LibraryNicknameCtrl->SetValue( m_currentFPID.GetLibNickname() );
|
m_LibraryNicknameCtrl->SetValue( m_currentFPID.GetLibNickname() );
|
||||||
|
|
||||||
m_AttributsCtrl->SetItemToolTip( 0, _( "Use this attribute for most non SMD components" ) );
|
m_AttributsCtrl->SetItemToolTip( 0, _( "Use this attribute for most non SMD footprints" ) );
|
||||||
m_AttributsCtrl->SetItemToolTip( 1,
|
m_AttributsCtrl->SetItemToolTip( 1,
|
||||||
_( "Use this attribute for SMD components.\n"
|
_( "Use this attribute for SMD footprints.\n"
|
||||||
"Only components with this option are put in the footprint position list file" ) );
|
"Only footprints with this option are put in the footprint position list file" ) );
|
||||||
m_AttributsCtrl->SetItemToolTip( 2,
|
m_AttributsCtrl->SetItemToolTip( 2,
|
||||||
_( "Use this attribute for \"virtual\" components drawn on board\n"
|
_( "Use this attribute for \"virtual\" footprints drawn on board\n"
|
||||||
"like an edge connector (old ISA PC bus for instance)" ) );
|
"like an edge connector (old ISA PC bus for instance)" ) );
|
||||||
|
|
||||||
// Controls on right side of the dialog
|
// Controls on right side of the dialog
|
||||||
|
|
|
@ -128,9 +128,9 @@ void DIALOG_GENCAD_EXPORT_OPTIONS::createOptCheckboxes()
|
||||||
{
|
{
|
||||||
std::map<GENCAD_EXPORT_OPT, wxString> opts =
|
std::map<GENCAD_EXPORT_OPT, wxString> opts =
|
||||||
{
|
{
|
||||||
{ FLIP_BOTTOM_PADS, _( "Flip bottom components padstacks" ) },
|
{ FLIP_BOTTOM_PADS, _( "Flip bottom footprint padstacks" ) },
|
||||||
{ UNIQUE_PIN_NAMES, _( "Generate unique pin names" ) },
|
{ UNIQUE_PIN_NAMES, _( "Generate unique pin names" ) },
|
||||||
{ INDIVIDUAL_SHAPES, _( "Generate a new shape for each component instance (do not reuse shapes)" ) },
|
{ INDIVIDUAL_SHAPES, _( "Generate a new shape for each footprint instance (do not reuse shapes)" ) },
|
||||||
{ USE_AUX_ORIGIN, _( "Use auxiliary axis as origin" ) },
|
{ USE_AUX_ORIGIN, _( "Use auxiliary axis as origin" ) },
|
||||||
{ STORE_ORIGIN_COORDS, _( "Save the origin coordinates in the file" ) }
|
{ STORE_ORIGIN_COORDS, _( "Save the origin coordinates in the file" ) }
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "widgets/text_ctrl_eval.h"
|
#include "widgets/text_ctrl_eval.h"
|
||||||
|
@ -85,7 +85,7 @@ DIALOG_MOVE_EXACT_BASE::DIALOG_MOVE_EXACT_BASE( wxWindow* parent, wxWindowID id,
|
||||||
|
|
||||||
bAnchorSizer = new wxBoxSizer( wxHORIZONTAL );
|
bAnchorSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
m_cbOverride = new wxCheckBox( this, wxID_ANY, _("Override default component anchor with:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_cbOverride = new wxCheckBox( this, wxID_ANY, _("Override default footprint anchor with:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bAnchorSizer->Add( m_cbOverride, 1, wxALL, 5 );
|
bAnchorSizer->Add( m_cbOverride, 1, wxALL, 5 );
|
||||||
|
|
||||||
wxString m_anchorChoiceChoices[] = { _("Top left pad"), _("Footprint center") };
|
wxString m_anchorChoiceChoices[] = { _("Top left pad"), _("Footprint center") };
|
||||||
|
@ -112,6 +112,7 @@ DIALOG_MOVE_EXACT_BASE::DIALOG_MOVE_EXACT_BASE( wxWindow* parent, wxWindowID id,
|
||||||
|
|
||||||
this->SetSizer( bMainSizer );
|
this->SetSizer( bMainSizer );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
|
bMainSizer->Fit( this );
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_MOVE_EXACT_BASE::OnClose ) );
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_MOVE_EXACT_BASE::OnClose ) );
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<property name="minimum_size">-1,-1</property>
|
<property name="minimum_size">-1,-1</property>
|
||||||
<property name="name">DIALOG_MOVE_EXACT_BASE</property>
|
<property name="name">DIALOG_MOVE_EXACT_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">509,277</property>
|
<property name="size">-1,-1</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Move Item</property>
|
<property name="title">Move Item</property>
|
||||||
|
@ -1377,7 +1377,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Override default component anchor with:</property>
|
<property name="label">Override default footprint anchor with:</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 17 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_MOVE_EXACT_BASE_H__
|
#ifndef __DIALOG_MOVE_EXACT_BASE_H__
|
||||||
|
@ -11,7 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
class TEXT_CTRL_EVAL;
|
class TEXT_CTRL_EVAL;
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
|
@ -76,7 +75,7 @@ class DIALOG_MOVE_EXACT_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_MOVE_EXACT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Move Item"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 509,277 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_MOVE_EXACT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Move Item"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_MOVE_EXACT_BASE();
|
~DIALOG_MOVE_EXACT_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
<property name="gripper">0</property>
|
<property name="gripper">0</property>
|
||||||
<property name="hidden">0</property>
|
<property name="hidden">0</property>
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Match components by:</property>
|
<property name="label">Match footprints by:</property>
|
||||||
<property name="max_size"></property>
|
<property name="max_size"></property>
|
||||||
<property name="maximize_button">0</property>
|
<property name="maximize_button">0</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Dec 21 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "wx_html_report_panel.h"
|
#include "wx_html_report_panel.h"
|
||||||
|
@ -23,7 +23,7 @@ DIALOG_UPDATE_PCB_BASE::DIALOG_UPDATE_PCB_BASE( wxWindow* parent, wxWindowID id,
|
||||||
fgSizer2->SetFlexibleDirection( wxBOTH );
|
fgSizer2->SetFlexibleDirection( wxBOTH );
|
||||||
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Match components by:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Match footprints by:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText1->Wrap( -1 );
|
m_staticText1->Wrap( -1 );
|
||||||
fgSizer2->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
fgSizer2->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Dec 21 2016)
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __DIALOG_UPDATE_PCB_BASE_H__
|
#ifndef __DIALOG_UPDATE_PCB_BASE_H__
|
||||||
|
@ -11,7 +11,6 @@
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class DIALOG_SHIM;
|
|
||||||
class WX_HTML_REPORT_PANEL;
|
class WX_HTML_REPORT_PANEL;
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
|
|
|
@ -117,7 +117,7 @@ COMPONENT* LEGACY_NETLIST_READER::loadComponent( char* aText )
|
||||||
// Read time stamp (first word)
|
// Read time stamp (first word)
|
||||||
if( ( text = strtok( line, " ()\t\n" ) ) == NULL )
|
if( ( text = strtok( line, " ()\t\n" ) ) == NULL )
|
||||||
{
|
{
|
||||||
msg = _( "Cannot parse time stamp in component section of netlist." );
|
msg = _( "Cannot parse time stamp in symbol section of netlist." );
|
||||||
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
||||||
m_lineReader->Length() );
|
m_lineReader->Length() );
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@ COMPONENT* LEGACY_NETLIST_READER::loadComponent( char* aText )
|
||||||
// Read footprint name (second word)
|
// Read footprint name (second word)
|
||||||
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
|
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
|
||||||
{
|
{
|
||||||
msg = _( "Cannot parse footprint name in component section of netlist." );
|
msg = _( "Cannot parse footprint name in symbol section of netlist." );
|
||||||
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), aText, m_lineReader->LineNumber(),
|
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), aText, m_lineReader->LineNumber(),
|
||||||
m_lineReader->Length() );
|
m_lineReader->Length() );
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ COMPONENT* LEGACY_NETLIST_READER::loadComponent( char* aText )
|
||||||
// Read schematic reference designator (third word)
|
// Read schematic reference designator (third word)
|
||||||
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
|
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
|
||||||
{
|
{
|
||||||
msg = _( "Cannot parse reference designator in component section of netlist." );
|
msg = _( "Cannot parse reference designator in symbol section of netlist." );
|
||||||
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), aText, m_lineReader->LineNumber(),
|
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), aText, m_lineReader->LineNumber(),
|
||||||
m_lineReader->Length() );
|
m_lineReader->Length() );
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ COMPONENT* LEGACY_NETLIST_READER::loadComponent( char* aText )
|
||||||
// Read schematic value (forth word)
|
// Read schematic value (forth word)
|
||||||
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
|
if( ( text = strtok( NULL, " ()\t\n" ) ) == NULL )
|
||||||
{
|
{
|
||||||
msg = _( "Cannot parse value in component section of netlist." );
|
msg = _( "Cannot parse value in symbol section of netlist." );
|
||||||
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), aText, m_lineReader->LineNumber(),
|
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), aText, m_lineReader->LineNumber(),
|
||||||
m_lineReader->Length() );
|
m_lineReader->Length() );
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ void LEGACY_NETLIST_READER::loadNet( char* aText, COMPONENT* aComponent )
|
||||||
|
|
||||||
if( ( p = strtok( line, " ()\t\n" ) ) == NULL )
|
if( ( p = strtok( line, " ()\t\n" ) ) == NULL )
|
||||||
{
|
{
|
||||||
msg = _( "Cannot parse pin name in component net section of netlist." );
|
msg = _( "Cannot parse pin name in symbol net section of netlist." );
|
||||||
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
||||||
m_lineReader->Length() );
|
m_lineReader->Length() );
|
||||||
}
|
}
|
||||||
|
@ -197,7 +197,7 @@ void LEGACY_NETLIST_READER::loadNet( char* aText, COMPONENT* aComponent )
|
||||||
|
|
||||||
if( ( p = strtok( NULL, " ()\t\n" ) ) == NULL )
|
if( ( p = strtok( NULL, " ()\t\n" ) ) == NULL )
|
||||||
{
|
{
|
||||||
msg = _( "Cannot parse net name in component net section of netlist." );
|
msg = _( "Cannot parse net name in symbol net section of netlist." );
|
||||||
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
||||||
m_lineReader->Length() );
|
m_lineReader->Length() );
|
||||||
}
|
}
|
||||||
|
@ -245,7 +245,7 @@ void LEGACY_NETLIST_READER::loadFootprintFilters()
|
||||||
if( component == NULL )
|
if( component == NULL )
|
||||||
{
|
{
|
||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf( _( "Cannot find component \"%s\" in footprint filter section "
|
msg.Printf( _( "Cannot find symbol \"%s\" in footprint filter section "
|
||||||
"of netlist." ), GetChars( cmpRef ) );
|
"of netlist." ), GetChars( cmpRef ) );
|
||||||
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(),
|
||||||
m_lineReader->Length() );
|
m_lineReader->Length() );
|
||||||
|
|
|
@ -838,7 +838,7 @@ void prepareExportMenu( wxMenu* aParentMenu )
|
||||||
KiBitmap( three_d_xpm ) );
|
KiBitmap( three_d_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_IDF3,
|
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_IDF3,
|
||||||
_( "I&DFv3" ), _( "IDFv3 board and component export" ),
|
_( "I&DFv3" ), _( "IDFv3 board and symbol export" ),
|
||||||
KiBitmap( export_idf_xpm ) );
|
KiBitmap( export_idf_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_STEP,
|
AddMenuItem( aParentMenu, ID_GEN_EXPORT_FILE_STEP,
|
||||||
|
@ -846,7 +846,7 @@ void prepareExportMenu( wxMenu* aParentMenu )
|
||||||
KiBitmap( export_idf_xpm ) );
|
KiBitmap( export_idf_xpm ) );
|
||||||
|
|
||||||
AddMenuItem( aParentMenu, ID_PCB_GEN_CMP_FILE,
|
AddMenuItem( aParentMenu, ID_PCB_GEN_CMP_FILE,
|
||||||
_( "&Component (.cmp) File" ),
|
_( "&Footprint Association (.cmp) File" ),
|
||||||
_( "Export component file (*.cmp) for Eeschema footprint field back-annotation" ),
|
_( "Export footprint association file (*.cmp) for schematic back annotation" ),
|
||||||
KiBitmap( create_cmp_file_xpm ) );
|
KiBitmap( create_cmp_file_xpm ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,7 +247,7 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
|
||||||
{
|
{
|
||||||
if( aReporter )
|
if( aReporter )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "No footprint defined for component \"%s\".\n" ),
|
msg.Printf( _( "No footprint defined for symbol \"%s\".\n" ),
|
||||||
GetChars( component->GetReference() ) );
|
GetChars( component->GetReference() ) );
|
||||||
aReporter->Report( msg, REPORTER::RPT_ERROR );
|
aReporter->Report( msg, REPORTER::RPT_ERROR );
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
|
||||||
{
|
{
|
||||||
if( aReporter )
|
if( aReporter )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Footprint of component \"%s\" changed: board footprint \"%s\", netlist footprint \"%s\"\n" ),
|
msg.Printf( _( "Footprint of symbol \"%s\" changed: board footprint \"%s\", netlist footprint \"%s\"\n" ),
|
||||||
GetChars( component->GetReference() ),
|
GetChars( component->GetReference() ),
|
||||||
GetChars( fpOnBoard->GetFPID().Format() ),
|
GetChars( fpOnBoard->GetFPID().Format() ),
|
||||||
GetChars( component->GetFPID().Format() ) );
|
GetChars( component->GetFPID().Format() ) );
|
||||||
|
|
|
@ -803,7 +803,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard )
|
||||||
|
|
||||||
if( module->GetReference() == wxEmptyString )
|
if( module->GetReference() == wxEmptyString )
|
||||||
{
|
{
|
||||||
THROW_IO_ERROR( wxString::Format( _( "Component with value of \"%s\" has empty reference id." ),
|
THROW_IO_ERROR( wxString::Format( _( "Symbol with value of \"%s\" has empty reference id." ),
|
||||||
GetChars( module->GetValue() ) ) );
|
GetChars( module->GetValue() ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,7 +811,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard )
|
||||||
STRINGSET_PAIR refpair = refs.insert( TO_UTF8( module->GetReference() ) );
|
STRINGSET_PAIR refpair = refs.insert( TO_UTF8( module->GetReference() ) );
|
||||||
if( !refpair.second ) // insert failed
|
if( !refpair.second ) // insert failed
|
||||||
{
|
{
|
||||||
THROW_IO_ERROR( wxString::Format( _( "Multiple components have identical reference IDs of \"%s\"." ),
|
THROW_IO_ERROR( wxString::Format( _( "Multiple symbols have identical reference IDs of \"%s\"." ),
|
||||||
GetChars( module->GetReference() ) ) );
|
GetChars( module->GetReference() ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -404,7 +404,7 @@ void SPECCTRA_DB::FromSESSION( BOARD* aBoard )
|
||||||
MODULE* module = aBoard->FindModuleByReference( reference );
|
MODULE* module = aBoard->FindModuleByReference( reference );
|
||||||
if( !module )
|
if( !module )
|
||||||
{
|
{
|
||||||
THROW_IO_ERROR( wxString::Format( _("Session file has 'reference' to non-existent component \"%s\""),
|
THROW_IO_ERROR( wxString::Format( _("Session file has 'reference' to non-existent symbol \"%s\""),
|
||||||
GetChars( reference ) ) );
|
GetChars( reference ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue