4 #ifndef pqProxyGroupMenuManager_h 5 #define pqProxyGroupMenuManager_h 28 typedef QObject Superclass;
40 bool supportsQuickLaunch =
true,
bool enableFavorites =
false);
46 QMenu*
menu()
const {
return static_cast<QMenu*
>(this->parent()); }
51 QWidget* widgetActionsHolder()
const;
52 QMenu* getFavoritesMenu();
71 vtkSMProxy* getPrototype(QAction* action)
const;
76 void addProxy(
const QString& xmlgroup,
const QString& xmlname);
81 void removeProxy(
const QString& xmlgroup,
const QString& xmlname);
91 QStringList getToolbarCategories()
const;
99 QString categoryLabel(
const QString& category);
104 "This was mostly unused. Also it is better to avoid test-dedicated code paths.")
105 bool hideForTests(
const QString&)
const {
return false; };
115 QList<QAction*> actions()
const;
120 QList<QAction*> categoryActions(
const QString& category);
128 QList<QAction*> actionsInToolbars();
147 void addProxyDefinitionUpdateListener(
const QString& proxyGroupName);
148 void removeProxyDefinitionUpdateListener(
const QString& proxyGroupName);
191 void lookForNewDefinitions();
195 void removeProxyDefinitionUpdateObservers();
199 void addProxyDefinitionUpdateObservers();
203 void setEnabled(
bool){};
212 virtual void populateMenu();
217 void writeCategoryToSettings();
220 void triggered(
const QString& group,
const QString&
name);
226 void menuPopulated();
231 void categoriesUpdated();
236 void switchActiveServer();
237 void updateMenuStyle();
238 void updateActionsStyle();
241 void populateRecentlyUsedMenu();
248 "Favorites are now a specific category, configurable as the others.")
249 void populateFavoritesMenu();
254 int RecentlyUsedMenuSize = 0;
257 bool EnableFavorites = false;
259 void loadRecentlyUsedItems();
260 void saveRecentlyUsedItems();
266 "Favorites are now a specific category, configurable as the others.")
267 void loadFavoritesItems();
270 "Favorites are now a specific category, configurable as the others.")
271 QAction* getAddToFavoritesAction(
const QString& path);
276 QAction* getAction(
const QString& pgroup,
const QString& proxyname);
283 void populateAlphabeticalMenu();
287 void populateMiscMenu();
289 void populateCategoriesMenus();
304 QAction* createAddToFavoritesAction();
313 void clearCategoriesMenus();
315 void populateSubCategoriesMenus(QMenu* parent,
pqProxyCategory* category);
323 void loadCategorySettings();
326 std::unique_ptr<pqInternal> Internal;
327 bool SupportsQuickLaunch = true;
#define PQAPPLICATIONCOMPONENTS_EXPORT
Proxy meta data structure for the User Interface.
#define PARAVIEW_DEPRECATED_IN_5_13_0(reason)
proxy for a VTK object(s) on a server
The pqProxyCategory class reads and writes XML that describes the proxies organisation into categorie...
This is used by vtkPVXMLParser to represent an XML document starting at the root element.