4 #ifndef pqConfigureCategoriesDialog_h 5 #define pqConfigureCategoriesDialog_h 19 class QTreeWidgetItem;
28 typedef QDialog Superclass;
38 void createNewCategory();
50 void onRemovePressed();
55 void resetToApplicationCategories();
60 void onSetIconPressed();
70 void onSearchTextChanged(
const QString& pattern);
75 void onItemChanged(QTreeWidgetItem*,
int);
80 void updateToolbarState();
86 void populateCurrentCategoriesTree();
90 void populateAvailableProxiesTree();
92 void populateTree(QTreeWidgetItem* treeRoot);
94 QTreeWidgetItem* createProxyItem(
95 QTreeWidgetItem* parent,
pqProxyInfo*
info, QTreeWidgetItem* preceding =
nullptr);
97 QTreeWidgetItem* createCategoryItem(
98 QTreeWidgetItem* parent,
pqProxyCategory* info, QTreeWidgetItem* preceding =
nullptr);
100 QTreeWidgetItem* createItem(
101 QTreeWidgetItem* parent,
const QString&
name, QTreeWidgetItem* preceding =
nullptr);
103 QTreeWidgetItem* createCategory(
104 const QString& name, QTreeWidgetItem* parentItem, QTreeWidgetItem* precedingItem);
107 bool insertCategoryFromItem(
108 QTreeWidgetItem* sourceItem, QTreeWidgetItem* parentItem, QTreeWidgetItem* precedingItem);
111 bool insertProxyFromItem(
112 QTreeWidgetItem* sourceItem, QTreeWidgetItem* parentItem, QTreeWidgetItem* precedingItem);
122 bool customTreeHasSelection();
126 bool applicationTreeHasSelection();
131 QTreeWidgetItem* getSelectedItem();
139 QTreeWidgetItem* getNearestItem(QTreeWidgetItem* item);
147 QTreeWidgetItem* getSelectedCategoryItem();
151 QTreeWidgetItem* getSelectedProxyItem();
157 bool eventFilter(QObject*
object, QEvent* event)
override;
159 void keyPressEvent(QKeyEvent* event)
override;
164 void updateUIState();
170 void deleteItem(QTreeWidgetItem* item);
174 void deleteCustomItems(QList<QTreeWidgetItem*> items);
179 QTreeWidgetItem* getDestinationParentItem(QDropEvent* dropEvent);
183 QTreeWidgetItem* getDestinationItem(QDropEvent* dropEvent);
185 QTreeWidgetItem* getSourceItem(QDropEvent* dropEvent);
187 bool sourceIsCustomTree(QDropEvent* dropEvent);
191 std::unique_ptr<pqInternal> Internal;
193 QString ResourceTag =
"ParaViewFilters";
#define PQAPPLICATIONCOMPONENTS_EXPORT
Proxy meta data structure for the User Interface.
The pqProxyCategory class reads and writes XML that describes the proxies organisation into categorie...