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();
70 vtkSMProxy* getPrototype(QAction* action)
const;
75 void addProxy(
const QString& xmlgroup,
const QString& xmlname);
80 void removeProxy(
const QString& xmlgroup,
const QString& xmlname);
90 QStringList getToolbarCategories()
const;
98 QString categoryLabel(
const QString& category);
103 "This was mostly unused. Also it is better to avoid test-dedicated code paths.")
104 bool hideForTests(
const QString&)
const {
return false; };
114 QList<QAction*> actions()
const;
119 QList<QAction*> categoryActions(
const QString& category);
127 QList<QAction*> actionsInToolbars();
146 void addProxyDefinitionUpdateListener(
const QString& proxyGroupName);
147 void removeProxyDefinitionUpdateListener(
const QString& proxyGroupName);
190 void lookForNewDefinitions();
194 void removeProxyDefinitionUpdateObservers();
198 void addProxyDefinitionUpdateObservers();
202 void setEnabled(
bool){};
211 virtual void populateMenu();
216 void writeCategoryToSettings();
219 void triggered(
const QString& group,
const QString&
name);
225 void menuPopulated();
230 void categoriesUpdated();
235 void switchActiveServer();
236 void updateMenuStyle();
237 void updateActionsStyle();
240 void populateRecentlyUsedMenu();
247 "Favorites are now a specific category, configurable as the others.")
248 void populateFavoritesMenu();
253 int RecentlyUsedMenuSize = 0;
256 bool EnableFavorites = false;
258 void loadRecentlyUsedItems();
259 void saveRecentlyUsedItems();
265 "Favorites are now a specific category, configurable as the others.")
266 void loadFavoritesItems();
269 "Favorites are now a specific category, configurable as the others.")
270 QAction* getAddToFavoritesAction(
const QString& path);
275 QAction* getAction(
const QString& pgroup,
const QString& proxyname);
282 void populateAlphabeticalMenu();
286 void populateMiscMenu();
288 void populateCategoriesMenus();
303 QAction* createAddToFavoritesAction();
312 void clearCategoriesMenus();
314 void populateSubCategoriesMenus(QMenu* parent,
pqProxyCategory* category);
322 void loadCategorySettings();
325 std::unique_ptr<pqInternal> Internal;
326 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.