4 #ifndef pqProxyGroupMenuManager_h
5 #define pqProxyGroupMenuManager_h
7 #include "pqApplicationComponentsModule.h"
21 typedef QObject Superclass;
33 QMenu* menu,
const QString& resourceTagName,
bool supportsQuickLaunch =
true);
39 QMenu*
menu()
const {
return static_cast<QMenu*
>(this->parent()); }
52 QWidget* widgetActionsHolder()
const;
57 QList<QAction*> actions()
const;
62 vtkSMProxy* getPrototype(QAction* action)
const;
67 void addProxy(
const QString& xmlgroup,
const QString& xmlname);
72 void removeProxy(
const QString& xmlgroup,
const QString& xmlname);
78 QStringList getToolbarCategories()
const;
83 QList<QAction*> actions(
const QString& category);
88 QList<QAction*> actionsInToolbars();
93 bool hideForTests(
const QString& category)
const;
103 void addProxyDefinitionUpdateListener(
const QString& proxyGroupName);
104 void removeProxyDefinitionUpdateListener(
const QString& proxyGroupName);
114 QMenu* getFavoritesMenu();
119 QString categoryLabel(
const QString& category);
133 void lookForNewDefinitions();
138 void removeProxyDefinitionUpdateObservers();
143 void addProxyDefinitionUpdateObservers();
148 void setEnabled(
bool enable);
154 virtual void populateMenu();
157 void triggered(
const QString& group,
const QString& name);
163 void menuPopulated();
168 void switchActiveServer();
169 void updateMenuStyle();
175 void populateRecentlyUsedMenu();
181 void populateFavoritesMenu();
190 void loadRecentlyUsedItems();
191 void saveRecentlyUsedItems();
196 void loadFavoritesItems();
201 QAction* getAction(
const QString& pgroup,
const QString& proxyname);
203 QAction* getAddToCategoryAction(
const QString& path);
209 pqInternal* Internal;
210 bool SupportsQuickLaunch;