kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #02287
Bad patch
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Dick Hollenbeck <dick@...>
-
Date:
Mon, 23 Mar 2009 14:26:04 -0500
-
Scanners:
none
-
User-agent:
Thunderbird 2.0.0.19 (X11/20090105)
Jean-Pierre,
There are some problems with your latest auto generate of the file
eeschema/dialog_edit_component_in_schematic_fbp.cpp.
Somehow in wxformbuilder you must have accidentally selected some radio
buttons, and now the defaults are wrong. Most of the radio buttons come
up with wrong initial selections.
Dick
Index: eeschema/dialog_edit_component_in_schematic_fbp.cpp
===================================================================
--- eeschema/dialog_edit_component_in_schematic_fbp.cpp (revision 1661)
+++ eeschema/dialog_edit_component_in_schematic_fbp.cpp (working copy)
@@ -39,7 +39,7 @@
wxString orientationRadioBoxChoices[] = { _("0"), _("+90"),
_("180"), _("-90") };
int orientationRadioBoxNChoices = sizeof(
orientationRadioBoxChoices ) / sizeof( wxString );
orientationRadioBox = new wxRadioBox( this, wxID_ANY,
_("Orientation (Degrees)"), wxDefaultPosition, wxDefaultSize,
orientationRadioBoxNChoices, orientationRadioBoxChoices, 1,
wxRA_SPECIFY_COLS );
- orientationRadioBox->SetSelection( 0 );
+ orientationRadioBox->SetSelection( 3 );
orientationRadioBox->SetToolTip( _("Select if the component is to
be rotated when drawn") );
orientationSizer->Add( orientationRadioBox, 1, wxALL, 8 );
@@ -52,7 +52,7 @@
wxString mirrorRadioBoxChoices[] = { _("Normal"), _("Mirror ---"),
_("Mirror |") };
int mirrorRadioBoxNChoices = sizeof( mirrorRadioBoxChoices ) /
sizeof( wxString );
mirrorRadioBox = new wxRadioBox( this, wxID_ANY, _("Mirror"),
wxDefaultPosition, wxDefaultSize, mirrorRadioBoxNChoices,
mirrorRadioBoxChoices, 1, wxRA_SPECIFY_COLS );
- mirrorRadioBox->SetSelection( 0 );
+ mirrorRadioBox->SetSelection( 2 );
mirrorRadioBox->SetToolTip( _("Pick the graphical transformation to
be used when displaying the component, if any") );
mirrorSizer->Add( mirrorRadioBox, 1, wxALL, 8 );
@@ -134,7 +134,7 @@
wxString m_StyleRadioBoxChoices[] = { _("Normal"), _("Italic"),
_("Bold"), _("Bold Italic") };
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->SetSelection( 0 );
+ m_StyleRadioBox->SetSelection( 3 );
m_StyleRadioBox->SetToolTip( _("The style of the currently selected
field's text in the schemati") );
visibilitySizer->Add( m_StyleRadioBox, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
@@ -149,7 +149,7 @@
fieldNameBoxSizer->Add( fieldNameLabel, 0, 0, 5 );
fieldNameTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString,
wxDefaultPosition, wxDefaultSize, 0 );
- fieldNameTextCtrl->SetToolTip( _("The text (or value) of the
currently selected field") );
+ fieldNameTextCtrl->SetToolTip( _("The name of the currently
selected field\nSome fixed fields names are not editable") );
fieldNameBoxSizer->Add( fieldNameTextCtrl, 0, wxEXPAND, 5 );
@@ -220,6 +220,8 @@
fieldEditBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
defaultsButton = new wxButton( this, wxID_ANY, _("Reset to Library
Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
+ defaultsButton->SetToolTip( _("Set position and style of fields and
component orientation to default lib value.\nFields texts are not
modified.") );
+
fieldEditBoxSizer->Add( defaultsButton, 0, wxALL|wxEXPAND, 5 );
Follow ups