Commit 2edabd55 authored by dickelbeck's avatar dickelbeck
Browse files

moved enum Track_Shapes to board_item_struct.h

parent 7f3cd757
Loading
Loading
Loading
Loading
+21 −0
Original line number Original line Diff line number Diff line
@@ -6,6 +6,20 @@
#define BOARD_ITEM_STRUCT_H
#define BOARD_ITEM_STRUCT_H




/* Forme des segments (pistes, contours ..) ( parametre .shape ) */
enum Track_Shapes {
    S_SEGMENT = 0,      /* segment rectiligne */
    S_RECT,             /* segment forme rect (i.e. bouts non arrondis) */
    S_ARC,              /* segment en arc de cercle (bouts arrondis)*/
    S_CIRCLE,           /* segment en cercle (anneau)*/
    S_ARC_RECT,         /* segment en arc de cercle (bouts droits) (GERBER)*/
    S_SPOT_OVALE,       /* spot ovale (for GERBER)*/
    S_SPOT_CIRCLE,      /* spot rond (for GERBER)*/
    S_SPOT_RECT,        /* spot rect (for GERBER)*/
    S_POLYGON           /* polygon shape */
};


/**
/**
 * Class BOARD_ITEM
 * Class BOARD_ITEM
 * is a base class for any item which can be embedded within the BOARD
 * is a base class for any item which can be embedded within the BOARD
@@ -135,6 +149,13 @@ public:
    const char**    MenuIcon() const;
    const char**    MenuIcon() const;




    /**
     * Function ShowShape
     * converts the enum Track_Shapes integer value to a wxString.
     */
    static wxString ShowShape( Track_Shapes aShape );


    /**
    /**
     * Function Save
     * Function Save
     * writes the data structures for this object out to a FILE in "*.brd" format.
     * writes the data structures for this object out to a FILE in "*.brd" format.