32 #ifndef pqProxyGroupMenuManager_h 33 #define pqProxyGroupMenuManager_h 35 #include "pqApplicationComponentsModule.h" 38 class vtkPVXMLElement;
47 typedef QObject Superclass;
58 {
return static_cast<QMenu*
>(this->parent()); }
63 { this->RecentlyUsedMenuSize = val; }
66 {
return this->RecentlyUsedMenuSize; }
69 QWidget* widgetActionsHolder()
const;
72 QList<QAction*> actions()
const;
75 vtkSMProxy* getPrototype(QAction* action)
const;
78 void addProxy(
const QString& xmlgroup,
const QString& xmlname);
81 void removeProxy(
const QString& xmlgroup,
const QString& xmlname);
85 QStringList getToolbarCategories()
const;
88 QList<QAction*> actions(
const QString& category);
91 QList<QAction*> actionsInToolbars();
94 bool hideForTests(
const QString& category)
const;
102 void addProxyDefinitionUpdateListener(
const QString& proxyGroupName);
103 void removeProxyDefinitionUpdateListener(
const QString& proxyGroupName);
110 void loadConfiguration(vtkPVXMLElement*);
113 void lookForNewDefinitions();
116 void removeProxyDefinitionUpdateObservers();
119 void addProxyDefinitionUpdateObservers();
122 void setEnabled(
bool enable);
129 void triggered(
const QString& group,
const QString& name);
133 void menuPopulated();
138 void switchActiveServer();
146 void loadRecentlyUsedItems();
147 void saveRecentlyUsedItems();
148 void populateRecentlyUsedMenu(QMenu*);
151 QAction* getAction(
const QString& pgroup,
const QString& proxyname);
157 pqInternal* Internal;