Initial release of pl_editor, the page layout and title block editor.

This commit is contained in:
jean-pierre charras
2013-07-19 20:27:22 +02:00
parent ba16d9e763
commit 50743cf3ba
123 changed files with 24073 additions and 2006 deletions
+22
View File
@@ -1710,3 +1710,25 @@ void LIB_COMPONENT::AddAlias( const wxString& aName )
m_aliases.push_back( new LIB_ALIAS( aName, this ) );
}
/** Set the separator char between the subpart id and the reference
* 0 (no separator) or '.' , '-' and '_'
* and the ascii char value to calculate the subpart symbol id from the part number:
* 'A' or '1' only are allowed. (to print U1.A or U1.1)
* if this is a digit, a number is used as id symbol
* Note also if the subpart symbol is a digit, the separator cannot be null.
* @param aSep = the separator symbol (0 (no separator) or '.' , '-' and '_')
* @param aFirstId = the Id of the first part ('A' or '1')
*/
void LIB_COMPONENT::SetSubpartIdNotation( int aSep, int aFirstId )
{
m_subpartFirstId = 'A';
m_subpartIdSeparator = 0;
if( aSep == '.' || aSep == '-' || aSep == '_' )
m_subpartIdSeparator = aSep;
if( aFirstId == '1' && aSep != 0 )
m_subpartFirstId = aFirstId;
}