Work in progress variant code commit.

Please do not attempt to use this yet as it is a work in progress.  Given
large number of merge conflicts, I pushed this partial commit to save time
rebasing.

All of the user interface is hidden behind the "EnableVariantUI" advanced
configuration flag until variants are ready.
This commit is contained in:
Wayne Stambaugh
2025-09-26 08:54:08 -04:00
parent 2a0ef9a82d
commit 33ead34ea5
46 changed files with 1996 additions and 176 deletions
+21
View File
@@ -49,6 +49,8 @@
*/
static const char illegalFileNameChars[] = "\\/:\"<>|*?";
static const wxChar defaultVariantName[] = wxT( "< Default >" );
// Checks if a full filename is valid, i.e. does not contains illegal chars
bool IsFullFileNameValid( const wxString& aFullFilename )
@@ -1625,3 +1627,22 @@ std::vector<wxString> ExpandStackedPinNotation( const wxString& aPinName, bool*
return expanded;
}
wxString GetDefaultVariantName()
{
return wxString( defaultVariantName );
}
int SortVariantNames( const wxString& aLhs, const wxString& aRhs )
{
if( ( aLhs == defaultVariantName ) && ( aRhs != defaultVariantName ) )
return -1;
if( ( aLhs != defaultVariantName ) && ( aRhs == defaultVariantName ) )
return 1;
return StrNumCmp( aLhs, aRhs );
}