eeschema, DIALOG_SHEET_PROPERTIES: add test for valid sheet filename

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18981
This commit is contained in:
jean-pierre charras
2024-10-25 11:44:29 +02:00
parent 8dda9b37fa
commit 82ff2c0e0f
3 changed files with 45 additions and 1 deletions
+8 -1
View File
@@ -231,6 +231,13 @@ KICOMMON_API int GetTrailingInt( const wxString& aStr );
*/
KICOMMON_API wxString GetIllegalFileNameWxChars();
/**
* Checks if a full filename is valid, i.e. does not contains illegal chars
* path separators are allowed
* @return true if OK.
*/
KICOMMON_API bool IsFullFileNameValid( const wxString& aFullFilename );
/**
* Checks \a aName for illegal file name characters.
*
@@ -392,7 +399,7 @@ KICOMMON_API std::string FormatDouble2Str( double aValue );
/**
* Convert an expected UTF8 encoded std::string to a wxString.
* If fails, tray to convert using current locale
* If fails, try to convert using current locale
* If still fails, return the initial string (can be already a converted string)
*/
KICOMMON_API wxString From_UTF8( const std::string& aString );