Loading eeschema/dialog_create_component.cpp +35 −35 Original line number Diff line number Diff line Loading @@ -96,12 +96,14 @@ bool WinEDA_CreateCmpDialog::Create( WinEDA_DrawFrame* parent, wxWindowID id, co ////@end WinEDA_CreateCmpDialog member initialisation ////@begin WinEDA_CreateCmpDialog creation SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS); SetExtraStyle(wxWS_EX_BLOCK_EVENTS); wxDialog::Create( parent, id, caption, pos, size, style ); CreateControls(); GetSizer()->Fit(this); if (GetSizer()) { GetSizer()->SetSizeHints(this); } Centre(); ////@end WinEDA_CreateCmpDialog creation return TRUE; Loading Loading @@ -141,8 +143,6 @@ void WinEDA_CreateCmpDialog::CreateControls() SetFont(*g_DialogFont); ////@begin WinEDA_CreateCmpDialog content construction // Generated by DialogBlocks, 30/05/2006 08:00:22 (unregistered) WinEDA_CreateCmpDialog* itemDialog1 = this; wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); Loading Loading @@ -207,35 +207,35 @@ void WinEDA_CreateCmpDialog::CreateControls() wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxHORIZONTAL); itemBoxSizer2->Add(itemBoxSizer19, 0, wxGROW|wxALL, 5); wxString m_PartsCountStrings[] = { _("&1"), _("&2"), _("&3"), _("&4"), _("&5"), _("&6"), _("&7"), _("&8"), _("&9"), _("&10"), _("&11"), _("&12"), _("&13"), _("&14"), _("&15"), _("&16"), _("&17"), _("&18"), _("&19"), _("&20"), _("&21"), _("&22"), _("&23"), _("&24"), _("&25"), _("&26") }; m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per package"), wxDefaultPosition, wxDefaultSize, 26, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); wxArrayString m_PartsCountStrings; m_PartsCountStrings.Add(_("&1")); m_PartsCountStrings.Add(_("&2")); m_PartsCountStrings.Add(_("&3")); m_PartsCountStrings.Add(_("&4")); m_PartsCountStrings.Add(_("&5")); m_PartsCountStrings.Add(_("&6")); m_PartsCountStrings.Add(_("&7")); m_PartsCountStrings.Add(_("&8")); m_PartsCountStrings.Add(_("&9")); m_PartsCountStrings.Add(_("&10")); m_PartsCountStrings.Add(_("&11")); m_PartsCountStrings.Add(_("&12")); m_PartsCountStrings.Add(_("&13")); m_PartsCountStrings.Add(_("&14")); m_PartsCountStrings.Add(_("&15")); m_PartsCountStrings.Add(_("&16")); m_PartsCountStrings.Add(_("&17")); m_PartsCountStrings.Add(_("&18")); m_PartsCountStrings.Add(_("&19")); m_PartsCountStrings.Add(_("&20")); m_PartsCountStrings.Add(_("&21")); m_PartsCountStrings.Add(_("&22")); m_PartsCountStrings.Add(_("&23")); m_PartsCountStrings.Add(_("&24")); m_PartsCountStrings.Add(_("&25")); m_PartsCountStrings.Add(_("&26")); m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per component"), wxDefaultPosition, wxDefaultSize, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); m_PartsCount->SetSelection(0); itemBoxSizer19->Add(m_PartsCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); itemBoxSizer19->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); Loading @@ -244,7 +244,7 @@ void WinEDA_CreateCmpDialog::CreateControls() wxStaticBoxSizer* itemStaticBoxSizer22 = new wxStaticBoxSizer(itemStaticBoxSizer22Static, wxVERTICAL); itemBoxSizer19->Add(itemStaticBoxSizer22, 0, wxGROW|wxALL, 5); m_ShowPinNum = new wxCheckBox( itemDialog1, ID_CHECKBOX1, _("Show Pin Num"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE ); m_ShowPinNum = new wxCheckBox( itemDialog1, ID_CHECKBOX1, _("Show Pin Number"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE ); m_ShowPinNum->SetValue(true); itemStaticBoxSizer22->Add(m_ShowPinNum, 0, wxALIGN_LEFT|wxALL, 5); Loading eeschema/dialog_create_component.h +5 −5 Original line number Diff line number Diff line Loading @@ -41,11 +41,6 @@ class wxSpinCtrl; ////@begin control identifiers #define ID_DIALOG 10000 #define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_CREATECMPDIALOG_TITLE _("Component Creation") #define SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_CREATECMPDIALOG_SIZE wxSize(400, 300) #define SYMBOL_WINEDA_CREATECMPDIALOG_POSITION wxDefaultPosition #define ID_TEXTCTRL1 10009 #define ID_TEXTCTRL 10008 #define ID_CHECKBOX3 10005 Loading @@ -56,6 +51,11 @@ class wxSpinCtrl; #define ID_CHECKBOX5 10007 #define ID_CHECKBOX 10001 #define ID_SPINCTRL 10010 #define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_CREATECMPDIALOG_TITLE _("Component Creation") #define SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_CREATECMPDIALOG_SIZE wxSize(400, 300) #define SYMBOL_WINEDA_CREATECMPDIALOG_POSITION wxDefaultPosition ////@end control identifiers /*! Loading eeschema/dialog_create_component.pjd +227 −19 File changed.Preview size limit exceeded, changes collapsed. Show changes eeschema/dialog_edit_component_in_lib.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,7 @@ void WinEDA_PartPropertiesFrame::CreateControls() m_PanelBasicBoxSizer->Add(itemBoxSizer7, 0, wxALIGN_LEFT|wxALL, 5); wxBoxSizer* itemBoxSizer8 = new wxBoxSizer(wxVERTICAL); itemBoxSizer7->Add(itemBoxSizer8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); wxStaticText* itemStaticText9 = new wxStaticText( m_PanelBasic, wxID_STATIC, _("Number of Units:"), wxDefaultPosition, wxDefaultSize, 0 ); wxStaticText* itemStaticText9 = new wxStaticText( m_PanelBasic, wxID_STATIC, _("Number of Parts:"), wxDefaultPosition, wxDefaultSize, 0 ); itemBoxSizer8->Add(itemStaticText9, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5); SelNumberOfUnits = new wxSpinCtrl( m_PanelBasic, ID_SPINCTRL1, _T("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 26, 0 ); Loading eeschema/lib_export.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ EDA_LibComponentStruct *LibEntry; int err = 1; mask = wxT("*") + g_LibExtBuffer; Name = EDA_FileSelector( _("Import part:"), Name = EDA_FileSelector( _("Import component:"), wxEmptyString, /* Chemin par defaut */ wxEmptyString, /* nom fichier par defaut */ g_LibExtBuffer, /* extension par defaut */ Loading Loading @@ -98,7 +98,7 @@ int err; mask = wxT("*") + g_LibExtBuffer; wxString def_path; if ( create_lib ) def_path = g_RealLibDirBuffer; Name = EDA_FileSelector( create_lib ? _("New Library") : _("Export part:"), Name = EDA_FileSelector( create_lib ? _("New Library") : _("Export component:"), def_path, /* Chemin par defaut */ Name, /* nom fichier par defaut */ g_LibExtBuffer, /* extension par defaut */ Loading Loading @@ -134,7 +134,7 @@ wxString msg; { msg = Name + _("0k"); DisplayInfo(this, _("Note: this new library will be available only if it is loaded by eeschema\nModify eeschema config if you want use it") ); _("Note: this new library will be available only if it is loaded by eeschema.\nModify eeschema config if you want use it.") ); } else msg = _("Error while create ") + Name; Affiche_Message(msg); Loading Loading
eeschema/dialog_create_component.cpp +35 −35 Original line number Diff line number Diff line Loading @@ -96,12 +96,14 @@ bool WinEDA_CreateCmpDialog::Create( WinEDA_DrawFrame* parent, wxWindowID id, co ////@end WinEDA_CreateCmpDialog member initialisation ////@begin WinEDA_CreateCmpDialog creation SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS); SetExtraStyle(wxWS_EX_BLOCK_EVENTS); wxDialog::Create( parent, id, caption, pos, size, style ); CreateControls(); GetSizer()->Fit(this); if (GetSizer()) { GetSizer()->SetSizeHints(this); } Centre(); ////@end WinEDA_CreateCmpDialog creation return TRUE; Loading Loading @@ -141,8 +143,6 @@ void WinEDA_CreateCmpDialog::CreateControls() SetFont(*g_DialogFont); ////@begin WinEDA_CreateCmpDialog content construction // Generated by DialogBlocks, 30/05/2006 08:00:22 (unregistered) WinEDA_CreateCmpDialog* itemDialog1 = this; wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); Loading Loading @@ -207,35 +207,35 @@ void WinEDA_CreateCmpDialog::CreateControls() wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxHORIZONTAL); itemBoxSizer2->Add(itemBoxSizer19, 0, wxGROW|wxALL, 5); wxString m_PartsCountStrings[] = { _("&1"), _("&2"), _("&3"), _("&4"), _("&5"), _("&6"), _("&7"), _("&8"), _("&9"), _("&10"), _("&11"), _("&12"), _("&13"), _("&14"), _("&15"), _("&16"), _("&17"), _("&18"), _("&19"), _("&20"), _("&21"), _("&22"), _("&23"), _("&24"), _("&25"), _("&26") }; m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per package"), wxDefaultPosition, wxDefaultSize, 26, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); wxArrayString m_PartsCountStrings; m_PartsCountStrings.Add(_("&1")); m_PartsCountStrings.Add(_("&2")); m_PartsCountStrings.Add(_("&3")); m_PartsCountStrings.Add(_("&4")); m_PartsCountStrings.Add(_("&5")); m_PartsCountStrings.Add(_("&6")); m_PartsCountStrings.Add(_("&7")); m_PartsCountStrings.Add(_("&8")); m_PartsCountStrings.Add(_("&9")); m_PartsCountStrings.Add(_("&10")); m_PartsCountStrings.Add(_("&11")); m_PartsCountStrings.Add(_("&12")); m_PartsCountStrings.Add(_("&13")); m_PartsCountStrings.Add(_("&14")); m_PartsCountStrings.Add(_("&15")); m_PartsCountStrings.Add(_("&16")); m_PartsCountStrings.Add(_("&17")); m_PartsCountStrings.Add(_("&18")); m_PartsCountStrings.Add(_("&19")); m_PartsCountStrings.Add(_("&20")); m_PartsCountStrings.Add(_("&21")); m_PartsCountStrings.Add(_("&22")); m_PartsCountStrings.Add(_("&23")); m_PartsCountStrings.Add(_("&24")); m_PartsCountStrings.Add(_("&25")); m_PartsCountStrings.Add(_("&26")); m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per component"), wxDefaultPosition, wxDefaultSize, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); m_PartsCount->SetSelection(0); itemBoxSizer19->Add(m_PartsCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); itemBoxSizer19->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); Loading @@ -244,7 +244,7 @@ void WinEDA_CreateCmpDialog::CreateControls() wxStaticBoxSizer* itemStaticBoxSizer22 = new wxStaticBoxSizer(itemStaticBoxSizer22Static, wxVERTICAL); itemBoxSizer19->Add(itemStaticBoxSizer22, 0, wxGROW|wxALL, 5); m_ShowPinNum = new wxCheckBox( itemDialog1, ID_CHECKBOX1, _("Show Pin Num"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE ); m_ShowPinNum = new wxCheckBox( itemDialog1, ID_CHECKBOX1, _("Show Pin Number"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE ); m_ShowPinNum->SetValue(true); itemStaticBoxSizer22->Add(m_ShowPinNum, 0, wxALIGN_LEFT|wxALL, 5); Loading
eeschema/dialog_create_component.h +5 −5 Original line number Diff line number Diff line Loading @@ -41,11 +41,6 @@ class wxSpinCtrl; ////@begin control identifiers #define ID_DIALOG 10000 #define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_CREATECMPDIALOG_TITLE _("Component Creation") #define SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_CREATECMPDIALOG_SIZE wxSize(400, 300) #define SYMBOL_WINEDA_CREATECMPDIALOG_POSITION wxDefaultPosition #define ID_TEXTCTRL1 10009 #define ID_TEXTCTRL 10008 #define ID_CHECKBOX3 10005 Loading @@ -56,6 +51,11 @@ class wxSpinCtrl; #define ID_CHECKBOX5 10007 #define ID_CHECKBOX 10001 #define ID_SPINCTRL 10010 #define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER #define SYMBOL_WINEDA_CREATECMPDIALOG_TITLE _("Component Creation") #define SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME ID_DIALOG #define SYMBOL_WINEDA_CREATECMPDIALOG_SIZE wxSize(400, 300) #define SYMBOL_WINEDA_CREATECMPDIALOG_POSITION wxDefaultPosition ////@end control identifiers /*! Loading
eeschema/dialog_create_component.pjd +227 −19 File changed.Preview size limit exceeded, changes collapsed. Show changes
eeschema/dialog_edit_component_in_lib.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -141,7 +141,7 @@ void WinEDA_PartPropertiesFrame::CreateControls() m_PanelBasicBoxSizer->Add(itemBoxSizer7, 0, wxALIGN_LEFT|wxALL, 5); wxBoxSizer* itemBoxSizer8 = new wxBoxSizer(wxVERTICAL); itemBoxSizer7->Add(itemBoxSizer8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); wxStaticText* itemStaticText9 = new wxStaticText( m_PanelBasic, wxID_STATIC, _("Number of Units:"), wxDefaultPosition, wxDefaultSize, 0 ); wxStaticText* itemStaticText9 = new wxStaticText( m_PanelBasic, wxID_STATIC, _("Number of Parts:"), wxDefaultPosition, wxDefaultSize, 0 ); itemBoxSizer8->Add(itemStaticText9, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP|wxADJUST_MINSIZE, 5); SelNumberOfUnits = new wxSpinCtrl( m_PanelBasic, ID_SPINCTRL1, _T("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 26, 0 ); Loading
eeschema/lib_export.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ EDA_LibComponentStruct *LibEntry; int err = 1; mask = wxT("*") + g_LibExtBuffer; Name = EDA_FileSelector( _("Import part:"), Name = EDA_FileSelector( _("Import component:"), wxEmptyString, /* Chemin par defaut */ wxEmptyString, /* nom fichier par defaut */ g_LibExtBuffer, /* extension par defaut */ Loading Loading @@ -98,7 +98,7 @@ int err; mask = wxT("*") + g_LibExtBuffer; wxString def_path; if ( create_lib ) def_path = g_RealLibDirBuffer; Name = EDA_FileSelector( create_lib ? _("New Library") : _("Export part:"), Name = EDA_FileSelector( create_lib ? _("New Library") : _("Export component:"), def_path, /* Chemin par defaut */ Name, /* nom fichier par defaut */ g_LibExtBuffer, /* extension par defaut */ Loading Loading @@ -134,7 +134,7 @@ wxString msg; { msg = Name + _("0k"); DisplayInfo(this, _("Note: this new library will be available only if it is loaded by eeschema\nModify eeschema config if you want use it") ); _("Note: this new library will be available only if it is loaded by eeschema.\nModify eeschema config if you want use it.") ); } else msg = _("Error while create ") + Name; Affiche_Message(msg); Loading