Rename UUID to KUUID to fix MSVC build
Also add another newly-required boost flag
This commit is contained in:
parent
affdaa8c33
commit
e8e3b4f11e
|
@ -408,6 +408,8 @@ endif( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
|||
if( MSVC )
|
||||
# Disallow implicit linking for Boost
|
||||
add_definitions( -DBOOST_ALL_NO_LIB )
|
||||
# But allow it for the UUID so that it will link against bcrypt
|
||||
add_definitions( -DBOOST_UUID_FORCE_AUTO_LINK )
|
||||
# Disable MSVC's deprecation warnings
|
||||
add_definitions( -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS )
|
||||
# Hide Windows's min() and max() macros
|
||||
|
|
|
@ -51,10 +51,10 @@ static boost::uuids::string_generator stringGenerator;
|
|||
static boost::uuids::nil_generator nilGenerator;
|
||||
|
||||
// Global nil reference
|
||||
UUID niluuid( 0 );
|
||||
KUUID niluuid( 0 );
|
||||
|
||||
|
||||
UUID::UUID() :
|
||||
KUUID::KUUID() :
|
||||
m_uuid( randomGenerator() ),
|
||||
m_cached_timestamp( 0 )
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ UUID::UUID() :
|
|||
}
|
||||
|
||||
|
||||
UUID::UUID( int null ) :
|
||||
KUUID::KUUID( int null ) :
|
||||
m_uuid( nilGenerator() ),
|
||||
m_cached_timestamp( 0 )
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ UUID::UUID( int null ) :
|
|||
}
|
||||
|
||||
|
||||
UUID::UUID( const wxString& aString ) :
|
||||
KUUID::KUUID( const wxString& aString ) :
|
||||
m_uuid(),
|
||||
m_cached_timestamp( 0 )
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ UUID::UUID( const wxString& aString ) :
|
|||
}
|
||||
|
||||
|
||||
UUID::UUID( timestamp_t aTimestamp )
|
||||
KUUID::KUUID( timestamp_t aTimestamp )
|
||||
{
|
||||
m_cached_timestamp = aTimestamp;
|
||||
|
||||
|
@ -134,19 +134,19 @@ UUID::UUID( timestamp_t aTimestamp )
|
|||
}
|
||||
|
||||
|
||||
bool UUID::IsLegacyTimestamp() const
|
||||
bool KUUID::IsLegacyTimestamp() const
|
||||
{
|
||||
return !m_uuid.data[8] && !m_uuid.data[9] && !m_uuid.data[10] && !m_uuid.data[11];
|
||||
}
|
||||
|
||||
|
||||
timestamp_t UUID::AsLegacyTimestamp() const
|
||||
timestamp_t KUUID::AsLegacyTimestamp() const
|
||||
{
|
||||
return m_cached_timestamp;
|
||||
}
|
||||
|
||||
|
||||
size_t UUID::Hash() const
|
||||
size_t KUUID::Hash() const
|
||||
{
|
||||
size_t hash = 0;
|
||||
|
||||
|
@ -160,20 +160,20 @@ size_t UUID::Hash() const
|
|||
}
|
||||
|
||||
|
||||
void UUID::Clone( const UUID& aUUID )
|
||||
void KUUID::Clone( const KUUID& aUUID )
|
||||
{
|
||||
m_uuid = aUUID.m_uuid;
|
||||
m_cached_timestamp = aUUID.m_cached_timestamp;
|
||||
}
|
||||
|
||||
|
||||
wxString UUID::AsString() const
|
||||
wxString KUUID::AsString() const
|
||||
{
|
||||
return boost::uuids::to_string( m_uuid );
|
||||
}
|
||||
|
||||
|
||||
wxString UUID::AsLegacyTimestampString() const
|
||||
wxString KUUID::AsLegacyTimestampString() const
|
||||
{
|
||||
return wxString::Format( "%8.8lX", (unsigned long) AsLegacyTimestamp() );
|
||||
}
|
||||
|
|
|
@ -168,7 +168,7 @@ const wxString PROJECT::libTableName( const wxString& aLibTableName ) const
|
|||
}
|
||||
|
||||
|
||||
const wxString PROJECT::GetSheetName( const UUID& aSheetID )
|
||||
const wxString PROJECT::GetSheetName( const KUUID& aSheetID )
|
||||
{
|
||||
if( m_sheetNames.empty() )
|
||||
{
|
||||
|
@ -184,7 +184,7 @@ const wxString PROJECT::GetSheetName( const UUID& aSheetID )
|
|||
wxArrayString tokens = wxSplit( entry, ':' );
|
||||
|
||||
if( tokens.size() == 2 )
|
||||
m_sheetNames[ UUID( tokens[0] ) ] = tokens[1];
|
||||
m_sheetNames[ KUUID( tokens[0] ) ] = tokens[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <class_library.h>
|
||||
|
||||
|
||||
void mapExistingAnnotation( std::map<UUID, wxString>& aMap )
|
||||
void mapExistingAnnotation( std::map<KUUID, wxString>& aMap )
|
||||
{
|
||||
SCH_SHEET_LIST sheets( g_RootSheet );
|
||||
SCH_REFERENCE_LIST references;
|
||||
|
@ -94,7 +94,7 @@ void SCH_EDIT_FRAME::AnnotateComponents( bool aAnnotateSchematic,
|
|||
SCH_MULTI_UNIT_REFERENCE_MAP lockedComponents;
|
||||
|
||||
// Map of previous annotation for building info messages
|
||||
std::map<UUID, wxString> previousAnnotation;
|
||||
std::map<KUUID, wxString> previousAnnotation;
|
||||
|
||||
// Test for and replace duplicate time stamps in components and sheets. Duplicate
|
||||
// time stamps can happen with old schematics, schematic conversions, or manual
|
||||
|
|
|
@ -184,7 +184,7 @@ protected:
|
|||
|
||||
// Data store
|
||||
// A map of compID : fieldSet, where fieldSet is a map of fieldName : fieldValue
|
||||
std::map< UUID, std::map<wxString, wxString> > m_dataStore;
|
||||
std::map< KUUID, std::map<wxString, wxString> > m_dataStore;
|
||||
|
||||
|
||||
public:
|
||||
|
@ -269,7 +269,7 @@ public:
|
|||
}
|
||||
else // Other columns are either a single value or ROW_MULTI_ITEMS
|
||||
{
|
||||
const UUID& compID = ref.GetComp()->m_Uuid;
|
||||
const KUUID& compID = ref.GetComp()->m_Uuid;
|
||||
|
||||
if( !m_dataStore.count( compID ) ||
|
||||
!m_dataStore[ compID ].count( m_fieldNames[ aCol ] ) )
|
||||
|
@ -418,8 +418,8 @@ public:
|
|||
matchFound = true;
|
||||
}
|
||||
|
||||
const UUID& lhRefID = lhRef.GetComp()->m_Uuid;
|
||||
const UUID& rhRefID = rhRef.GetComp()->m_Uuid;
|
||||
const KUUID& lhRefID = lhRef.GetComp()->m_Uuid;
|
||||
const KUUID& rhRefID = rhRef.GetComp()->m_Uuid;
|
||||
|
||||
// Now check all the other columns. This must be done out of the dataStore
|
||||
// for the refresh button to work after editing.
|
||||
|
@ -647,7 +647,7 @@ public:
|
|||
|
||||
for( unsigned compRef = 0; compRef < m_componentRefs.GetCount(); ++ compRef )
|
||||
{
|
||||
const UUID& compId = m_componentRefs[ compRef ].GetComp()->m_Uuid;
|
||||
const KUUID& compId = m_componentRefs[ compRef ].GetComp()->m_Uuid;
|
||||
wxString text = m_dataStore[ compId ][ column_label ];
|
||||
width = std::max( width, GetTextSize( text, GetView() ).x );
|
||||
}
|
||||
|
|
|
@ -179,7 +179,7 @@ SCH_COMPONENT::SCH_COMPONENT( const SCH_COMPONENT& aComponent ) :
|
|||
if( aComponent.m_part )
|
||||
m_part.reset( new LIB_PART( *aComponent.m_part.get() ) );
|
||||
|
||||
const_cast<UUID&>( m_Uuid ) = aComponent.m_Uuid;
|
||||
const_cast<KUUID&>( m_Uuid ) = aComponent.m_Uuid;
|
||||
|
||||
m_transform = aComponent.m_transform;
|
||||
m_prefix = aComponent.m_prefix;
|
||||
|
|
|
@ -77,7 +77,7 @@ SCH_ITEM* SCH_ITEM::Duplicate( bool doClone ) const
|
|||
SCH_ITEM* newItem = (SCH_ITEM*) Clone();
|
||||
|
||||
if( !doClone )
|
||||
const_cast<UUID&>( newItem->m_Uuid ) = UUID();
|
||||
const_cast<KUUID&>( newItem->m_Uuid ) = KUUID();
|
||||
|
||||
newItem->ClearFlags( SELECTED | HIGHLIGHTED | BRIGHTENED );
|
||||
|
||||
|
|
|
@ -984,7 +984,7 @@ SCH_SHEET* SCH_LEGACY_PLUGIN::loadSheet( LINE_READER& aReader )
|
|||
{
|
||||
wxString text;
|
||||
parseUnquotedString( text, aReader, line );
|
||||
const_cast<UUID&>( sheet->m_Uuid ) = UUID( text );
|
||||
const_cast<KUUID&>( sheet->m_Uuid ) = KUUID( text );
|
||||
}
|
||||
else if( *line == 'F' ) // Sheet field.
|
||||
{
|
||||
|
@ -1564,7 +1564,7 @@ SCH_COMPONENT* SCH_LEGACY_PLUGIN::loadComponent( LINE_READER& aReader )
|
|||
|
||||
wxString text;
|
||||
parseUnquotedString( text, aReader, line, &line );
|
||||
const_cast<UUID&>( component->m_Uuid ) = UUID( text );
|
||||
const_cast<KUUID&>( component->m_Uuid ) = KUUID( text );
|
||||
}
|
||||
else if( strCompare( "P", line, &line ) )
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ class SCH_REFERENCE
|
|||
SCH_SHEET_PATH m_SheetPath; ///< The sheet path for this reference.
|
||||
bool m_IsNew; ///< True if not yet annotated.
|
||||
int m_SheetNum; ///< The sheet number for the reference.
|
||||
UUID m_Uuid; ///< UUID of the component.
|
||||
KUUID m_Uuid; ///< UUID of the component.
|
||||
EDA_TEXT* m_Value; ///< The component value of the reference. It is the
|
||||
///< same for all instances.
|
||||
int m_NumRef; ///< The numeric part of the reference designator.
|
||||
|
|
|
@ -1086,7 +1086,7 @@ int SCH_SCREENS::ReplaceDuplicateTimeStamps()
|
|||
// Reset to fully random UUID. This may lose reference, but better to be
|
||||
// deterministic about it rather than to have duplicate UUIDs with random
|
||||
// side-effects.
|
||||
const_cast<UUID&>( item->m_Uuid ) = UUID();
|
||||
const_cast<KUUID&>( item->m_Uuid ) = KUUID();
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ SCH_SHEET::SCH_SHEET( const SCH_SHEET& aSheet ) :
|
|||
m_pos = aSheet.m_pos;
|
||||
m_size = aSheet.m_size;
|
||||
m_Layer = aSheet.m_Layer;
|
||||
const_cast<UUID&>( m_Uuid ) = aSheet.m_Uuid;
|
||||
const_cast<KUUID&>( m_Uuid ) = aSheet.m_Uuid;
|
||||
m_showSheetName = aSheet.m_showSheetName;
|
||||
m_sheetNameSize = aSheet.m_sheetNameSize;
|
||||
m_showFileName = aSheet.m_showFileName;
|
||||
|
|
|
@ -1055,7 +1055,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
|
|||
|
||||
if( dropAnnotations )
|
||||
{
|
||||
const_cast<UUID&>( component->m_Uuid ) = UUID();
|
||||
const_cast<KUUID&>( component->m_Uuid ) = KUUID();
|
||||
|
||||
// clear the annotation, but preserve the selected unit
|
||||
int unit = component->GetUnit();
|
||||
|
@ -1069,7 +1069,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
|
|||
else
|
||||
{
|
||||
// Everything else gets a new UUID
|
||||
const_cast<UUID&>( item->m_Uuid ) = UUID();
|
||||
const_cast<KUUID&>( item->m_Uuid ) = KUUID();
|
||||
}
|
||||
|
||||
if( item->Type() == SCH_SHEET_T )
|
||||
|
|
|
@ -163,7 +163,7 @@ typedef unsigned STATUS_FLAGS;
|
|||
class EDA_ITEM : public KIGFX::VIEW_ITEM
|
||||
{
|
||||
public:
|
||||
const UUID m_Uuid;
|
||||
const KUUID m_Uuid;
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ public:
|
|||
BOARD_ITEM* Duplicate() const
|
||||
{
|
||||
EDA_ITEM* dupe = Clone();
|
||||
const_cast<UUID&>( dupe->m_Uuid ) = UUID();
|
||||
const_cast<KUUID&>( dupe->m_Uuid ) = KUUID();
|
||||
|
||||
return static_cast<BOARD_ITEM*>( dupe );
|
||||
}
|
||||
|
|
|
@ -62,15 +62,15 @@ class REPORTER;
|
|||
*/
|
||||
typedef uint32_t timestamp_t;
|
||||
|
||||
class UUID
|
||||
class KUUID
|
||||
{
|
||||
public:
|
||||
UUID();
|
||||
UUID( int null );
|
||||
UUID( const wxString& aString );
|
||||
UUID( timestamp_t aTimestamp );
|
||||
KUUID();
|
||||
KUUID( int null );
|
||||
KUUID( const wxString& aString );
|
||||
KUUID( timestamp_t aTimestamp );
|
||||
|
||||
void Clone( const UUID& aUUID );
|
||||
void Clone( const KUUID& aUUID );
|
||||
|
||||
size_t Hash() const;
|
||||
|
||||
|
@ -80,17 +80,17 @@ public:
|
|||
wxString AsString() const;
|
||||
wxString AsLegacyTimestampString() const;
|
||||
|
||||
bool operator==( UUID const& rhs) const
|
||||
bool operator==( KUUID const& rhs) const
|
||||
{
|
||||
return m_uuid == rhs.m_uuid;
|
||||
}
|
||||
|
||||
bool operator!=( UUID const& rhs) const
|
||||
bool operator!=( KUUID const& rhs) const
|
||||
{
|
||||
return m_uuid != rhs.m_uuid;
|
||||
}
|
||||
|
||||
bool operator<( UUID const& rhs) const
|
||||
bool operator<( KUUID const& rhs) const
|
||||
{
|
||||
return m_uuid < rhs.m_uuid;
|
||||
}
|
||||
|
@ -102,10 +102,10 @@ private:
|
|||
};
|
||||
|
||||
|
||||
extern UUID niluuid;
|
||||
extern KUUID niluuid;
|
||||
|
||||
|
||||
class UUID_PATH : public std::vector<UUID>
|
||||
class UUID_PATH : public std::vector<KUUID>
|
||||
{
|
||||
public:
|
||||
UUID_PATH()
|
||||
|
@ -116,7 +116,7 @@ public:
|
|||
for( const wxString& pathStep : wxSplit( aString, '/' ) )
|
||||
{
|
||||
if( !pathStep.empty() )
|
||||
emplace_back( UUID( pathStep ) );
|
||||
emplace_back( KUUID( pathStep ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ public:
|
|||
{
|
||||
wxString path;
|
||||
|
||||
for( const UUID& pathStep : *this )
|
||||
for( const KUUID& pathStep : *this )
|
||||
path += '/' + pathStep.AsString();
|
||||
|
||||
return path;
|
||||
|
|
|
@ -115,7 +115,7 @@ public:
|
|||
/**
|
||||
* Return the name of the sheet identified by the given UUID.
|
||||
*/
|
||||
VTBL_ENTRY const wxString GetSheetName( const UUID& aSheetID );
|
||||
VTBL_ENTRY const wxString GetSheetName( const KUUID& aSheetID );
|
||||
|
||||
/**
|
||||
* Function FootprintLibTblName
|
||||
|
@ -337,7 +337,7 @@ private:
|
|||
wxFileName m_project_name; ///< \<fullpath\>/\<basename\>.pro
|
||||
wxString m_pro_date_and_time;
|
||||
|
||||
std::map<UUID, wxString> m_sheetNames;
|
||||
std::map<KUUID, wxString> m_sheetNames;
|
||||
|
||||
/// @see this::SetRString(), GetRString(), and enum RSTRING_T.
|
||||
wxString m_rstrings[RSTRING_COUNT];
|
||||
|
|
|
@ -546,8 +546,8 @@ public:
|
|||
|
||||
double GetArea( int aPadding = 0 ) const;
|
||||
|
||||
UUID GetLink() const { return m_Link; }
|
||||
void SetLink( const UUID& aLink ) { m_Link = aLink; }
|
||||
KUUID GetLink() const { return m_Link; }
|
||||
void SetLink( const KUUID& aLink ) { m_Link = aLink; }
|
||||
|
||||
int GetPlacementCost180() const { return m_CntRot180; }
|
||||
void SetPlacementCost180( int aCost ) { m_CntRot180 = aCost; }
|
||||
|
@ -708,7 +708,7 @@ private:
|
|||
UUID_PATH m_Path; // Path to associated symbol ([sheetUUID, .., symbolUUID]).
|
||||
timestamp_t m_LastEditTime;
|
||||
int m_arflag; // Use to trace ratsnest and auto routing.
|
||||
UUID m_Link; // Temporary logical link used during editing
|
||||
KUUID m_Link; // Temporary logical link used during editing
|
||||
int m_CntRot90; // Horizontal automatic placement cost ( 0..10 ).
|
||||
int m_CntRot180; // Vertical automatic placement cost ( 0..10 ).
|
||||
|
||||
|
|
|
@ -488,7 +488,7 @@ void PCB_EDIT_FRAME::Exchange_Module( MODULE* aSrc, MODULE* aDest, BOARD_COMMIT&
|
|||
aDest->Models() = aSrc->Models(); // Linked list of 3D models.
|
||||
|
||||
// Updating other parameters
|
||||
const_cast<UUID&>( aDest->m_Uuid ) = aSrc->m_Uuid;
|
||||
const_cast<KUUID&>( aDest->m_Uuid ) = aSrc->m_Uuid;
|
||||
aDest->SetPath( aSrc->GetPath() );
|
||||
aDest->CalculateBoundingBox();
|
||||
|
||||
|
|
|
@ -826,7 +826,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
|
|||
// and connexions are kept)
|
||||
// and the source_module (old module) is deleted
|
||||
pcbframe->Exchange_Module( source_module, newmodule, commit );
|
||||
const_cast<UUID&>( newmodule->m_Uuid ) = module_in_edit->GetLink();
|
||||
const_cast<KUUID&>( newmodule->m_Uuid ) = module_in_edit->GetLink();
|
||||
commit.Push( wxT( "Update module" ) );
|
||||
}
|
||||
else // This is an insert command
|
||||
|
@ -839,7 +839,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
|
|||
pcbframe->PlaceModule( newmodule );
|
||||
newmodule->SetPosition( wxPoint( 0, 0 ) );
|
||||
viewControls->SetCrossHairCursorPosition( cursorPos, false );
|
||||
const_cast<UUID&>( newmodule->m_Uuid ) = UUID();
|
||||
const_cast<KUUID&>( newmodule->m_Uuid ) = KUUID();
|
||||
commit.Push( wxT( "Insert module" ) );
|
||||
|
||||
pcbframe->Raise();
|
||||
|
|
|
@ -1236,7 +1236,7 @@ void LEGACY_PLUGIN::loadMODULE( MODULE* aModule )
|
|||
aModule->SetPosition( wxPoint( pos_x, pos_y ) );
|
||||
aModule->SetLayer( layer_id );
|
||||
aModule->SetOrientation( orient );
|
||||
const_cast<UUID&>( aModule->m_Uuid ) = UUID( uuid );
|
||||
const_cast<KUUID&>( aModule->m_Uuid ) = KUUID( uuid );
|
||||
aModule->SetLastEditTime( edittime );
|
||||
}
|
||||
|
||||
|
@ -1252,7 +1252,7 @@ void LEGACY_PLUGIN::loadMODULE( MODULE* aModule )
|
|||
else if( TESTLINE( "Sc" ) ) // timestamp
|
||||
{
|
||||
char* uuid = strtok_r( (char*) line + SZ( "Sc" ), delims, (char**) &data );
|
||||
const_cast<UUID&>( aModule->m_Uuid ) = UUID( uuid );
|
||||
const_cast<KUUID&>( aModule->m_Uuid ) = KUUID( uuid );
|
||||
}
|
||||
|
||||
else if( TESTLINE( "Op" ) ) // (Op)tions for auto placement
|
||||
|
@ -1969,7 +1969,7 @@ void LEGACY_PLUGIN::loadPCB_LINE()
|
|||
dseg->SetAngle( angle ); // m_Angle
|
||||
break;
|
||||
case 3:
|
||||
const_cast<UUID&>( dseg->m_Uuid ) = UUID( data );
|
||||
const_cast<KUUID&>( dseg->m_Uuid ) = KUUID( data );
|
||||
break;
|
||||
case 4:
|
||||
STATUS_FLAGS state;
|
||||
|
@ -2152,7 +2152,7 @@ void LEGACY_PLUGIN::loadPCB_TEXT()
|
|||
char* vJustify = strtok_r( NULL, delims, (char**) &data );
|
||||
|
||||
pcbtxt->SetMirrored( !notMirrored );
|
||||
const_cast<UUID&>( pcbtxt->m_Uuid ) = UUID( uuid );
|
||||
const_cast<KUUID&>( pcbtxt->m_Uuid ) = KUUID( uuid );
|
||||
pcbtxt->SetItalic( !strcmp( style, "Italic" ) );
|
||||
|
||||
if( hJustify )
|
||||
|
@ -2274,7 +2274,7 @@ void LEGACY_PLUGIN::loadTrackList( int aStructType )
|
|||
case PCB_VIA_T: newTrack = new VIA( m_board ); break;
|
||||
}
|
||||
|
||||
const_cast<UUID&>( newTrack->m_Uuid ) = UUID( uuid );
|
||||
const_cast<KUUID&>( newTrack->m_Uuid ) = KUUID( uuid );
|
||||
newTrack->SetPosition( wxPoint( start_x, start_y ) );
|
||||
newTrack->SetEnd( wxPoint( end_x, end_y ) );
|
||||
|
||||
|
@ -2471,7 +2471,7 @@ void LEGACY_PLUGIN::loadZONE_CONTAINER()
|
|||
if( ReadDelimitedText( buf, data, sizeof(buf) ) > (int) sizeof(buf) )
|
||||
THROW_IO_ERROR( "ZInfo netname too long" );
|
||||
|
||||
const_cast<UUID&>( zc->m_Uuid ) = UUID( uuid );
|
||||
const_cast<KUUID&>( zc->m_Uuid ) = KUUID( uuid );
|
||||
// Init the net code only, not the netname, to be sure
|
||||
// the zone net name is the name read in file.
|
||||
// (When mismatch, the user will be prompted in DRC, to fix the actual name)
|
||||
|
@ -2745,7 +2745,7 @@ void LEGACY_PLUGIN::loadDIMENSION()
|
|||
char* uuid = strtok_r( (char*) data, delims, (char**) &data );
|
||||
|
||||
dim->SetLayer( leg_layer2new( m_cu_count, layer_num ) );
|
||||
const_cast<UUID&>( dim->m_Uuid ) = UUID( uuid );
|
||||
const_cast<KUUID&>( dim->m_Uuid ) = KUUID( uuid );
|
||||
dim->SetShape( shape );
|
||||
}
|
||||
|
||||
|
@ -2914,7 +2914,7 @@ void LEGACY_PLUGIN::loadPCB_TARGET()
|
|||
wxPoint( pos_x, pos_y ), size, width );
|
||||
m_board->Add( t, ADD_MODE::APPEND );
|
||||
|
||||
const_cast<UUID&>( t->m_Uuid ) = UUID( uuid );
|
||||
const_cast<KUUID&>( t->m_Uuid ) = KUUID( uuid );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ void KICAD_NETLIST_PARSER::parseComponent()
|
|||
wxString library;
|
||||
wxString name;
|
||||
UUID_PATH path;
|
||||
UUID uuid;
|
||||
KUUID uuid;
|
||||
|
||||
// The token comp was read, so the next data is (ref P1)
|
||||
while( (token = NextTok()) != T_RIGHT )
|
||||
|
@ -373,7 +373,7 @@ void KICAD_NETLIST_PARSER::parseComponent()
|
|||
|
||||
case T_tstamp:
|
||||
NeedSYMBOLorNUMBER();
|
||||
uuid = UUID( FROM_UTF8( CurText() ) );
|
||||
uuid = KUUID( FROM_UTF8( CurText() ) );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ void COMPONENT::Format( OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl )
|
|||
|
||||
wxString path;
|
||||
|
||||
for( const UUID& pathStep : m_path )
|
||||
for( const KUUID& pathStep : m_path )
|
||||
path += '/' + pathStep.AsString();
|
||||
|
||||
aOut->Print( nl+1, "(timestamp %s)\n", aOut->Quotew( path ).c_str() );
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
char m_objType;
|
||||
int m_PCadLayer;
|
||||
PCB_LAYER_ID m_KiCadLayer;
|
||||
UUID m_uuid;
|
||||
KUUID m_uuid;
|
||||
int m_positionX;
|
||||
int m_positionY;
|
||||
int m_rotation;
|
||||
|
|
|
@ -2036,7 +2036,7 @@ DRAWSEGMENT* PCB_PARSER::parseDRAWSEGMENT( bool aAllowCirclesZeroWidth )
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( segment->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( segment->m_Uuid ) = KUUID( CurStr() );
|
||||
break;
|
||||
|
||||
case T_status:
|
||||
|
@ -2114,7 +2114,7 @@ TEXTE_PCB* PCB_PARSER::parseTEXTE_PCB()
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( text->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( text->m_Uuid ) = KUUID( CurStr() );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
@ -2166,7 +2166,7 @@ DIMENSION* PCB_PARSER::parseDIMENSION()
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( dimension->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( dimension->m_Uuid ) = KUUID( CurStr() );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
@ -2176,7 +2176,7 @@ DIMENSION* PCB_PARSER::parseDIMENSION()
|
|||
dimension->Text() = *text;
|
||||
|
||||
// The text is part of the dimension and shares its uuid
|
||||
const_cast<UUID&>( dimension->Text().m_Uuid ) = dimension->m_Uuid;
|
||||
const_cast<KUUID&>( dimension->Text().m_Uuid ) = dimension->m_Uuid;
|
||||
|
||||
// Fetch other dimension properties out of the text item
|
||||
dimension->SetPosition( text->GetTextPos() );
|
||||
|
@ -2385,7 +2385,7 @@ MODULE* PCB_PARSER::parseMODULE_unchecked( wxArrayString* aInitialComments )
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( module->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( module->m_Uuid ) = KUUID( CurStr() );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
@ -2815,7 +2815,7 @@ EDGE_MODULE* PCB_PARSER::parseEDGE_MODULE()
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( segment->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( segment->m_Uuid ) = KUUID( CurStr() );
|
||||
break;
|
||||
|
||||
case T_status:
|
||||
|
@ -3398,7 +3398,7 @@ TRACK* PCB_PARSER::parseTRACK()
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( track->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( track->m_Uuid ) = KUUID( CurStr() );
|
||||
break;
|
||||
|
||||
case T_status:
|
||||
|
@ -3482,7 +3482,7 @@ VIA* PCB_PARSER::parseVIA()
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( via->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( via->m_Uuid ) = KUUID( CurStr() );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
@ -3570,7 +3570,7 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER( BOARD_ITEM_CONTAINER* aParent )
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( zone->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( zone->m_Uuid ) = KUUID( CurStr() );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
@ -3999,7 +3999,7 @@ PCB_TARGET* PCB_PARSER::parsePCB_TARGET()
|
|||
|
||||
case T_tstamp:
|
||||
NextTok();
|
||||
const_cast<UUID&>( target->m_Uuid ) = UUID( CurStr() );
|
||||
const_cast<KUUID&>( target->m_Uuid ) = KUUID( CurStr() );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
|
|
@ -965,7 +965,7 @@ int SELECTION_TOOL::selectNet( const TOOL_EVENT& aEvent )
|
|||
|
||||
void SELECTION_TOOL::selectAllItemsOnSheet( wxString& aSheetID )
|
||||
{
|
||||
UUID uuid( aSheetID );
|
||||
KUUID uuid( aSheetID );
|
||||
std::list<MODULE*> modList;
|
||||
|
||||
// store all modules that are on that sheet
|
||||
|
@ -974,7 +974,7 @@ void SELECTION_TOOL::selectAllItemsOnSheet( wxString& aSheetID )
|
|||
if( module == nullptr )
|
||||
continue;
|
||||
|
||||
for( const UUID& pathStep : module->GetPath() )
|
||||
for( const KUUID& pathStep : module->GetPath() )
|
||||
{
|
||||
if( pathStep == uuid )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue