32 #ifndef pqSignalAdaptorCompositeTreeWidget_h 33 #define pqSignalAdaptorCompositeTreeWidget_h 35 #include "pqComponentsModule.h" 42 class QTreeWidgetItem;
43 class vtkPVDataInformation;
44 class vtkSMIntVectorProperty;
45 class vtkSMOutputPort;
46 class vtkSMSourceProxy;
56 typedef QObject Superclass;
58 Q_PROPERTY(QList<QVariant> values READ values WRITE setValues)
77 bool autoUpdateWidgetVisibility=
false,
78 bool showSelectedElementCounts=
false);
98 bool selectMultiple=
false,
99 bool autoUpdateWidgetVisibility=
false,
100 bool showSelectedElementCounts=
false);
107 QList<QVariant> values()
const;
112 { this->AutoUpdateWidgetVisibility = val; }
114 {
return this->AutoUpdateWidgetVisibility; }
117 void select(
unsigned int flatIndex);
121 unsigned int getCurrentFlatIndex(
bool* valid=NULL);
125 QString blockName(
const QTreeWidgetItem* item)
const;
129 unsigned int hierarchicalLevel(
const QTreeWidgetItem* item)
const;
133 unsigned int hierarchicalBlockIndex(
const QTreeWidgetItem* item)
const;
137 unsigned int flatIndex(
const QTreeWidgetItem* item)
const;
141 void setValues(
const QList<QVariant>& values);
144 void domainChanged();
148 void portInformationChanged();
152 void valuesChanged();
158 void updateSelectionCounts();
164 void setupSelectionUpdatedCallback(vtkSMSourceProxy* source,
unsigned int port);
168 vtkPVDataInformation* info);
171 void updateItemFlags();
174 pqInternal* Internal;
178 FLAT_INDEX = Qt::UserRole,
179 AMR_LEVEL_NUMBER = Qt::UserRole+1,
180 AMR_BLOCK_INDEX = Qt::UserRole+2,
181 NODE_TYPE = Qt::UserRole+3,
182 ORIGINAL_LABEL = Qt::UserRole+4,
183 BLOCK_NAME = Qt::UserRole+5
202 CheckModes CheckMode;
205 unsigned int FlatIndex;
206 unsigned int LevelNo;
208 bool AutoUpdateWidgetVisibility;
212 bool ShowSelectedElementCounts;
215 bool ShowDatasetsInMultiPiece;
218 void constructor(QTreeWidget* tree,
bool autoUpdateVisibility);
224 friend class pqCallbackAdaptor;
225 class pqCallbackAdaptor;
226 pqCallbackAdaptor* CallbackAdaptor;