Gui: Add interface for managing preference packs
This commit is contained in:
@@ -94,12 +94,12 @@ namespace Gui {
|
||||
void rescan();
|
||||
|
||||
/**
|
||||
* Get an alphabetical list of names of all installed PreferencePacks
|
||||
* Get an alphabetical list of names of all visible PreferencePacks
|
||||
*/
|
||||
std::vector<std::string> preferencePackNames() const;
|
||||
|
||||
/**
|
||||
* Get a map of all installed PreferencePack names and their associated packs
|
||||
* Get a map of all visible PreferencePack names and their associated packs
|
||||
*/
|
||||
std::map<std::string, PreferencePack> preferencePacks() const;
|
||||
|
||||
@@ -109,6 +109,25 @@ namespace Gui {
|
||||
*/
|
||||
bool apply(const std::string& preferencePackName) const;
|
||||
|
||||
/**
|
||||
* Check the visibility of the specified pack
|
||||
* \return True if the preferencePack is visible, or false if not. All packs are visible by default,
|
||||
* but can be marked as "invisible" (i.e. not returned by the manager in lists of packs) by using the
|
||||
* toggleVisibility function.
|
||||
*/
|
||||
bool isVisible(const std::string& addonName, const std::string& preferencePackName) const;
|
||||
|
||||
/**
|
||||
* Toggle the visibility of the named preference pack in a named addon
|
||||
*/
|
||||
void toggleVisibility(const std::string& addonName, const std::string& preferencePackName);
|
||||
|
||||
/**
|
||||
* Deletes the user-saved pack specified by name
|
||||
*/
|
||||
void deleteUserPack(const std::string& name);
|
||||
|
||||
|
||||
/**
|
||||
* \struct TemplateFile A file containing a set of preferences that can be saved into
|
||||
* a PreferencePack
|
||||
|
||||
Reference in New Issue
Block a user