void ActionEditor::updateParameter() { QModelIndex current = ui.TvPredicateTree->currentIndex(); PredicateItem * currentItem = static_cast<PredicateItem*>( current.internalPointer() ); ui.CbParameterType->setCurrentIndex( currentItem->itemType ); updatePropertyList(); ui.CbDeviceType->setCurrentIndex( actionData()->interfacePosition( currentItem->ifaceType ) ); int valuePos = actionData()->propertyPosition( currentItem->ifaceType, currentItem->property ); ui.CbValueName->setCurrentIndex( valuePos ); ui.LeValueMatch->setText( currentItem->value.toString() ); ui.CbValueMatch->setCurrentIndex( currentItem->compOperator ); }
void OnUpdateTimer (wxTimerEvent &event) { updatePropertyList(); }