~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to eeschema/class_libentry.h

  • Committer: Maciej Suminski
  • Date: 2013-08-02 13:57:24 UTC
  • mfrom: (4024.1.238 kicad)
  • mto: This revision was merged to the branch mainline in revision 4221.
  • Revision ID: maciej.suminski@cern.ch-20130802135724-gix6orezshkukodv
Upstream merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
    LIB_ALIASES        m_aliases;        ///< List of alias object pointers associated with the
207
207
                                         ///< component.
208
208
    CMP_LIBRARY*       m_library;        ///< Library the component belongs to if any.
209
 
    static int         m_subpartIdSeparator;  ///< the separator char between
 
209
 
 
210
    static int  m_subpartIdSeparator;    ///< the separator char between
210
211
                                         ///< the subpart id and the reference
211
212
                                         ///< like U1A ( m_subpartIdSeparator = 0 ) or U1.A or U1-A
212
 
    static int         m_subpartFirstId; ///< the ascii char value to calculate the subpart symbol id
 
213
    static int  m_subpartFirstId;        ///< the ascii char value to calculate the subpart symbol id
213
214
                                         ///< from the part number: only 'A', 'a' or '1' can be used,
214
215
                                         ///< other values have no sense.
215
 
 
 
216
private:
216
217
    void deleteAllFields();
217
218
 
218
219
public:
659
660
 
660
661
    // Accessors to sub ref parameters
661
662
    static int GetSubpartIdSeparator() { return m_subpartIdSeparator; }
662
 
    static void SetSubpartIdSeparator( int aSep ) { m_subpartIdSeparator = aSep; }
 
663
 
 
664
    /** return a reference to m_subpartIdSeparator,
 
665
     * only for read/save setting functions
 
666
     */
 
667
    static int* SubpartIdSeparatorPtr() { return &m_subpartIdSeparator; }
 
668
 
663
669
    static int GetSubpartFirstId() { return m_subpartFirstId; }
664
 
    static void SetSubpartFirstId( int aFirstId ) { m_subpartFirstId = aFirstId; }
 
670
 
 
671
    /** return a reference to m_subpartFirstId, only for read/save setting functions
 
672
     */
 
673
    static int* SubpartFirstIdPtr() { return &m_subpartFirstId; }
 
674
 
 
675
    /** Set the separator char between the subpart id and the reference
 
676
     * 0 (no separator) or '.' , '-' and '_'
 
677
     * and the ascii char value to calculate the subpart symbol id from the part number:
 
678
     * 'A' or '1' only are allowed. (to print U1.A or U1.1)
 
679
     * if this is a digit, a number is used as id symbol
 
680
     * Note also if the subpart symbol is a digit, the separator cannot be null.
 
681
     * @param aSep = the separator symbol (0 (no separator) or '.' , '-' and '_')
 
682
     * @param aFirstId = the Id of the first part ('A' or '1')
 
683
     */
 
684
    static void SetSubpartIdNotation( int aSep, int aFirstId );
665
685
 
666
686
    /**
667
687
     * Set or clear the alternate body style (DeMorgan) for the component.