4 #ifndef pqPythonMacroSupervisor_h 5 #define pqPythonMacroSupervisor_h 29 void addWidgetForRunMacros(QWidget* widget);
36 void addWidgetForEditMacros(QWidget* widget);
43 void addWidgetForDeleteMacros(QWidget* widget);
49 QAction* getMacro(
const QString& fileName);
55 static QMap<QString, QString> getStoredMacros();
61 static void hideFile(
const QString& fileName);
66 static QString macroNameFromFileName(
const QString& fileName);
68 static void setNameForMacro(
const QString& macroPath,
const QString&
name);
73 static QString macroToolTipFromFileName(
const QString& fileName);
75 static void setTooltipForMacro(
const QString& macroPath,
const QString& name);
81 static QString iconPathFromFileName(
const QString& fileName);
83 static void setIconForMacro(
const QString& macroPath,
const QString& iconPath);
88 static QStringList getMacrosFilePaths();
95 void executeScriptRequested(
const QString& fileName);
105 void onEditMacro(
const QString& fileName);
114 void addMacro(
const QString& macroName,
const QString& tip,
const QString& fileName);
115 void addMacro(
const QString& macroName,
const QString& fileName);
116 void addMacro(
const QString& fileName);
124 void removeMacro(
const QString& fileName);
129 void updateMacroList();
137 void onMacroTriggered();
143 void onDeleteMacroTriggered();
149 void onEditMacroTriggered();
157 void addWidgetForMacros(QWidget* widget,
int actionType);
166 pqInternal* Internal;
169 #endif // ifndef pqPythonMacroSupervisor_h