4 #ifndef pqProxyGroupMenuManager_h 5 #define pqProxyGroupMenuManager_h 7 #include "pqApplicationComponentsModule.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 void addProxy(
const QString& xmlgroup,
const QString& xmlname);
75 void removeProxy(
const QString& xmlgroup,
const QString& xmlname);
85 QStringList getToolbarCategories()
const;
93 QString categoryLabel(
const QString& category);
102 QList<QAction*> actions()
const;
107 QList<QAction*> categoryActions(
const QString& category);
115 QList<QAction*> actionsInToolbars();
134 void addProxyDefinitionUpdateListener(
const QString& proxyGroupName);
135 void removeProxyDefinitionUpdateListener(
const QString& proxyGroupName);
178 void lookForNewDefinitions();
182 void removeProxyDefinitionUpdateObservers();
186 void addProxyDefinitionUpdateObservers();
196 virtual void populateMenu();
201 void writeCategoryToSettings();
204 void triggered(
const QString& group,
const QString&
name);
210 void menuPopulated();
215 void categoriesUpdated();
220 void switchActiveServer();
221 void updateMenuStyle();
222 void updateActionsStyle();
225 void populateRecentlyUsedMenu();
230 int RecentlyUsedMenuSize = 0;
231 bool EnableFavorites =
false;
233 void loadRecentlyUsedItems();
234 void saveRecentlyUsedItems();
239 QAction* getAction(
const QString& pgroup,
const QString& proxyname);
246 void populateAlphabeticalMenu();
250 void populateMiscMenu();
252 void populateCategoriesMenus();
267 QAction* createAddToFavoritesAction();
276 void clearCategoriesMenus();
278 void populateSubCategoriesMenus(QMenu* parent,
pqProxyCategory* category);
286 void loadCategorySettings();
289 std::unique_ptr<pqInternal> Internal;
290 bool SupportsQuickLaunch =
true;
Proxy meta data structure for the User Interface.
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.