use | marker for "don't theme this choice"

This commit is contained in:
Chris Danford
2005-12-01 19:27:33 +00:00
parent 2f3a58ae45
commit 11e5aeb8b9
4 changed files with 31 additions and 17 deletions
+10 -1
View File
@@ -35,11 +35,20 @@ void OptionRow::PrepareItemText( CString &s ) const
return;
bool bTheme = false;
// HACK: Always theme the NEXT_ROW and EXIT items, even if metrics says not to theme.
// HACK: Always theme the NEXT_ROW and EXIT items.
if( s == NEXT_ROW_NAME ) bTheme = true;
if( s == EXIT_NAME ) bTheme = true;
if( m_RowDef.m_bAllowThemeItems ) bTheme = true;
// Items beginning with a pipe mean "don't theme".
// This allows us to disable theming on a per-choice basis for choice names that are just a number
// and don't need to be localized.
if( s[0] == '|' )
{
s.erase( s.begin() );
bTheme = false;
}
if( bTheme )
s = CommonMetrics::ThemeOptionItem( s, false );
if( m_pParentType->CAPITALIZE_ALL_OPTION_NAMES )