Commit f353c77c authored by dickelbeck's avatar dickelbeck
Browse files

more zone preps

parent 64e9e168
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ email address.
    design and was crashing.  Also, export_to_pcbnew.cpp now uses the simple
    BOARD::Save() function.  It was another place to maintain the PCB file format,
    rather than simply putting that knowledge into one place like BOARD::Save().
+ all
    beautified gr_basic.cpp and made CLIP_LINE macro a static inline function.


2007-Oct-30 UPDATE  Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
+0 −17
Original line number Diff line number Diff line
@@ -57,23 +57,6 @@ void EDA_BaseStruct::InitVars()
}


/* Gestion de l'etat (status) de la structure (active, deleted..) */
int EDA_BaseStruct::GetState( int type ) const
{
    return m_Status & type;
}


void EDA_BaseStruct::SetState( int type, int state )
{
    if( state )
        m_Status |= type;/* state = ON ou OFF */
    else
        m_Status &= ~type;
}



/***********************************************************/
void EDA_BaseStruct::DeleteStructList()
/***********************************************************/
+1009 −826

File changed.

Preview size limit exceeded, changes collapsed.

+13 −2
Original line number Diff line number Diff line
@@ -191,8 +191,19 @@ public:
    
    
    /* Gestion de l'etat (status) de la structure (active, deleted..) */
    int     GetState( int type ) const;
    void    SetState( int type, int state );
    
    int GetState( int type ) const
    {
        return m_Status & type;
    }

    void SetState( int type, int state )
    {
        if( state )
            m_Status |= type;   // state = ON or OFF
        else
            m_Status &= ~type;
    }

    int ReturnStatus() const {  return m_Status;  }

+11 −0
Original line number Diff line number Diff line
@@ -442,6 +442,17 @@ public:
    EDGE_ZONE( BOARD_ITEM* StructFather );
    EDGE_ZONE( const EDGE_ZONE& edgezone );
    ~EDGE_ZONE();

    EDGE_ZONE* Next() { return (EDGE_ZONE*) Pnext; }

    
    /**
     * Function Save
     * writes the data structures for this object out to a FILE in "*.pcb" format.
     * @param aFile The FILE to write to.
     * @return bool - true if success writing else false.
     */ 
    bool Save( FILE* aFile ) const;
};


Loading