43 if (sharedFromThis()) {
45 m_Detector->pushPropertiesToProxy(sharedFromThis());
52 printf(
"Proxy initialize failed\n");
59 return property(
"enabled").toBool();
64 setProperty(
"enabled", a);
69 return property(
"detectorNumber").toInt();
74 return property(
"detectorType").toInt();
84 return property(
"detectorName").toString();
89 setProperty(
"detectorName", name);
105 m_Detector->pushPropertiesToProxy(sharedFromThis());
113 if (d->exec() == QDialog::Accepted) {
142 setProperty(qPrintable(name), value);
150 for (
int i = 0; i<nProps; i++) {
164 for (
int i=0; i<nProps; i++) {
169 if (propVal.isValid()) {
170 setProperty(qPrintable(propName), propVal);
QxrdDetectorPtr detector()
QSharedPointer< QxrdAcquisition > QxrdAcquisitionPtr
QxrdDetectorThreadPtr m_DetectorThread
QxrdDetectorProxy(QxrdDetectorThreadPtr thr, QxrdDetectorPtr det, QxrdAcquisitionPtr acq)
void appendProperty(int type, QString name, QString description, QVariant value)
QVariant propertyValue(int propType, int i)
void pushPropertiesToDialog(QxrdDetectorConfigurationDialog *dialog)
void setDetectorName(QString name)
QString detectorTypeName()
QVector< QString > m_PropertyDescriptions
QVector< QString > m_PropertyNames
static void pushDefaultsToProxy(int detectorType, QxrdDetectorProxyPtr proxy)
void pushProperty(PropertyType type, QString name, QString description, QVariant value)
QxrdAcquisitionPtr m_Acquisition
void pullPropertiesFromDialog(QxrdDetectorConfigurationDialog *dialog)
QSharedPointer< QxrdDetectorThread > QxrdDetectorThreadPtr
QSharedPointer< QxrdDetector > QxrdDetectorPtr
QxrdDetectorPtr m_Detector
static QString detectorTypeName(int detectorType)
QVector< QVariant > m_PropertyValues
QVector< PropertyType > m_PropertyTypes
QxrdDetectorThreadPtr detectorThread()