- virtual long userFileId( const QString& _fname ) const
- {
- //////////////////////////////////////////////////////////////////////////////////////////////
- // In SALOME and SALOME-based applications the user preferences file is named as
- // - <AppName>.xml.<AppVersion> on Windows
- // - <AppName>rc.<AppVersion> on Linux
- // where
- // * AppName is application name, default SalomeApp (can be customized in SALOME-based
- // applications
- // * AppVersion is application version
- //
- // Since version 6.5.0 of SALOME, user file is situated in the ~/.config/salome
- // directory. For backward compatibility, when user preferences from nearest
- // version of application is searched, user home directory is also looked through,
- // with lower priority.
- //
- // Since version 6.6.0 of SALOME, user file name on Linux is no more prefixed by dot
- // symbol since it is situated in hidden ~/.config/salome directory. Files with dot
- // prefix also though taken into account (with lower priority) for backward compatibility.
- //
- // Notes:
- // - Currently the following format of version number is supported:
- // <major>[.<minor>[.<release>[<type><dev>]]]
- // Parts in square brackets are considered optional. Here:
- // * major - major version id
- // * minor - minor version id
- // * release - maintenance version id
- // * type - dev or patch marker; it can be either one alphabetical symbol (from 'a' to 'z')
- // or 'rc' to point release candidate (case-insensitive)
- // * dev - dev version or patch number
- // All numerical values must be of range [1-99].
- // Examples: 1.0, 6.5.0, 1.2.0a1, 3.3.3rc3 (release candidate 3), 11.0.0p1 (patch 1)
- //
- // - Versioning approach can be customized by implementing and using own resource manager class,
- // see QtxResurceMgr, SUIT_ResourceMgr classes.
- //////////////////////////////////////////////////////////////////////////////////////////////
- long id = -1;
- if ( !myExtAppName.isEmpty() ) {
+ virtual long userFileId(const QString &_fname) const
+ {
+ //////////////////////////////////////////////////////////////////////////////////////////////
+ // In SALOME and SALOME-based applications the user preferences file is named as
+ // - <AppName>.xml.<AppVersion> on Windows
+ // - <AppName>rc.<AppVersion> on Linux
+ // where
+ // * AppName is application name, defaults to SalomeApp. Can be customized in SALOME-based
+ // applications, see ResourceMgr above for more details.
+ // * AppVersion is application version, defaults to current version of SALOME GUI module
+ // if AppName is not customize, otherwise empty. Can be customized in SALOME-based
+ // applications, see ResourceMgr above for more details.
+ //
+ // Since version 6.5.0 of SALOME, user file is stored in the ~/.config/salome
+ // directory. For backward compatibility, when user preferences from nearest
+ // version of application is searched, user home directory is also looked through,
+ // with lower priority.
+ //
+ // Since version 6.6.0 of SALOME, user file name on Linux is no more prefixed by dot
+ // symbol since it is stored in the hidden ~/.config/salome directory. However, dot-prefixed
+ // files are also taken into account (with lower priority) for backward compatibility.
+ //
+ // Notes:
+ // - Currently the following format of version number is supported:
+ // <major>[.<minor>[.<release>[<type><dev>]]]
+ // Parts in square brackets are considered optional. Here:
+ // * major - major version id
+ // * minor - minor version id
+ // * release - maintenance version id
+ // * type - dev or patch marker; it can be either one alphabetical symbol (from 'a' to 'z')
+ // or 'rc' to point release candidate (case-insensitive)
+ // * dev - dev version or patch number
+ // All numerical values must be of range [1-99].
+ // Examples: 1.0, 6.5.0, 1.2.0a1, 3.3.3rc3 (release candidate 3), 11.0.0p1 (patch 1)
+ //
+ // - Versioning approach can be customized by implementing and using own resource manager class,
+ // see QtxResurceMgr, SUIT_ResourceMgr classes, and ResourceMgr class above in this file.
+ //////////////////////////////////////////////////////////////////////////////////////////////
+
+ long id = -1;
+ if (!myCustomAppName.isEmpty())
+ {