+#define GET_INDEXED_BOOL(name, num, totalIndices) if (totalIndices > 0) {vogleditor_stateTreeItem* pNode = new vogleditor_stateTreeItem(#name, "", this);\
+ for (int i = 0; i < totalIndices; i++) {\
+ if (generalState.get<bool>(name, i, bVals, num, true)) {\
+ vogleditor_stateTreeStateVecBoolItem* pBoolItem = new vogleditor_stateTreeStateVecBoolItem(STR_INT(i), name, i, generalState, &(bVals[i]), num, true, pNode);\
+ this->m_diffableItems.push_back(pBoolItem);\
+ pNode->appendChild(pBoolItem); }\
+ } pNode->setValue(tmp.sprintf("[%d]", pNode->childCount())); this->appendChild(pNode);}
+