3 #ifndef pqProxyCategory_h 4 #define pqProxyCategory_h 63 typedef QObject Superclass;
92 bool parseXMLHintsTag(
93 const QString& proxyGroup,
const QString& proxyName,
vtkPVXMLElement* hints);
101 void writeSettings(
const QString& resourceTag);
105 void loadSettings(
const QString& resourceTag);
126 bool hasProxy(
const QString& name);
131 pqProxyInfo* findProxy(
const QString& name,
bool recursive =
false);
133 QList<pqProxyInfo*> getRootProxies();
135 QList<pqProxyInfo*> getProxiesRecursive();
137 QStringList getOrderedRootProxiesNames();
147 QMap<QString, pqProxyCategory*> getSubCategories();
149 QMap<QString, pqProxyCategory*> getSubCategoriesRecursive();
151 QList<pqProxyCategory*> getCategoriesAlphabetically();
153 QString makeUniqueCategoryName(
const QString& name);
155 QString makeUniqueCategoryLabel(
const QString& label);
165 void removeCategory(
const QString& name);
169 void removeProxy(
const QString& name);
177 bool hasProxiesRecursive();
185 QString
name() {
return this->Name; }
197 void rename(
const QString& name);
201 void updateLabel(
const QString& label =
"");
203 void setShowInToolbar(
bool show);
215 void cleanDeletedProxy(QObject* deleted);
231 bool PreserveOrder =
false;
232 bool ShowInToolbar =
false;
235 QMap<QString, pqProxyCategory*> SubCategories;
236 QStringList OrderedProxies;
QMap< QString, pqProxyInfo * > pqProxyInfoMap
map a proxy name to its pqProxyInfo
pqProxyCategory * parentCategory()
Return parent category.
QMap< QString, pqProxyCategory * > pqCategoryMap
map a category name to its pqProxyCategory
#define PQAPPLICATIONCOMPONENTS_EXPORT
Proxy meta data structure for the User Interface.
QString name()
Return category name.
bool showInToolbar()
Return true if a toolbar should be created.
bool preserveOrder()
Return true if read order should be used in display.
void convertToXML(vtkPVXMLElement *root)
Add Proxies and SubCategories XML declaration to root element.
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.