kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #23497
Question about track/via locking
-
To:
Kicad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Tomasz Wlostowski <tomasz.wlostowski@xxxxxxx>
-
Date:
Mon, 29 Feb 2016 17:38:24 +0100
-
Authentication-results:
spf=pass (sender IP is 188.184.36.48) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:23
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
Hi guys,
Does anybody here know if the 'locked' flag for tracks/vias affects
anything else than the Global Deletions tool? It seems so from the code:
pcbnew(master)$ find . -name "*.cpp" | xargs grep TRACK_LOCK
./attribut.cpp: * TRACK_LOCKED protection against global delete
./attribut.cpp: track->SetState( TRACK_LOCKED, Flag_On );
./attribut.cpp: Track->SetState( TRACK_LOCKED, Flag_On );
./attribut.cpp:/* Modify the flag TRACK_LOCKED according to Flag_On value,
./attribut.cpp: Track->SetState( TRACK_LOCKED, Flag_On );
./onrightclick.cpp: if( Track->GetState( TRACK_LOCKED ) )
./class_track.cpp: if( GetState( TRACK_LOCKED ) )
./class_track.cpp: if( stateBits & TRACK_LOCKED )
./class_track.cpp: ret << wxT( " | TRACK_LOCKED" );
./dialogs/dialog_global_deletion.cpp: track_mask_filter |=
TRACK_LOCKED;
./dialogs/dialog_global_deletion.cpp: if( (
track->GetState( TRACK_LOCKED | TRACK_AR ) & track_mask_filter ) != 0 )
./dialogs/dialog_global_deletion.cpp: if( (
track->GetState( TRACK_LOCKED | TRACK_AR ) == 0 ) &&
I'm asking because I'd like to add track/via locking feature to the GAL
and I'm also considering making P&S avoid (hug) locked tracks/vias.
Cheers,
Tom
Follow ups