Loading eeschema/dialog_create_component.cpp +35 −35 Original line number Original line 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 ////@end WinEDA_CreateCmpDialog member initialisation ////@begin WinEDA_CreateCmpDialog creation ////@begin WinEDA_CreateCmpDialog creation SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS); SetExtraStyle(wxWS_EX_BLOCK_EVENTS); wxDialog::Create( parent, id, caption, pos, size, style ); wxDialog::Create( parent, id, caption, pos, size, style ); CreateControls(); CreateControls(); GetSizer()->Fit(this); if (GetSizer()) { GetSizer()->SetSizeHints(this); GetSizer()->SetSizeHints(this); } Centre(); Centre(); ////@end WinEDA_CreateCmpDialog creation ////@end WinEDA_CreateCmpDialog creation return TRUE; return TRUE; Loading Loading @@ -141,8 +143,6 @@ void WinEDA_CreateCmpDialog::CreateControls() SetFont(*g_DialogFont); SetFont(*g_DialogFont); ////@begin WinEDA_CreateCmpDialog content construction ////@begin WinEDA_CreateCmpDialog content construction // Generated by DialogBlocks, 30/05/2006 08:00:22 (unregistered) WinEDA_CreateCmpDialog* itemDialog1 = this; WinEDA_CreateCmpDialog* itemDialog1 = this; wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); Loading Loading @@ -207,35 +207,35 @@ void WinEDA_CreateCmpDialog::CreateControls() wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxHORIZONTAL); wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxHORIZONTAL); itemBoxSizer2->Add(itemBoxSizer19, 0, wxGROW|wxALL, 5); itemBoxSizer2->Add(itemBoxSizer19, 0, wxGROW|wxALL, 5); wxString m_PartsCountStrings[] = { wxArrayString m_PartsCountStrings; _("&1"), m_PartsCountStrings.Add(_("&1")); _("&2"), m_PartsCountStrings.Add(_("&2")); _("&3"), m_PartsCountStrings.Add(_("&3")); _("&4"), m_PartsCountStrings.Add(_("&4")); _("&5"), m_PartsCountStrings.Add(_("&5")); _("&6"), m_PartsCountStrings.Add(_("&6")); _("&7"), m_PartsCountStrings.Add(_("&7")); _("&8"), m_PartsCountStrings.Add(_("&8")); _("&9"), m_PartsCountStrings.Add(_("&9")); _("&10"), m_PartsCountStrings.Add(_("&10")); _("&11"), m_PartsCountStrings.Add(_("&11")); _("&12"), m_PartsCountStrings.Add(_("&12")); _("&13"), m_PartsCountStrings.Add(_("&13")); _("&14"), m_PartsCountStrings.Add(_("&14")); _("&15"), m_PartsCountStrings.Add(_("&15")); _("&16"), m_PartsCountStrings.Add(_("&16")); _("&17"), m_PartsCountStrings.Add(_("&17")); _("&18"), m_PartsCountStrings.Add(_("&18")); _("&19"), m_PartsCountStrings.Add(_("&19")); _("&20"), m_PartsCountStrings.Add(_("&20")); _("&21"), m_PartsCountStrings.Add(_("&21")); _("&22"), m_PartsCountStrings.Add(_("&22")); _("&23"), m_PartsCountStrings.Add(_("&23")); _("&24"), m_PartsCountStrings.Add(_("&24")); _("&25"), m_PartsCountStrings.Add(_("&25")); _("&26") m_PartsCountStrings.Add(_("&26")); }; m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per component"), wxDefaultPosition, wxDefaultSize, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per package"), wxDefaultPosition, wxDefaultSize, 26, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); m_PartsCount->SetSelection(0); itemBoxSizer19->Add(m_PartsCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); itemBoxSizer19->Add(m_PartsCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); itemBoxSizer19->Add(5, 5, 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); wxStaticBoxSizer* itemStaticBoxSizer22 = new wxStaticBoxSizer(itemStaticBoxSizer22Static, wxVERTICAL); itemBoxSizer19->Add(itemStaticBoxSizer22, 0, wxGROW|wxALL, 5); 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); m_ShowPinNum->SetValue(true); itemStaticBoxSizer22->Add(m_ShowPinNum, 0, wxALIGN_LEFT|wxALL, 5); itemStaticBoxSizer22->Add(m_ShowPinNum, 0, wxALIGN_LEFT|wxALL, 5); Loading eeschema/dialog_create_component.h +5 −5 Original line number Original line Diff line number Diff line Loading @@ -41,11 +41,6 @@ class wxSpinCtrl; ////@begin control identifiers ////@begin control identifiers #define ID_DIALOG 10000 #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_TEXTCTRL1 10009 #define ID_TEXTCTRL 10008 #define ID_TEXTCTRL 10008 #define ID_CHECKBOX3 10005 #define ID_CHECKBOX3 10005 Loading @@ -56,6 +51,11 @@ class wxSpinCtrl; #define ID_CHECKBOX5 10007 #define ID_CHECKBOX5 10007 #define ID_CHECKBOX 10001 #define ID_CHECKBOX 10001 #define ID_SPINCTRL 10010 #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 ////@end control identifiers /*! /*! Loading Loading
eeschema/dialog_create_component.cpp +35 −35 Original line number Original line 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 ////@end WinEDA_CreateCmpDialog member initialisation ////@begin WinEDA_CreateCmpDialog creation ////@begin WinEDA_CreateCmpDialog creation SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS); SetExtraStyle(wxWS_EX_BLOCK_EVENTS); wxDialog::Create( parent, id, caption, pos, size, style ); wxDialog::Create( parent, id, caption, pos, size, style ); CreateControls(); CreateControls(); GetSizer()->Fit(this); if (GetSizer()) { GetSizer()->SetSizeHints(this); GetSizer()->SetSizeHints(this); } Centre(); Centre(); ////@end WinEDA_CreateCmpDialog creation ////@end WinEDA_CreateCmpDialog creation return TRUE; return TRUE; Loading Loading @@ -141,8 +143,6 @@ void WinEDA_CreateCmpDialog::CreateControls() SetFont(*g_DialogFont); SetFont(*g_DialogFont); ////@begin WinEDA_CreateCmpDialog content construction ////@begin WinEDA_CreateCmpDialog content construction // Generated by DialogBlocks, 30/05/2006 08:00:22 (unregistered) WinEDA_CreateCmpDialog* itemDialog1 = this; WinEDA_CreateCmpDialog* itemDialog1 = this; wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL); Loading Loading @@ -207,35 +207,35 @@ void WinEDA_CreateCmpDialog::CreateControls() wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxHORIZONTAL); wxBoxSizer* itemBoxSizer19 = new wxBoxSizer(wxHORIZONTAL); itemBoxSizer2->Add(itemBoxSizer19, 0, wxGROW|wxALL, 5); itemBoxSizer2->Add(itemBoxSizer19, 0, wxGROW|wxALL, 5); wxString m_PartsCountStrings[] = { wxArrayString m_PartsCountStrings; _("&1"), m_PartsCountStrings.Add(_("&1")); _("&2"), m_PartsCountStrings.Add(_("&2")); _("&3"), m_PartsCountStrings.Add(_("&3")); _("&4"), m_PartsCountStrings.Add(_("&4")); _("&5"), m_PartsCountStrings.Add(_("&5")); _("&6"), m_PartsCountStrings.Add(_("&6")); _("&7"), m_PartsCountStrings.Add(_("&7")); _("&8"), m_PartsCountStrings.Add(_("&8")); _("&9"), m_PartsCountStrings.Add(_("&9")); _("&10"), m_PartsCountStrings.Add(_("&10")); _("&11"), m_PartsCountStrings.Add(_("&11")); _("&12"), m_PartsCountStrings.Add(_("&12")); _("&13"), m_PartsCountStrings.Add(_("&13")); _("&14"), m_PartsCountStrings.Add(_("&14")); _("&15"), m_PartsCountStrings.Add(_("&15")); _("&16"), m_PartsCountStrings.Add(_("&16")); _("&17"), m_PartsCountStrings.Add(_("&17")); _("&18"), m_PartsCountStrings.Add(_("&18")); _("&19"), m_PartsCountStrings.Add(_("&19")); _("&20"), m_PartsCountStrings.Add(_("&20")); _("&21"), m_PartsCountStrings.Add(_("&21")); _("&22"), m_PartsCountStrings.Add(_("&22")); _("&23"), m_PartsCountStrings.Add(_("&23")); _("&24"), m_PartsCountStrings.Add(_("&24")); _("&25"), m_PartsCountStrings.Add(_("&25")); _("&26") m_PartsCountStrings.Add(_("&26")); }; m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per component"), wxDefaultPosition, wxDefaultSize, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); m_PartsCount = new wxRadioBox( itemDialog1, ID_RADIOBOX, _("Parts per package"), wxDefaultPosition, wxDefaultSize, 26, m_PartsCountStrings, 9, wxRA_SPECIFY_ROWS ); m_PartsCount->SetSelection(0); itemBoxSizer19->Add(m_PartsCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); itemBoxSizer19->Add(m_PartsCount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); itemBoxSizer19->Add(5, 5, 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); wxStaticBoxSizer* itemStaticBoxSizer22 = new wxStaticBoxSizer(itemStaticBoxSizer22Static, wxVERTICAL); itemBoxSizer19->Add(itemStaticBoxSizer22, 0, wxGROW|wxALL, 5); 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); m_ShowPinNum->SetValue(true); itemStaticBoxSizer22->Add(m_ShowPinNum, 0, wxALIGN_LEFT|wxALL, 5); itemStaticBoxSizer22->Add(m_ShowPinNum, 0, wxALIGN_LEFT|wxALL, 5); Loading
eeschema/dialog_create_component.h +5 −5 Original line number Original line Diff line number Diff line Loading @@ -41,11 +41,6 @@ class wxSpinCtrl; ////@begin control identifiers ////@begin control identifiers #define ID_DIALOG 10000 #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_TEXTCTRL1 10009 #define ID_TEXTCTRL 10008 #define ID_TEXTCTRL 10008 #define ID_CHECKBOX3 10005 #define ID_CHECKBOX3 10005 Loading @@ -56,6 +51,11 @@ class wxSpinCtrl; #define ID_CHECKBOX5 10007 #define ID_CHECKBOX5 10007 #define ID_CHECKBOX 10001 #define ID_CHECKBOX 10001 #define ID_SPINCTRL 10010 #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 ////@end control identifiers /*! /*! Loading