def _signal_colorSelectBt_clicked(self): r, g, b, a = self._val.getVal() resColor = QColorDialog.getColor(QColor(r, g, b, a), self, "Select Color", QColorDialog.ShowAlphaChannel) if not resColor.isValid(): return self._push(resColor) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_ySpinBox_valueChanged(self, newYVal): x, y = self._val.getVal() self._push(x, newYVal) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_removeBt_clicked(self, button): self._val.removeElement(button._value) SendMessage(MsgOnLogicDataEdited(self._val))
def _insertNewItem(self): self._val.addNewElement() SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_zSpinBox_valueChanged(self, newZVal): x, y, z, w = self._val.getVal() self._push(x, y, newZVal, w) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_floatSpinBox_valueChanged(self, newValue): self._push(newValue) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_xSpinBox_valueChanged(self, newXVal): yAngle = self._ySpinBox.value() zAngle = self._zSpinBox.value() self._push(newXVal, yAngle, zAngle) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_zSpinBox_valueChanged(self, newZVal): xAngle = self._xSpinBox.value() yAngle = self._ySpinBox.value() self._push(xAngle, yAngle, newZVal) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_spinBox_valueCanged(self, val): self._push(val) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_comboBox_indexChanged(self, idx): text = self._comboBox.currentText() self._push(text) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_xSpinBox_valueChanged(self, newXVal): x, y, z = self._val.getVal() self._push(newXVal, y, z) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_lineEdit_textEdited(self, text): self._push(text) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_checkBox_stateChanged(self, state): if state == Qt.Checked: self._push(True) else: self._push(False) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_selectBt_clicked(self): res = ExecSelectFromChildrenEntities(self._val.getEntity()) if res is None: return self._push(res) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_clearBt_clicked(self): self._push(None) SendMessage(MsgOnLogicDataEdited(self._val))
def _signal_selectBt_clicked(self): res = ExecResourceSelectDialog(self._val.getResourceType()) if res is None: return self._push(res.getRelativePath()) SendMessage(MsgOnLogicDataEdited(self._val))