mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 15:51:41 +00:00
Remove prototype zone fill option
This option is not exposed in the UI or advanced config and duplicates the action of changing the zone fill type and creates additional ways that boards can be modified by local, non-board settings.
This commit is contained in:
parent
bded181ad0
commit
3f17aabcd0
common/project
include/project
pcbnew
@ -39,7 +39,6 @@ PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS( PROJECT* aProject, const wxStrin
|
||||
m_NetColorMode( NET_COLOR_MODE::RATSNEST ),
|
||||
m_AutoTrackWidth( true ),
|
||||
m_ZoneDisplayMode( ZONE_DISPLAY_MODE::SHOW_FILLED ),
|
||||
m_PrototypeZoneFill( false ),
|
||||
m_TrackOpacity( 1.0 ),
|
||||
m_ViaOpacity( 1.0 ),
|
||||
m_PadOpacity( 1.0 ),
|
||||
@ -204,9 +203,6 @@ PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS( PROJECT* aProject, const wxStrin
|
||||
ZONE_DISPLAY_MODE::SHOW_FILLED, ZONE_DISPLAY_MODE::SHOW_FILLED,
|
||||
ZONE_DISPLAY_MODE::SHOW_TRIANGULATION ) );
|
||||
|
||||
m_params.emplace_back(
|
||||
new PARAM<bool>( "board.prototype_zone_fills", &m_PrototypeZoneFill, false ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<wxString>( "git.repo_username", &m_GitRepoUsername, "" ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<wxString>( "git.repo_type", &m_GitRepoType, "" ) );
|
||||
|
@ -130,9 +130,6 @@ public:
|
||||
/// How zones are drawn
|
||||
ZONE_DISPLAY_MODE m_ZoneDisplayMode;
|
||||
|
||||
/// Whether Zone fill should always be solid for performance with large boards.
|
||||
bool m_PrototypeZoneFill;
|
||||
|
||||
double m_TrackOpacity; ///< Opacity override for all tracks
|
||||
double m_ViaOpacity; ///< Opacity override for all types of via
|
||||
double m_PadOpacity; ///< Opacity override for SMD pads and PTH
|
||||
|
@ -883,24 +883,6 @@ bool ZONE_FILLER::Fill( const std::vector<ZONE*>& aZones, bool aCheck, wxWindow*
|
||||
}
|
||||
}
|
||||
|
||||
if( ( m_board->GetProject()
|
||||
&& m_board->GetProject()->GetLocalSettings().m_PrototypeZoneFill ) )
|
||||
{
|
||||
KIDIALOG dlg( aParent, _( "Prototype zone fill enabled. Disable setting and refill?" ),
|
||||
_( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
|
||||
dlg.SetOKCancelLabels( _( "Disable and refill" ), _( "Continue without Refill" ) );
|
||||
dlg.DoNotShowCheckbox( __FILE__, __LINE__ );
|
||||
|
||||
if( dlg.ShowModal() == wxID_OK )
|
||||
{
|
||||
m_board->GetProject()->GetLocalSettings().m_PrototypeZoneFill = false;
|
||||
}
|
||||
else if( !outOfDate )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if( outOfDate )
|
||||
{
|
||||
KIDIALOG dlg( aParent, _( "Zone fills are out-of-date. Refill?" ),
|
||||
@ -1832,9 +1814,7 @@ bool ZONE_FILLER::fillCopperZone( const ZONE* aZone, PCB_LAYER_ID aLayer, PCB_LA
|
||||
* Process the hatch pattern (note that we do this while deflated)
|
||||
*/
|
||||
|
||||
if( aZone->GetFillMode() == ZONE_FILL_MODE::HATCH_PATTERN
|
||||
&& ( !m_board->GetProject()
|
||||
|| !m_board->GetProject()->GetLocalSettings().m_PrototypeZoneFill ) )
|
||||
if( aZone->GetFillMode() == ZONE_FILL_MODE::HATCH_PATTERN )
|
||||
{
|
||||
if( !addHatchFillTypeOnZone( aZone, aLayer, aDebugLayer, aFillPolys ) )
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user