Implement XDG file layout

This commit is contained in:
Martin Koegler
2016-12-10 17:56:04 +01:00
committed by Vadim Zeitlin
parent 8d5d00db9d
commit d56d127d3f
4 changed files with 55 additions and 1 deletions

View File

@@ -135,6 +135,19 @@ public:
Dir_Videos
};
enum
{
/**
Use the classic file layout
*/
FileLayout_Classic,
/**
Use a XDG styled file layout (Unix)
*/
FileLayout_XDG
};
/**
MSW-specific function undoing the effect of IgnoreAppSubDir() calls.
@@ -444,6 +457,19 @@ public:
*/
void UseAppInfo(int info);
/**
Returns the current file layout
Valid values for @a are:
- @c FileLayout_Classic,
- @c FileLayout_XDG
*/
void SetFileLayout(int layout);
/**
Returns the current file layout
*/
int GetFileLayout() const;
/**
Return the file name which would be used by wxFileConfig as local,
user-specific, file if it were constructed with @a basename.