pqPythonMacroSettings is a class to handle macro settings like names and tooltips. More...
#include <pqPythonMacroSettings.h>
Public Types | |
| enum | MacroItemCategories { MacroItemCategories::ToolTip, MacroItemCategories::Name, MacroItemCategories::Unused } |
Public Member Functions | |
| pqPythonMacroSettings (MacroItemCategories currentCategory) | |
| void | setItemInSettings (const QString ¯oPath, const QString &value) |
| Fill setting for macroPath with value under the current category. More... | |
| QString | getItemFromSettings (const QString ¯oPath) |
| Return value for macroPath from the settings under the current category. More... | |
| QMap< QString, QString > | getItemSettings () |
| Get a map of {macroPath: value} from the given settings under the current category. More... | |
| void | writeItemSettings (const QMap< QString, QString > &settingsMap) |
| Write the given map to the settings under the current category. More... | |
| void | removeItemFromSettings (const QString ¯oPath) |
| Remove the given macroPath and its associated value from the settings under the current category. More... | |
pqPythonMacroSettings is a class to handle macro settings like names and tooltips.
Definition at line 16 of file pqPythonMacroSettings.h.
|
strong |
| Enumerator | |
|---|---|
| ToolTip | |
| Name | |
| Unused | |
Definition at line 19 of file pqPythonMacroSettings.h.
|
explicit |
Fill setting for macroPath with value under the current category.
| QString pqPythonMacroSettings::getItemFromSettings | ( | const QString & | macroPath | ) |
Return value for macroPath from the settings under the current category.
| QMap<QString, QString> pqPythonMacroSettings::getItemSettings | ( | ) |
Get a map of {macroPath: value} from the given settings under the current category.
| void pqPythonMacroSettings::writeItemSettings | ( | const QMap< QString, QString > & | settingsMap | ) |
Write the given map to the settings under the current category.
Map is expected to be at format {macroPath: value} Previous settings are erased under the current category.
| void pqPythonMacroSettings::removeItemFromSettings | ( | const QString & | macroPath | ) |
Remove the given macroPath and its associated value from the settings under the current category.
1.8.13 on Sat Dec 13 2025