Commit df487255 authored by Wayne Stambaugh's avatar Wayne Stambaugh
Browse files

Restore library editor value field rename behaviour and other minor fixes.

parent 6886e50d
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,19 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.


2010-dec-02 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
++EESchema
  * Move color configuration dialog to dialogs folder.
  * Simplify color configuration dialog design, remove enable grid checkbox( I
    think we have enough places to do this), and remove abbreviated labels.
  * Restore changing value field behavior to create new component from the
    current one and handle all of the potential library naming conflict issues.
  * Create a toolbar button perform the same function as renaming the value
    field for improved usability.
  * Add new copy component bitmap contributed by Jean-Pierre Charras.


2010-dec-02, UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
2010-dec-02, UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
================================================================================
Pcbnew:
Pcbnew:
@@ -24,6 +37,7 @@ Gerbview:
       On the other hand, Gerber doc is not clear about the meaning of A and B scale.
       On the other hand, Gerber doc is not clear about the meaning of A and B scale.
       (Alas! Gerber doc is not clear about most of advanced commands)
       (Alas! Gerber doc is not clear about most of advanced commands)



2010-nov-19 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
2010-nov-19 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
================================================================================
++EESchema
++EESchema
+1 −0
Original line number Original line Diff line number Diff line
@@ -64,6 +64,7 @@ set(BITMAP_SRCS
    component_select_alternate_shape.xpm
    component_select_alternate_shape.xpm
    config.xpm
    config.xpm
    CopyBlock.xpm
    CopyBlock.xpm
    copyComponent.xmp
    copy.xpm
    copy.xpm
    copper_layers_setup.cpp
    copper_layers_setup.cpp
    Cursor_Shape.xpm
    Cursor_Shape.xpm
+38 −0
Original line number Original line Diff line number Diff line
/* XPM */
const char *copyComponent_xpm[] = {
/* columns rows colors chars-per-pixel */
"16 16 16 1",
"& c #080685",
"; c #CE3338",
". c #098409",
"+ c #ABAAAA",
": c #D44751",
"* c #885684",
"$ c #9794D7",
"@ c #BFB7ED",
"- c #640650",
"  c None",
"= c #F80B0C",
"O c #ECECFC",
"# c #7F6CB6",
"% c #D3CFF7",
"o c #147A04",
"X c #4E9C54",
/* pixels */
"  .......X      ",
"  oOOOOO X.+    ",
"oo.OO@#$@%XX    ",
" +oOO$&&&$+.+   ",
"  oOO$&&&&@ooo+ ",
"  .O%%@$&&*.++++",
"  .%====-&-;+   ",
".oo@=O%@#&&*=+  ",
"++===O#&&&&&&:  ",
"   +=OO#&&&&#=++",
"  + =OO%#&&$@===",
"    =O%%%#$%#=++",
"   +=%O%%%@%;;+ ",
"  ===@@@@@$:=++ ",
"  ++=======;++  ",
"     ++++++++   "
};
+1 −1
Original line number Original line Diff line number Diff line
@@ -27,6 +27,7 @@ set(EESCHEMA_SRCS
    database.cpp
    database.cpp
    delete.cpp
    delete.cpp
    delsheet.cpp
    delsheet.cpp
    dialogs/dialog_color_config.cpp
    dialogs/dialog_plot_schematic_DXF.cpp
    dialogs/dialog_plot_schematic_DXF.cpp
    dialogs/dialog_plot_schematic_DXF_base.cpp
    dialogs/dialog_plot_schematic_DXF_base.cpp
    dialogs/dialog_plot_schematic_HPGL.cpp
    dialogs/dialog_plot_schematic_HPGL.cpp
@@ -73,7 +74,6 @@ set(EESCHEMA_SRCS
    dialogs/dialog_SVG_print_base.cpp
    dialogs/dialog_SVG_print_base.cpp
    edit_component_in_schematic.cpp
    edit_component_in_schematic.cpp
    edit_label.cpp
    edit_label.cpp
    eelayer.cpp
    eelibs_read_libraryfiles.cpp
    eelibs_read_libraryfiles.cpp
    eeredraw.cpp
    eeredraw.cpp
    eeschema.cpp
    eeschema.cpp
+18 −0
Original line number Original line Diff line number Diff line
@@ -1597,6 +1597,14 @@ LIB_ALIAS* LIB_COMPONENT::RemoveAlias( LIB_ALIAS* aAlias )
}
}




void LIB_COMPONENT::RemoveAllAliases()
{
    // Remove all of the aliases except the root alias.
    while( m_aliases.size() > 1 )
        m_aliases.pop_back();
}


LIB_ALIAS* LIB_COMPONENT::GetAlias( const wxString& aName )
LIB_ALIAS* LIB_COMPONENT::GetAlias( const wxString& aName )
{
{
    wxCHECK2_MSG( !aName.IsEmpty(), return NULL,
    wxCHECK2_MSG( !aName.IsEmpty(), return NULL,
@@ -1619,3 +1627,13 @@ LIB_ALIAS* LIB_COMPONENT::GetAlias( size_t aIndex )


    return m_aliases[aIndex];
    return m_aliases[aIndex];
}
}


void LIB_COMPONENT::AddAlias( const wxString& aName )
{
    wxCHECK_RET( !HasAlias( aName ),
                 wxT( "Component <" ) + GetName() + wxT( "> already has an alias <" ) +
                 aName + wxT( ">.  Bad programmer." ) );

    m_aliases.push_back( new LIB_ALIAS( aName, this ) );
}
Loading