Use Title Case for property names
This commit is contained in:
parent
afa08b710c
commit
4f36f669dc
|
@ -2592,16 +2592,16 @@ static struct SCH_SYMBOL_DESC
|
||||||
|
|
||||||
const wxString groupAttributes = _HKI( "Attributes" );
|
const wxString groupAttributes = _HKI( "Attributes" );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Exclude from board" ),
|
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Exclude From Board" ),
|
||||||
&SCH_SYMBOL::SetExcludedFromBoard, &SCH_SYMBOL::GetExcludedFromBoard ),
|
&SCH_SYMBOL::SetExcludedFromBoard, &SCH_SYMBOL::GetExcludedFromBoard ),
|
||||||
groupAttributes );
|
groupAttributes );
|
||||||
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Exclude from simulation" ),
|
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Exclude From Simulation" ),
|
||||||
&SCH_SYMBOL::SetExcludedFromSim, &SCH_SYMBOL::GetExcludedFromSim ),
|
&SCH_SYMBOL::SetExcludedFromSim, &SCH_SYMBOL::GetExcludedFromSim ),
|
||||||
groupAttributes );
|
groupAttributes );
|
||||||
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Exclude from bill of materials" ),
|
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Exclude From Bill of Materials" ),
|
||||||
&SCH_SYMBOL::SetExcludedFromBOM, &SCH_SYMBOL::GetExcludedFromBOM ),
|
&SCH_SYMBOL::SetExcludedFromBOM, &SCH_SYMBOL::GetExcludedFromBOM ),
|
||||||
groupAttributes );
|
groupAttributes );
|
||||||
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Do not populate" ),
|
propMgr.AddProperty( new PROPERTY<SCH_SYMBOL, bool>( _HKI( "Do Not Populate" ),
|
||||||
&SCH_SYMBOL::SetDNP, &SCH_SYMBOL::GetDNP ),
|
&SCH_SYMBOL::SetDNP, &SCH_SYMBOL::GetDNP ),
|
||||||
groupAttributes );
|
groupAttributes );
|
||||||
}
|
}
|
||||||
|
|
|
@ -272,13 +272,13 @@ static struct BOARD_CONNECTED_ITEM_DESC
|
||||||
curvePts->SetAvailableFunc( supportsTeardrops );
|
curvePts->SetAvailableFunc( supportsTeardrops );
|
||||||
propMgr.AddProperty( curvePts, groupTeardrops );
|
propMgr.AddProperty( curvePts, groupTeardrops );
|
||||||
|
|
||||||
auto preferZones = new PROPERTY<BOARD_CONNECTED_ITEM, bool>( _HKI( "Prefer zone connections" ),
|
auto preferZones = new PROPERTY<BOARD_CONNECTED_ITEM, bool>( _HKI( "Prefer Zone Connections" ),
|
||||||
&BOARD_CONNECTED_ITEM::SetTeardropPreferZoneConnections,
|
&BOARD_CONNECTED_ITEM::SetTeardropPreferZoneConnections,
|
||||||
&BOARD_CONNECTED_ITEM::GetTeardropPreferZoneConnections );
|
&BOARD_CONNECTED_ITEM::GetTeardropPreferZoneConnections );
|
||||||
preferZones->SetAvailableFunc( supportsTeardropPreferZoneSetting );
|
preferZones->SetAvailableFunc( supportsTeardropPreferZoneSetting );
|
||||||
propMgr.AddProperty( preferZones, groupTeardrops );
|
propMgr.AddProperty( preferZones, groupTeardrops );
|
||||||
|
|
||||||
auto twoTracks = new PROPERTY<BOARD_CONNECTED_ITEM, bool>( _HKI( "Allow teardrops to span two tracks" ),
|
auto twoTracks = new PROPERTY<BOARD_CONNECTED_ITEM, bool>( _HKI( "Allow Teardrops To Span Two Tracks" ),
|
||||||
&BOARD_CONNECTED_ITEM::SetTeardropAllowSpanTwoTracks,
|
&BOARD_CONNECTED_ITEM::SetTeardropAllowSpanTwoTracks,
|
||||||
&BOARD_CONNECTED_ITEM::GetTeardropAllowSpanTwoTracks );
|
&BOARD_CONNECTED_ITEM::GetTeardropAllowSpanTwoTracks );
|
||||||
twoTracks->SetAvailableFunc( supportsTeardrops );
|
twoTracks->SetAvailableFunc( supportsTeardrops );
|
||||||
|
|
|
@ -3407,10 +3407,10 @@ static struct FOOTPRINT_DESC
|
||||||
&FOOTPRINT::SetValue, &FOOTPRINT::GetValueAsString ),
|
&FOOTPRINT::SetValue, &FOOTPRINT::GetValueAsString ),
|
||||||
groupFootprint );
|
groupFootprint );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Library link" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Library Link" ),
|
||||||
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetFPIDAsString ),
|
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetFPIDAsString ),
|
||||||
groupFootprint );
|
groupFootprint );
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Library description" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Library Description" ),
|
||||||
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetLibDescription ),
|
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetLibDescription ),
|
||||||
groupFootprint );
|
groupFootprint );
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Keywords" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Keywords" ),
|
||||||
|
@ -3419,22 +3419,22 @@ static struct FOOTPRINT_DESC
|
||||||
|
|
||||||
const wxString groupAttributes = _HKI( "Attributes" );
|
const wxString groupAttributes = _HKI( "Attributes" );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Not in schematic" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Not in Schematic" ),
|
||||||
&FOOTPRINT::SetBoardOnly, &FOOTPRINT::IsBoardOnly ), groupAttributes );
|
&FOOTPRINT::SetBoardOnly, &FOOTPRINT::IsBoardOnly ), groupAttributes );
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Exclude from position files" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Exclude From Position Files" ),
|
||||||
&FOOTPRINT::SetExcludedFromPosFiles, &FOOTPRINT::IsExcludedFromPosFiles ),
|
&FOOTPRINT::SetExcludedFromPosFiles, &FOOTPRINT::IsExcludedFromPosFiles ),
|
||||||
groupAttributes );
|
groupAttributes );
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Exclude from bill of materials" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Exclude From Bill of Materials" ),
|
||||||
&FOOTPRINT::SetExcludedFromBOM, &FOOTPRINT::IsExcludedFromBOM ),
|
&FOOTPRINT::SetExcludedFromBOM, &FOOTPRINT::IsExcludedFromBOM ),
|
||||||
groupAttributes );
|
groupAttributes );
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Do not populate" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>( _HKI( "Do not Populate" ),
|
||||||
&FOOTPRINT::SetDNP, &FOOTPRINT::IsDNP ),
|
&FOOTPRINT::SetDNP, &FOOTPRINT::IsDNP ),
|
||||||
groupAttributes );
|
groupAttributes );
|
||||||
|
|
||||||
const wxString groupOverrides = _HKI( "Overrides" );
|
const wxString groupOverrides = _HKI( "Overrides" );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>(
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, bool>(
|
||||||
_HKI( "Exempt from courtyard requirement" ),
|
_HKI( "Exempt From Courtyard Requirement" ),
|
||||||
&FOOTPRINT::SetAllowMissingCourtyard, &FOOTPRINT::AllowMissingCourtyard ),
|
&FOOTPRINT::SetAllowMissingCourtyard, &FOOTPRINT::AllowMissingCourtyard ),
|
||||||
groupOverrides );
|
groupOverrides );
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, int>( _HKI( "Clearance Override" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, int>( _HKI( "Clearance Override" ),
|
||||||
|
|
|
@ -2070,39 +2070,39 @@ static struct PCB_TUNING_PATTERN_DESC
|
||||||
groupTab );
|
groupTab );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY_ENUM<PCB_TUNING_PATTERN, LENGTH_TUNING_MODE>(
|
propMgr.AddProperty( new PROPERTY_ENUM<PCB_TUNING_PATTERN, LENGTH_TUNING_MODE>(
|
||||||
_HKI( "Tuning mode" ),
|
_HKI( "Tuning Mode" ),
|
||||||
NO_SETTER( PCB_TUNING_PATTERN, LENGTH_TUNING_MODE ),
|
NO_SETTER( PCB_TUNING_PATTERN, LENGTH_TUNING_MODE ),
|
||||||
&PCB_TUNING_PATTERN::GetTuningMode ),
|
&PCB_TUNING_PATTERN::GetTuningMode ),
|
||||||
groupTab );
|
groupTab );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
||||||
_HKI( "Min amplitude" ),
|
_HKI( "Min Amplitude" ),
|
||||||
&PCB_TUNING_PATTERN::SetMinAmplitude,
|
&PCB_TUNING_PATTERN::SetMinAmplitude,
|
||||||
&PCB_TUNING_PATTERN::GetMinAmplitude,
|
&PCB_TUNING_PATTERN::GetMinAmplitude,
|
||||||
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
||||||
groupTab );
|
groupTab );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
||||||
_HKI( "Max amplitude" ),
|
_HKI( "Max Amplitude" ),
|
||||||
&PCB_TUNING_PATTERN::SetMaxAmplitude,
|
&PCB_TUNING_PATTERN::SetMaxAmplitude,
|
||||||
&PCB_TUNING_PATTERN::GetMaxAmplitude,
|
&PCB_TUNING_PATTERN::GetMaxAmplitude,
|
||||||
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
||||||
groupTab );
|
groupTab );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY_ENUM<PCB_TUNING_PATTERN, PNS::MEANDER_SIDE>(
|
propMgr.AddProperty( new PROPERTY_ENUM<PCB_TUNING_PATTERN, PNS::MEANDER_SIDE>(
|
||||||
_HKI( "Initial side" ),
|
_HKI( "Initial Side" ),
|
||||||
&PCB_TUNING_PATTERN::SetInitialSide,
|
&PCB_TUNING_PATTERN::SetInitialSide,
|
||||||
&PCB_TUNING_PATTERN::GetInitialSide ),
|
&PCB_TUNING_PATTERN::GetInitialSide ),
|
||||||
groupTab );
|
groupTab );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
||||||
_HKI( "Min spacing" ), &PCB_TUNING_PATTERN::SetSpacing,
|
_HKI( "Min Spacing" ), &PCB_TUNING_PATTERN::SetSpacing,
|
||||||
&PCB_TUNING_PATTERN::GetSpacing, PROPERTY_DISPLAY::PT_SIZE,
|
&PCB_TUNING_PATTERN::GetSpacing, PROPERTY_DISPLAY::PT_SIZE,
|
||||||
ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
||||||
groupTab );
|
groupTab );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
||||||
_HKI( "Corner radius %" ),
|
_HKI( "Corner Radius %" ),
|
||||||
&PCB_TUNING_PATTERN::SetCornerRadiusPercentage,
|
&PCB_TUNING_PATTERN::SetCornerRadiusPercentage,
|
||||||
&PCB_TUNING_PATTERN::GetCornerRadiusPercentage,
|
&PCB_TUNING_PATTERN::GetCornerRadiusPercentage,
|
||||||
PROPERTY_DISPLAY::PT_DEFAULT, ORIGIN_TRANSFORMS::NOT_A_COORD ),
|
PROPERTY_DISPLAY::PT_DEFAULT, ORIGIN_TRANSFORMS::NOT_A_COORD ),
|
||||||
|
@ -2124,7 +2124,7 @@ static struct PCB_TUNING_PATTERN_DESC
|
||||||
};
|
};
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, long long int>(
|
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, long long int>(
|
||||||
_HKI( "Target length" ),
|
_HKI( "Target Length" ),
|
||||||
&PCB_TUNING_PATTERN::SetTargetLength,
|
&PCB_TUNING_PATTERN::SetTargetLength,
|
||||||
&PCB_TUNING_PATTERN::GetTargetLength,
|
&PCB_TUNING_PATTERN::GetTargetLength,
|
||||||
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
||||||
|
@ -2133,7 +2133,7 @@ static struct PCB_TUNING_PATTERN_DESC
|
||||||
|
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, int>(
|
||||||
_HKI( "Target skew" ), &PCB_TUNING_PATTERN::SetTargetSkew,
|
_HKI( "Target Skew" ), &PCB_TUNING_PATTERN::SetTargetSkew,
|
||||||
&PCB_TUNING_PATTERN::GetTargetSkew,
|
&PCB_TUNING_PATTERN::GetTargetSkew,
|
||||||
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
PROPERTY_DISPLAY::PT_SIZE, ORIGIN_TRANSFORMS::ABS_X_COORD ),
|
||||||
groupTab )
|
groupTab )
|
||||||
|
@ -2141,7 +2141,7 @@ static struct PCB_TUNING_PATTERN_DESC
|
||||||
|
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, bool>(
|
propMgr.AddProperty( new PROPERTY<PCB_TUNING_PATTERN, bool>(
|
||||||
_HKI( "Override custom rules" ),
|
_HKI( "Override Custom Rules" ),
|
||||||
&PCB_TUNING_PATTERN::SetOverrideCustomRules,
|
&PCB_TUNING_PATTERN::SetOverrideCustomRules,
|
||||||
&PCB_TUNING_PATTERN::GetOverrideCustomRules ),
|
&PCB_TUNING_PATTERN::GetOverrideCustomRules ),
|
||||||
groupTab );
|
groupTab );
|
||||||
|
|
|
@ -162,7 +162,7 @@ void PCB_GENERATOR::SetProperties( const STRING_ANY_MAP& aProps )
|
||||||
std::vector<std::pair<wxString, wxVariant>> PCB_GENERATOR::GetRowData()
|
std::vector<std::pair<wxString, wxVariant>> PCB_GENERATOR::GetRowData()
|
||||||
{
|
{
|
||||||
#ifdef GENERATOR_ORDER
|
#ifdef GENERATOR_ORDER
|
||||||
return { { _HKI( "Update order" ), wxString::FromCDouble( GetUpdateOrder() ) } };
|
return { { _HKI( "Update Order" ), wxString::FromCDouble( GetUpdateOrder() ) } };
|
||||||
#else
|
#else
|
||||||
return { {} };
|
return { {} };
|
||||||
#endif
|
#endif
|
||||||
|
@ -199,10 +199,10 @@ static struct PCB_GENERATOR_DESC
|
||||||
|
|
||||||
const wxString groupTab = _HKI( "Generator Properties" );
|
const wxString groupTab = _HKI( "Generator Properties" );
|
||||||
|
|
||||||
propMgr.AddProperty( new PROPERTY<PCB_GENERATOR, int>( _HKI( "Update order" ),
|
propMgr.AddProperty( new PROPERTY<PCB_GENERATOR, int>( _HKI( "Update Order" ),
|
||||||
&PCB_GENERATOR::SetUpdateOrder,
|
&PCB_GENERATOR::SetUpdateOrder,
|
||||||
&PCB_GENERATOR::GetUpdateOrder ),
|
&PCB_GENERATOR::GetUpdateOrder ),
|
||||||
groupTab );
|
groupTab );
|
||||||
}
|
}
|
||||||
} _PCB_GENERATOR_DESC;
|
} _PCB_GENERATOR_DESC;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue