4 #ifndef pqProxyGroupMenuManager_h 5 #define pqProxyGroupMenuManager_h 7 #include "pqApplicationComponentsModule.h" 11 #include "vtkParaViewDeprecation.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;
95 QString categoryLabel(
const QString& category);
104 QList<QAction*> actions()
const;
109 QList<QAction*> categoryActions(
const QString& category);
117 QList<QAction*> actionsInToolbars();
133 void setShowCategoriesInMenuBar(
bool show);
134 bool showCategoriesInMenuBar()
const;
153 void addProxyDefinitionUpdateListener(
const QString& proxyGroupName);
154 void removeProxyDefinitionUpdateListener(
const QString& proxyGroupName);
197 void lookForNewDefinitions();
201 void removeProxyDefinitionUpdateObservers();
205 void addProxyDefinitionUpdateObservers();
215 virtual void populateMenu();
220 void writeCategoryToSettings();
223 void triggered(
const QString& group,
const QString&
name);
229 void menuPopulated();
234 void categoriesUpdated();
239 void switchActiveServer();
240 void updateMenuStyle();
241 void updateActionsStyle();
244 void populateRecentlyUsedMenu();
249 int RecentlyUsedMenuSize = 0;
250 bool EnableFavorites =
false;
252 void loadRecentlyUsedItems();
253 void saveRecentlyUsedItems();
258 QAction* getAction(
const QString& pgroup,
const QString& proxyname);
265 void populateAlphabeticalMenu();
269 void populateMiscMenu();
271 void populateCategoriesMenus();
286 void runScript(
const QString& code,
const QString& fileName);
291 QAction* createAddToFavoritesAction();
300 void clearCategoriesMenus();
302 void populateSubCategoriesMenus(QMenu* parent,
pqProxyCategory* category);
310 void loadCategorySettings();
313 std::unique_ptr<pqInternal> Internal;
314 bool SupportsQuickLaunch =
true;
Meta data structure for the User Interface, describing an item of a pqProxyCategory.
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.