48 for (
unsigned int i = 0; i < rhs.
m_Groups.GetCount(); ++i)
74 SetFileMasks(group,
_T(
"*.f;*.f77;*.for;*.fpp;*.f90;*.f95;*.f03;*.f08") );
97 for (
unsigned int i = 0; i < list.
GetCount(); ++i)
110 for (
unsigned int i = 0; i <
m_Groups.GetCount(); ++i)
118 key << _T(
"/file_groups/group") <<
wxString::Format(_T(
"%u"), i) << _T(
"/") << _T(
"mask");
126 for (
unsigned int i = 0; i <
m_Groups.GetCount(); ++i)
DLLIMPORT wxArrayString GetArrayFromString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
bool Matches(const wxString &mask) const
ConfigManager * GetConfigManager(const wxString &name_space) const
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
unsigned int GetGroupsCount() const
Return total number of groups.
FileGroupsArray m_Groups
Internal storage for file groups ans masks.
DLLIMPORT wxString GetStringFromArray(const wxArrayString &array, const wxString &separator=DEFAULT_ARRAY_SEP, bool SeparatorAtEnd=true)
wxString GetFileMasks(unsigned int group) const
Return a specific group file mask.
void Write(const wxString &name, const wxString &value, bool ignoreEmpty=false)
void CopyFrom(const FilesGroupsAndMasks &rhs)
copy ctor helper
wxArrayString EnumerateSubPaths(const wxString &path)
bool MatchesMask(const wxString &ext, unsigned int group) const
Return whether a file extension matches a file mask (group)
void Clear()
Clear any groups/masks.
wxString Read(const wxString &key, const wxString &defaultVal=wxEmptyString)
void SetFileMasks(unsigned int group, const wxString &masks)
Set file mask for a group (e.g.
DLLIMPORT wxArrayString MakeUniqueArray(const wxArrayString &array, bool caseSens)
const wxString & _(const wxString &string)
void Load()
Load groups/masks from config.
void RenameGroup(unsigned int group, const wxString &newName)
Rename a group.
void DeleteSubPath(const wxString &strPath)
void SetDefault(bool do_clear=true)
Set the default file groups and masks.
void Save()
Save groups/masks to config.
wxString GetGroupName(unsigned int group) const
Return a specific group name.
static wxString Format(const wxString &format,...)
void DeleteGroup(unsigned int group)
Delete a group.
unsigned int AddGroup(const wxString &name)
Add a file group.