Commit cfdb2839 authored by charras's avatar charras
Browse files

Pcbnew: Work on undo/redo in Pcbnew almost finished.

parent 856b7c79
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -4,6 +4,11 @@ KiCad ChangeLog 2009
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.


2009-aug-23 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++pcbnew
    Work on undo/redo in pcbnew almost finished.

2009-Aug-16 UPDATE Dick Hollenbeck <dick@softplc.com>
2009-Aug-16 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
================================================================================
++pcbnew
++pcbnew
+1 −2
Original line number Original line Diff line number Diff line
@@ -479,12 +479,11 @@ public:
     *  The zone outline is a frontier, and can be complex (with holes)
     *  The zone outline is a frontier, and can be complex (with holes)
     *  The filling starts from starting points like pads, tracks.
     *  The filling starts from starting points like pads, tracks.
     * If exists the old filling is removed
     * If exists the old filling is removed
     * @param DC = current Device Context
     * @param zone_container = zone to fill
     * @param zone_container = zone to fill
     * @param verbose = true to show error messages
     * @param verbose = true to show error messages
     * @return error level (0 = no error)
     * @return error level (0 = no error)
     */
     */
    int              Fill_Zone( wxDC* DC, ZONE_CONTAINER* zone_container, bool verbose = TRUE );
    int              Fill_Zone( ZONE_CONTAINER* zone_container, bool verbose = TRUE );


    /** Function Fill_All_Zones()
    /** Function Fill_All_Zones()
     *  Fill all zones on the board
     *  Fill all zones on the board
+2 −0
Original line number Original line Diff line number Diff line
@@ -149,8 +149,10 @@ set(PCBNEW_SRCS
    work.cpp
    work.cpp
    xchgmod.cpp
    xchgmod.cpp
    zones_by_polygon.cpp
    zones_by_polygon.cpp
    zones_by_polygon_fill_functions.cpp
    zones_convert_brd_items_to_polygons.cpp
    zones_convert_brd_items_to_polygons.cpp
    zone_filling_algorithm.cpp
    zone_filling_algorithm.cpp
    zones_functions_for_undo_redo.cpp
    zones_polygons_insulated_copper_islands.cpp
    zones_polygons_insulated_copper_islands.cpp
    zones_polygons_test_connections.cpp
    zones_polygons_test_connections.cpp
    zones_test_and_combine_areas.cpp
    zones_test_and_combine_areas.cpp
+2 −1
Original line number Original line Diff line number Diff line
@@ -424,7 +424,8 @@ void WinEDA_PcbFrame::SaveCopyInUndoList( PICKED_ITEMS_LIST& aItemsList,
             */
             */
            if( commandToUndo->GetPickedItemLink( ii ) == NULL )
            if( commandToUndo->GetPickedItemLink( ii ) == NULL )
                commandToUndo->SetPickedItemLink( DuplicateStruct( item ), ii );
                commandToUndo->SetPickedItemLink( DuplicateStruct( item ), ii );
            wxASSERT( commandToUndo->GetPickedItemLink( ii ) );
            if( commandToUndo->GetPickedItemLink( ii ) == NULL )
                 wxMessageBox( wxT( "SaveCopyInUndoList() in UR_CHANGED mode: NULL link" ) );
            break;
            break;


        case UR_MOVED:
        case UR_MOVED:
+8 −1
Original line number Original line Diff line number Diff line
@@ -252,7 +252,14 @@ void BOARD::Add( BOARD_ITEM* aBoardItem, int aControl )


    // other types may use linked list
    // other types may use linked list
    default:
    default:
        wxFAIL_MSG( wxT( "BOARD::Add() needs work: BOARD_ITEM type not handled" ) );
    {
        wxString msg;
        msg.Printf(
            wxT( "BOARD::Add() needs work: BOARD_ITEM type (%d) not handled" ),
            aBoardItem->Type() );
        wxFAIL_MSG(msg );
    }
        break;
    }
    }
}
}


Loading