Gerbview: rename diff mode by forced opacity display mode and make opacity adjustable.
The diff mode (option in left toolbar) was never a differential display mode. It is actually an option to force the alpha channel (opacity) of layer colors to a given value. So change the name and tool tips to force opacity mode, and make the opacity parameter adjustable in preferences. Gerbview: cleanup: remove a old and dead code.
This commit is contained in:
@@ -1146,10 +1146,10 @@ void GERBVIEW_FRAME::setupUIConditions()
|
||||
return gvconfig()->m_Appearance.show_dcodes;
|
||||
};
|
||||
|
||||
auto diffModeCond =
|
||||
auto forceOpacityModeCond =
|
||||
[this] ( const SELECTION& )
|
||||
{
|
||||
return gvconfig()->m_Display.m_DiffMode;
|
||||
return gvconfig()->m_Display.m_ForceOpacityMode;
|
||||
};
|
||||
|
||||
auto xorModeCond =
|
||||
@@ -1181,7 +1181,7 @@ void GERBVIEW_FRAME::setupUIConditions()
|
||||
mgr->SetConditions( GERBVIEW_ACTIONS::polygonsDisplayOutlines, CHECK( polygonsFilledCond ) );
|
||||
mgr->SetConditions( GERBVIEW_ACTIONS::negativeObjectDisplay, CHECK( negativeObjectsCond ) );
|
||||
mgr->SetConditions( GERBVIEW_ACTIONS::dcodeDisplay, CHECK( dcodeCond ) );
|
||||
mgr->SetConditions( GERBVIEW_ACTIONS::toggleDiffMode, CHECK( diffModeCond ) );
|
||||
mgr->SetConditions( GERBVIEW_ACTIONS::toggleForceOpacityMode, CHECK( forceOpacityModeCond ) );
|
||||
mgr->SetConditions( GERBVIEW_ACTIONS::toggleXORMode, CHECK( xorModeCond ) );
|
||||
mgr->SetConditions( GERBVIEW_ACTIONS::flipGerberView, CHECK( flipGerberCond ) );
|
||||
mgr->SetConditions( ACTIONS::highContrastMode, CHECK( highContrastModeCond ) );
|
||||
|
||||
Reference in New Issue
Block a user