QXRD  0.11.16
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | Static Private Attributes | List of all members
QcepProperty Class Reference

#include <qcepproperty.h>

Inheritance diagram for QcepProperty:
Inheritance graph
[legend]
Collaboration diagram for QcepProperty:
Collaboration graph
[legend]

Public Member Functions

 QcepProperty (QcepSettingsSaverWPtr saver, QObject *parent, const char *name, QString toolTip)
 
virtual void printMessage (QString msg, QDateTime dt=QDateTime::currentDateTime())
 
QString name () const
 
void setName (QString name)
 
QString parentName () const
 
QString toolTip () const
 
void setToolTip (QString tip)
 
QString expandedToolTip () const
 
void setWidgetToolTip (QWidget *widget)
 
int index ()
 
int incIndex (int step)
 
int debug () const
 
void setDebug (int dbg)
 
void setSaver (QcepSettingsSaverWPtr saver)
 

Static Public Member Functions

static void registerMetaTypes ()
 
static void setSettingsValue (QSettings *settings, QString name, QVariant value)
 
static void writeSettings (QObject *object, QSettings *settings, QString section)
 
static void readSettings (QObject *object, QSettings *settings, QString section)
 
static void writeSettings (QObject *object, const QMetaObject *meta, QString groupName, QSettings *settings, bool includeDynamic=false)
 
static void readSettings (QObject *object, const QMetaObject *meta, QString groupName, QSettings *settings, bool includeDynamic=false)
 
static void writeSettings (QObject *object, QString groupName, QSettings *settings, bool includeDynamic=false)
 
static void readSettings (QObject *object, QString groupName, QSettings *settings, bool includeDynamic=false)
 
static void registerCustomSaver (QString typeName, CustomSettingsSaver *saver)
 

Protected Attributes

QMutex m_Mutex
 
QcepSettingsSaverWPtr m_Saver
 

Private Attributes

int m_Debug
 
int m_IsStored
 
QString m_Name
 
QAtomicInt m_Index
 
QObject * m_Parent
 
QString m_ToolTip
 

Static Private Attributes

static QMap< QString, CustomSettingsSaver * > m_CustomSavers
 

Detailed Description

Definition at line 30 of file qcepproperty.h.

Constructor & Destructor Documentation

QcepProperty::QcepProperty ( QcepSettingsSaverWPtr  saver,
QObject *  parent,
const char *  name,
QString  toolTip 
)

Definition at line 23 of file qcepproperty.cpp.

References m_IsStored, m_Saver, printMessage(), QCEP_DOC_OBJECT(), and toolTip().

24  : QObject(),
25  m_Mutex(QMutex::Recursive),
26  m_Saver(saver),
27  m_Debug(false),
28  m_IsStored(false),
29  m_Name(name),
30  m_Parent(parent),
32 {
33  setObjectName(name);
34 
35  if (parent) {
36  const QMetaObject *metaObj = parent->metaObject();
37 
38  if (metaObj) {
39  int i = metaObj->indexOfProperty(name);
40 
41  if (i>=0) {
42  QMetaProperty metaProperty = metaObj->property(i);
43 
44  if (metaProperty.isStored()) {
45  m_IsStored = true;
46  } else {
47  m_IsStored = false;
48  }
49  }
50  }
51 
52  QCEP_DOC_OBJECT(tr("%1.%2").arg(parent->objectName()).arg(name), toolTip)
53  }
54 
55  if (m_Saver && !m_IsStored) {
56  printMessage(tr("Warning: property %1 of parent %2 has saver but is not stored")
57  .arg(name).arg(parent?parent->objectName():"NULL"));
58 // printf("Warning: property %s has saver but is not stored\n", qPrintable(name));
59  }
60 
61 // if (m_IsStored && !m_Saver) {
62 // printMessage(tr("Warning: property %1 of parent %2 is stored but has no saver")
63 // .arg(name).arg(parent?parent->objectName():"NULL"));
65 // }
66 }
QObject * m_Parent
Definition: qcepproperty.h:77
QMutex m_Mutex
Definition: qcepproperty.h:69
QString m_Name
Definition: qcepproperty.h:75
QCEP_DOC_OBJECT("JSON","Qt Built-in JSON Parser") QCEP_DOC_FUNCTION("JSON.parse"
virtual void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime())
QString name() const
QString m_ToolTip
Definition: qcepproperty.h:78
QString toolTip() const
QcepSettingsSaverWPtr m_Saver
Definition: qcepproperty.h:70

Here is the call graph for this function:

Member Function Documentation

int QcepProperty::debug ( ) const

Definition at line 160 of file qcepproperty.cpp.

References m_Debug, and m_Mutex.

Referenced by QcepVector3DProperty::incValue(), QcepMatrix3x3Property::incValue(), QcepDoubleProperty::incValue(), QcepIntProperty::incValue(), QcepDoubleListProperty::incValue(), QcepDoubleVectorProperty::incValue(), QcepIntListProperty::incValue(), QcepIntVectorProperty::incValue(), QcepInt64Property::incValue(), QcepDoubleProperty::linkTo(), QcepIntProperty::linkTo(), QcepBoolProperty::linkTo(), QcepStringProperty::linkTo(), QcepIntProperty::resetValue(), QcepBoolProperty::resetValue(), QcepInt64Property::resetValue(), QcepBoolPropertyButtonHelper::setChecked(), QcepIntPropertyComboBoxHelper::setCurrentIndex(), QcepStringPropertyComboBoxHelper::setCurrentIndex(), QcepStringPropertyLineEditHelper::setText(), QcepStringPropertyTextEditHelper::setText(), QcepVector3DProperty::setValue(), QcepMatrix3x3Property::setValue(), QxrdPowderPointProperty::setValue(), QcepDoubleProperty::setValue(), QxrdPowderPointVectorProperty::setValue(), QcepDoublePropertyDoubleSpinBoxHelper::setValue(), QcepIntProperty::setValue(), QcepIntPropertySpinBoxHelper::setValue(), QcepBoolProperty::setValue(), QcepStringProperty::setValue(), QcepStringPropertyComboBoxHelper::setValue(), QcepDateTimeProperty::setValue(), QcepDoubleListProperty::setValue(), QcepDoubleVectorProperty::setValue(), QcepIntListProperty::setValue(), QcepIntVectorProperty::setValue(), QcepStringListProperty::setValue(), QcepByteArrayProperty::setValue(), QcepDoublePointProperty::setValue(), QcepDoubleRectProperty::setValue(), QcepPolygonProperty::setValue(), and QcepInt64Property::setValue().

161 {
162  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
163 
164  return m_Debug;
165 }
QMutex m_Mutex
Definition: qcepproperty.h:69

Here is the caller graph for this function:

QString QcepProperty::expandedToolTip ( ) const

Definition at line 107 of file qcepproperty.cpp.

References m_Mutex, name(), parentName(), and toolTip().

Referenced by setWidgetToolTip().

108 {
109  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
110 
111  QString pn = parentName();
112  QString nm = name();
113  QString tt = toolTip();
114 
115  if (pn.count() && nm.count() && tt.count()) {
116  return pn+"."+nm+"\n"+tt;
117  } else if (pn.count() || nm.count()) {
118  return pn+"."+nm+"\n"+tt;
119  } else {
120  return tt;
121  }
122 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QString parentName() const
QString name() const
QString toolTip() const

Here is the call graph for this function:

Here is the caller graph for this function:

int QcepProperty::incIndex ( int  step)

Definition at line 146 of file qcepproperty.cpp.

References m_Index, and m_Mutex.

Referenced by QcepVector3DProperty::incValue(), QcepMatrix3x3Property::incValue(), QcepDoubleProperty::incValue(), QcepIntProperty::incValue(), QcepDoubleListProperty::incValue(), QcepDoubleVectorProperty::incValue(), QcepIntListProperty::incValue(), QcepIntVectorProperty::incValue(), QcepInt64Property::incValue(), QcepBoolPropertyButtonHelper::setChecked(), QcepIntPropertyComboBoxHelper::setCurrentIndex(), QcepStringPropertyComboBoxHelper::setCurrentIndex(), QxrdPowderPointProperty::setSubValue(), QcepDoublePointProperty::setSubValue(), QcepStringPropertyLineEditHelper::setText(), QcepStringPropertyTextEditHelper::setText(), QcepVector3DProperty::setValue(), QxrdPowderPointProperty::setValue(), QcepMatrix3x3Property::setValue(), QxrdPowderPointPropertySpinBoxHelper::setValue(), QxrdPowderPointPropertyDoubleSpinBoxHelper::setValue(), QcepDoubleProperty::setValue(), QxrdPowderPointVectorProperty::setValue(), QcepDoublePropertyDoubleSpinBoxHelper::setValue(), QcepIntProperty::setValue(), QcepIntPropertySpinBoxHelper::setValue(), QcepBoolProperty::setValue(), QcepStringProperty::setValue(), QcepDateTimeProperty::setValue(), QcepDoubleListProperty::setValue(), QcepDoubleVectorProperty::setValue(), QcepIntListProperty::setValue(), QcepIntVectorProperty::setValue(), QcepStringListProperty::setValue(), QcepByteArrayProperty::setValue(), QcepDoublePointProperty::setValue(), QcepDoublePointPropertyDoubleSpinBoxHelper::setValue(), QcepDoubleRectProperty::setValue(), QcepPolygonProperty::setValue(), and QcepInt64Property::setValue().

147 {
148  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
149 
150  return m_Index.fetchAndAddOrdered(step) + step;
151 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QAtomicInt m_Index
Definition: qcepproperty.h:76

Here is the caller graph for this function:

int QcepProperty::index ( )

Definition at line 139 of file qcepproperty.cpp.

References m_Index, and m_Mutex.

Referenced by QcepStringProperty::linkTo(), QcepBoolPropertyButtonHelper::setChecked(), QcepIntPropertyComboBoxHelper::setCurrentIndex(), QxrdPowderPointProperty::setSubValue(), QxrdPowderPointPropertySpinBoxHelper::setSubValue(), QxrdPowderPointPropertyDoubleSpinBoxHelper::setSubValue(), QcepDoublePointProperty::setSubValue(), QcepDoublePointPropertyDoubleSpinBoxHelper::setSubValue(), QcepStringPropertyLineEditHelper::setText(), QcepStringPropertyTextEditHelper::setText(), QcepVector3DProperty::setValue(), QcepMatrix3x3Property::setValue(), QxrdPowderPointProperty::setValue(), QcepDoubleProperty::setValue(), QxrdPowderPointVectorProperty::setValue(), QcepDoublePropertyDoubleSpinBoxHelper::setValue(), QcepIntProperty::setValue(), QcepIntPropertySpinBoxHelper::setValue(), QcepBoolProperty::setValue(), QcepStringProperty::setValue(), QcepStringPropertyComboBoxHelper::setValue(), QcepDateTimeProperty::setValue(), QcepDoubleListProperty::setValue(), QcepDoubleVectorProperty::setValue(), QcepIntListProperty::setValue(), QcepIntVectorProperty::setValue(), QcepStringListProperty::setValue(), QcepByteArrayProperty::setValue(), QcepDoublePointProperty::setValue(), QcepDoubleRectProperty::setValue(), QcepPolygonProperty::setValue(), and QcepInt64Property::setValue().

140 {
141  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
142 
143  return m_Index.fetchAndAddOrdered(0);
144 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QAtomicInt m_Index
Definition: qcepproperty.h:76

Here is the caller graph for this function:

QString QcepProperty::name ( ) const

Definition at line 68 of file qcepproperty.cpp.

References m_Mutex, and m_Name.

Referenced by expandedToolTip(), QcepVector3DProperty::incValue(), QcepMatrix3x3Property::incValue(), QcepDoubleProperty::incValue(), QcepIntProperty::incValue(), QcepDoubleListProperty::incValue(), QcepDoubleVectorProperty::incValue(), QcepIntListProperty::incValue(), QcepIntVectorProperty::incValue(), QcepInt64Property::incValue(), QcepDoubleProperty::linkTo(), QcepIntProperty::linkTo(), QcepBoolProperty::linkTo(), QcepStringProperty::linkTo(), QxrdFitParameter::readSettings(), QcepVector3DProperty::resetValue(), QxrdPowderPointProperty::resetValue(), QcepMatrix3x3Property::resetValue(), QxrdPowderPointVectorProperty::resetValue(), QcepDoubleProperty::resetValue(), QcepIntProperty::resetValue(), QcepBoolProperty::resetValue(), QcepStringProperty::resetValue(), QcepDateTimeProperty::resetValue(), QcepDoubleListProperty::resetValue(), QcepDoubleVectorProperty::resetValue(), QcepIntListProperty::resetValue(), QcepIntVectorProperty::resetValue(), QcepStringListProperty::resetValue(), QcepByteArrayProperty::resetValue(), QcepDoublePointProperty::resetValue(), QcepDoubleRectProperty::resetValue(), QcepPolygonProperty::resetValue(), QcepInt64Property::resetValue(), QcepBoolPropertyButtonHelper::setChecked(), QcepIntPropertyComboBoxHelper::setCurrentIndex(), QcepStringPropertyComboBoxHelper::setCurrentIndex(), setName(), setSettingsValue(), QcepStringPropertyLineEditHelper::setText(), QcepStringPropertyTextEditHelper::setText(), QcepVector3DProperty::setValue(), QxrdPowderPointProperty::setValue(), QcepMatrix3x3Property::setValue(), QcepDoubleProperty::setValue(), QxrdPowderPointVectorProperty::setValue(), QcepDoublePropertyDoubleSpinBoxHelper::setValue(), QcepIntProperty::setValue(), QcepIntPropertySpinBoxHelper::setValue(), QcepBoolProperty::setValue(), QcepStringProperty::setValue(), QcepStringPropertyComboBoxHelper::setValue(), QcepDateTimeProperty::setValue(), QcepDoubleListProperty::setValue(), QcepDoubleVectorProperty::setValue(), QcepIntListProperty::setValue(), QcepIntVectorProperty::setValue(), QcepStringListProperty::setValue(), QcepByteArrayProperty::setValue(), QcepDoublePointProperty::setValue(), QcepDoubleRectProperty::setValue(), QcepPolygonProperty::setValue(), QcepInt64Property::setValue(), QxrdFitParameter::writeSettings(), and writeSettings().

69 {
70  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
71 
72  return m_Name;
73 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QString m_Name
Definition: qcepproperty.h:75

Here is the caller graph for this function:

QString QcepProperty::parentName ( ) const

Definition at line 82 of file qcepproperty.cpp.

References m_Mutex, and m_Parent.

Referenced by expandedToolTip().

83 {
84  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
85 
86  if (m_Parent) {
87  return m_Parent->objectName();
88  } else {
89  return QString();
90  }
91 }
QObject * m_Parent
Definition: qcepproperty.h:77
QMutex m_Mutex
Definition: qcepproperty.h:69

Here is the caller graph for this function:

void QcepProperty::printMessage ( QString  msg,
QDateTime  dt = QDateTime::currentDateTime() 
)
virtual

Definition at line 672 of file qcepproperty.cpp.

References INVOKE_CHECK, m_Parent, and m_Saver.

Referenced by QcepVector3DProperty::incValue(), QcepMatrix3x3Property::incValue(), QcepDoubleProperty::incValue(), QcepIntProperty::incValue(), QcepDoubleListProperty::incValue(), QcepDoubleVectorProperty::incValue(), QcepIntListProperty::incValue(), QcepIntVectorProperty::incValue(), QcepInt64Property::incValue(), QcepDoubleProperty::linkTo(), QcepIntProperty::linkTo(), QcepBoolProperty::linkTo(), QcepStringProperty::linkTo(), QcepProperty(), QcepVector3DProperty::resetValue(), QxrdPowderPointProperty::resetValue(), QcepMatrix3x3Property::resetValue(), QcepDoubleProperty::resetValue(), QxrdPowderPointVectorProperty::resetValue(), QcepIntProperty::resetValue(), QcepBoolProperty::resetValue(), QcepStringProperty::resetValue(), QcepDateTimeProperty::resetValue(), QcepDoubleListProperty::resetValue(), QcepDoubleVectorProperty::resetValue(), QcepIntListProperty::resetValue(), QcepIntVectorProperty::resetValue(), QcepStringListProperty::resetValue(), QcepByteArrayProperty::resetValue(), QcepDoublePointProperty::resetValue(), QcepDoubleRectProperty::resetValue(), QcepPolygonProperty::resetValue(), QcepInt64Property::resetValue(), QcepBoolPropertyButtonHelper::setChecked(), QcepIntPropertyComboBoxHelper::setCurrentIndex(), QcepStringPropertyComboBoxHelper::setCurrentIndex(), QcepStringPropertyLineEditHelper::setText(), QcepStringPropertyTextEditHelper::setText(), QcepVector3DProperty::setValue(), QcepMatrix3x3Property::setValue(), QxrdPowderPointProperty::setValue(), QcepDoubleProperty::setValue(), QxrdPowderPointVectorProperty::setValue(), QcepDoublePropertyDoubleSpinBoxHelper::setValue(), QcepIntProperty::setValue(), QcepIntPropertySpinBoxHelper::setValue(), QcepBoolProperty::setValue(), QcepStringProperty::setValue(), QcepStringPropertyComboBoxHelper::setValue(), QcepDateTimeProperty::setValue(), QcepDoubleListProperty::setValue(), QcepDoubleVectorProperty::setValue(), QcepIntListProperty::setValue(), QcepIntVectorProperty::setValue(), QcepStringListProperty::setValue(), QcepByteArrayProperty::setValue(), QcepDoublePointProperty::setValue(), QcepDoubleRectProperty::setValue(), QcepPolygonProperty::setValue(), and QcepInt64Property::setValue().

673 {
675 
676  if (saver) {
677  saver->printMessage(msg, ts);
678  } else if (m_Parent) {
679  INVOKE_CHECK(QMetaObject::invokeMethod(m_Parent, "printMessage",
680  Q_ARG(QString, msg),
681  Q_ARG(QDateTime, QDateTime::currentDateTime())));
682  } else {
683  printf("%s\n", qPrintable(msg));
684  }
685 }
QObject * m_Parent
Definition: qcepproperty.h:77
#define INVOKE_CHECK(res)
Definition: qcepmacros.h:13
QSharedPointer< QcepSettingsSaver > QcepSettingsSaverPtr
QcepSettingsSaverWPtr m_Saver
Definition: qcepproperty.h:70

Here is the caller graph for this function:

void QcepProperty::readSettings ( QObject *  object,
QSettings *  settings,
QString  section 
)
static

Definition at line 513 of file qcepproperty.cpp.

References DEBUG_PREFS, DEBUG_PROPERTIES, INVOKE_CHECK, and qcepDebug().

Referenced by QcepImageDataBase::loadMetaData(), QxrdDistortionCorrectionDialogSettings::readSettings(), QxrdInfoDialogSettings::readSettings(), QxrdScriptDialogSettings::readSettings(), QxrdAcquisitionExtraInputsDialogSettings::readSettings(), QxrdSynchronizedAcquisitionDialogSettings::readSettings(), QxrdServer::readSettings(), QxrdHistogramDialogSettings::readSettings(), QxrdSliceDialogSettings::readSettings(), QxrdWelcomeWindow::readSettings(), QxrdFileBrowserSettings::readSettings(), QxrdSimpleServer::readSettings(), QxrdWindowSettings::readSettings(), QcepObject::readSettings(), and QxrdApplication::readSettings().

514 {
515  if (settings && object) {
516  const QMetaObject *meta = object->metaObject();
517  settings->beginGroup(section);
518 
519  QStringList keys = settings->childKeys();
520 
521  foreach (QString key, keys) {
522  if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
523  QString msg = tr("Load %1/%2 = %3 [%4]")
524  .arg(section).arg(key)
525  .arg(settings->value(key).toString())
526  .arg(settings->value(key).typeName());
527 
528  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
529  Q_ARG(QString, msg),
530  Q_ARG(QDateTime, QDateTime::currentDateTime())));
531  }
532 
533  int metaindex = meta->indexOfProperty(qPrintable(key));
534 
535  if (metaindex == 0) { // objectName is ignored on reading
536  } else if (metaindex > 0) {
537  QMetaProperty metaproperty = meta->property(metaindex);
538 
539  if (metaproperty.isStored()) {
540  object -> setProperty(qPrintable(key), settings->value(key));
541  } else {
542  if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
543  QString msg = tr("property %1 of %2 not stored").arg(key)
544  .arg(meta -> className());
545 
546  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
547  Q_ARG(QString, msg),
548  Q_ARG(QDateTime, QDateTime::currentDateTime())));
549  }
550  }
551  } else {
552  object -> setProperty(qPrintable(key), settings->value(key));
553  }
554  }
555 
556  settings->endGroup();
557  }
558 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
#define INVOKE_CHECK(res)
Definition: qcepmacros.h:13

Here is the call graph for this function:

Here is the caller graph for this function:

void QcepProperty::readSettings ( QObject *  object,
const QMetaObject *  meta,
QString  groupName,
QSettings *  settings,
bool  includeDynamic = false 
)
static

Definition at line 560 of file qcepproperty.cpp.

References DEBUG_PREFS, DEBUG_PROPERTIES, INVOKE_CHECK, and qcepDebug().

561 {
562  if (settings && object) {
563  settings->beginGroup(groupName);
564 
565  QStringList keys = settings->childKeys();
566 
567  foreach (QString key, keys) {
568  if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
569  QString msg = tr("Load %1/%2 = %3 [%4]")
570  .arg(groupName).arg(key)
571  .arg(settings->value(key).toString())
572  .arg(settings->value(key).typeName());
573 
574  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
575  Q_ARG(QString, msg),
576  Q_ARG(QDateTime, QDateTime::currentDateTime())));
577  }
578 
579  int metaindex = meta->indexOfProperty(qPrintable(key));
580 
581  if (metaindex == 0) { // objectName is ignored on reading
582  } else if (metaindex > 0) {
583  QMetaProperty metaproperty = meta->property(metaindex);
584 
585  if (metaproperty.isStored()) {
586  object -> setProperty(qPrintable(key), settings->value(key));
587  } else {
588  if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
589  QString msg = tr("property %1 of %2 not stored").arg(key)
590  .arg(meta -> className());
591 
592  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
593  Q_ARG(QString, msg),
594  Q_ARG(QDateTime, QDateTime::currentDateTime())));
595  }
596  }
597  } else {
598  if (includeDynamic) {
599  object -> setProperty(qPrintable(key), settings->value(key));
600  } else if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
601  QString msg = tr("property %1 of %2 does not exist")
602  .arg(key).arg(meta -> className());
603 
604  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
605  Q_ARG(QString, msg),
606  Q_ARG(QDateTime, QDateTime::currentDateTime())));
607  }
608  }
609  }
610 
611  settings->endGroup();
612  }
613 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
#define INVOKE_CHECK(res)
Definition: qcepmacros.h:13

Here is the call graph for this function:

void QcepProperty::readSettings ( QObject *  object,
QString  groupName,
QSettings *  settings,
bool  includeDynamic = false 
)
static

Definition at line 615 of file qcepproperty.cpp.

References DEBUG_PREFS, DEBUG_PROPERTIES, INVOKE_CHECK, and qcepDebug().

616 {
617  if (settings && object) {
618  const QMetaObject *meta = object->metaObject();
619 
620  settings->beginGroup(groupName);
621 
622  QStringList keys = settings->childKeys();
623 
624  foreach (QString key, keys) {
625  if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
626  QString msg = tr("Load %1/%2 = %3 [%4]")
627  .arg(groupName).arg(key)
628  .arg(settings->value(key).toString())
629  .arg(settings->value(key).typeName());
630 
631  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
632  Q_ARG(QString, msg),
633  Q_ARG(QDateTime, QDateTime::currentDateTime())));
634  }
635 
636  int metaindex = meta->indexOfProperty(qPrintable(key));
637 
638  if (metaindex == 0) { // objectName is ignored on reading
639  } else if (metaindex > 0) {
640  QMetaProperty metaproperty = meta->property(metaindex);
641 
642  if (metaproperty.isStored()) {
643  object -> setProperty(qPrintable(key), settings->value(key));
644  } else {
645  if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
646  QString msg = tr("property %1 of %2 not stored").arg(key)
647  .arg(meta -> className());
648 
649  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
650  Q_ARG(QString, msg),
651  Q_ARG(QDateTime, QDateTime::currentDateTime())));
652  }
653  }
654  } else {
655  if (includeDynamic) {
656  object -> setProperty(qPrintable(key), settings->value(key));
657  } else if (object && (qcepDebug(DEBUG_PREFS) || qcepDebug(DEBUG_PROPERTIES))) {
658  QString msg = tr("property %1 of %2 does not exist")
659  .arg(key).arg(meta -> className());
660 
661  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
662  Q_ARG(QString, msg),
663  Q_ARG(QDateTime, QDateTime::currentDateTime())));
664  }
665  }
666  }
667 
668  settings->endGroup();
669  }
670 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
#define INVOKE_CHECK(res)
Definition: qcepmacros.h:13

Here is the call graph for this function:

void QcepProperty::registerCustomSaver ( QString  typeName,
CustomSettingsSaver saver 
)
static

Definition at line 705 of file qcepproperty.cpp.

References m_CustomSavers.

Referenced by QxrdCalibrantDSpacings::registerMetaTypes(), QxrdCalibrantDSpacing::registerMetaTypes(), QxrdPowderPoint::registerMetaTypes(), registerMetaTypes(), and QxrdPowderPointVector::registerMetaTypes().

706 {
707  m_CustomSavers[typeName] = saver;
708 }
static QMap< QString, CustomSettingsSaver * > m_CustomSavers
Definition: qcepproperty.h:80

Here is the caller graph for this function:

void QcepProperty::registerMetaTypes ( )
static

Definition at line 167 of file qcepproperty.cpp.

References QcepMatrix3x3::customSaver(), QcepVector3D::customSaver(), and registerCustomSaver().

Referenced by QxrdApplication::QxrdApplication().

168 {
169  qRegisterMetaType< QcepDoubleVector >("QcepDoubleVector");
170  qRegisterMetaType< QcepBoolVector >("QcepBoolVector");
171  qRegisterMetaType< QcepIntVector >("QcepIntVector");
172  qRegisterMetaType< QcepStringVector >("QcepStringVector");
173  qRegisterMetaType< QcepDoubleList >("QcepDoubleList");
174  qRegisterMetaType< QcepBoolList >("QcepBoolList");
175  qRegisterMetaType< QcepIntList >("QcepIntList");
176  qRegisterMetaType< QcepStringList >("QcepStringList");
177  qRegisterMetaType< QPointF >("QPointF");
178  qRegisterMetaType< QRectF >("QRectF");
179  qRegisterMetaType< QcepPolygon >("QcepPolygon");
180  qRegisterMetaType< QVariant >("QVariant");
181  qRegisterMetaType< QcepPropertyValue >("QcepPropertyValue");
182  qRegisterMetaType< QcepPropertyValue* >("QcepPropertyValue*");
183  qRegisterMetaType< QcepMatrix3x3 >("QcepMatrix3x3");
184  qRegisterMetaType< QcepVector3D >("QcepVector3D");
185  qRegisterMetaTypeStreamOperators< QcepDoubleVector >("QcepDoubleVector");
186  qRegisterMetaTypeStreamOperators< QcepBoolVector >("QcepBoolVector");
187  qRegisterMetaTypeStreamOperators< QcepIntVector >("QcepIntVector");
188  qRegisterMetaTypeStreamOperators< QcepStringVector >("QcepStringVector");
189  qRegisterMetaTypeStreamOperators< QcepDoubleList >("QcepDoubleList");
190  qRegisterMetaTypeStreamOperators< QcepBoolList >("QcepBoolList");
191  qRegisterMetaTypeStreamOperators< QcepIntList >("QcepIntList");
192  qRegisterMetaTypeStreamOperators< QcepStringList >("QcepStringList");
193  qRegisterMetaTypeStreamOperators< QPointF >("QPointF");
194  qRegisterMetaTypeStreamOperators< QRectF >("QRectF");
195  qRegisterMetaTypeStreamOperators< QcepPolygon >("QcepPolygon");
196  qRegisterMetaTypeStreamOperators< QcepMatrix3x3 >("QcepMatrix3x3");
197  qRegisterMetaTypeStreamOperators< QcepVector3D >("QcepVector3D");
198 
201 }
static void customSaver(const QVariant &val, QSettings *settings, QString name)
static void registerCustomSaver(QString typeName, CustomSettingsSaver *saver)
static void customSaver(const QVariant &val, QSettings *settings, QString name)

Here is the call graph for this function:

Here is the caller graph for this function:

void QcepProperty::setDebug ( int  dbg)

Definition at line 153 of file qcepproperty.cpp.

References m_Debug, and m_Mutex.

154 {
155  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
156 
157  m_Debug = dbg;
158 }
QMutex m_Mutex
Definition: qcepproperty.h:69
void QcepProperty::setName ( QString  name)

Definition at line 75 of file qcepproperty.cpp.

References m_Mutex, m_Name, and name().

76 {
77  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
78 
79  m_Name = name;
80 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QString m_Name
Definition: qcepproperty.h:75
QString name() const

Here is the call graph for this function:

void QcepProperty::setSaver ( QcepSettingsSaverWPtr  saver)

Definition at line 203 of file qcepproperty.cpp.

References m_Mutex, and m_Saver.

204 {
205  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
206 
207  m_Saver = saver;
208 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QcepSettingsSaverWPtr m_Saver
Definition: qcepproperty.h:70
void QcepProperty::setSettingsValue ( QSettings *  settings,
QString  name,
QVariant  value 
)
static

Definition at line 210 of file qcepproperty.cpp.

References m_CustomSavers, name(), QcepMatrix3x3::setSettingsValue(), and QcepVector3D::setSettingsValue().

Referenced by writeSettings().

211 {
212  settings->setValue(name, v);
213 
214 // QVariant::Type typeId = v.type();
215  QString typeName = v.typeName();
216 
217  if (m_CustomSavers.contains(typeName)) {
218  CustomSettingsSaver *saver = m_CustomSavers[typeName];
219 
220  if (saver) {
221  (*saver)(v, settings, name);
222  }
223  } else if (v.canConvert<QcepVector3D>()) {
224  QcepVector3D pv = v.value<QcepVector3D>();
225 
226  pv.setSettingsValue(settings, name);
227  } else if (v.canConvert<QcepMatrix3x3>()) {
228  QcepMatrix3x3 pv = v.value<QcepMatrix3x3>();
229 
230  pv.setSettingsValue(settings, name);
231  } else if (v.canConvert<QcepDoubleVector>()){
232  QcepDoubleVector dv = v.value<QcepDoubleVector>();
233 
234  settings->beginWriteArray(name, dv.count());
235 
236  for (int i=0; i<dv.count(); i++) {
237  settings->setArrayIndex(i);
238  settings->setValue(name, dv.value(i));
239  }
240 
241  settings->endArray();
242  } else if (v.canConvert<QcepBoolVector>()) {
243  QcepBoolVector dv = v.value<QcepBoolVector>();
244 
245  settings->beginWriteArray(name, dv.count());
246 
247  for (int i=0; i<dv.count(); i++) {
248  settings->setArrayIndex(i);
249  settings->setValue(name, dv.value(i));
250  }
251 
252  settings->endArray();
253  } else if (v.canConvert<QcepIntVector>()) {
254  QcepIntVector dv = v.value<QcepIntVector>();
255 
256  settings->beginWriteArray(name, dv.count());
257 
258  for (int i=0; i<dv.count(); i++) {
259  settings->setArrayIndex(i);
260  settings->setValue(name, dv.value(i));
261  }
262 
263  settings->endArray();
264  } else if (v.canConvert<QcepStringVector>()) {
265  QcepStringVector dv = v.value<QcepStringVector>();
266 
267  settings->beginWriteArray(name, dv.count());
268 
269  for (int i=0; i<dv.count(); i++) {
270  settings->setArrayIndex(i);
271  settings->setValue(name, dv.value(i));
272  }
273 
274  settings->endArray();
275  } else if (v.canConvert<QcepDoubleList>()){
276  QcepDoubleList dv = v.value<QcepDoubleList>();
277 
278  settings->beginWriteArray(name, dv.count());
279 
280  for (int i=0; i<dv.count(); i++) {
281  settings->setArrayIndex(i);
282  settings->setValue(name, dv.value(i));
283  }
284 
285  settings->endArray();
286  } else if (v.canConvert<QcepBoolList>()) {
287  QcepBoolList dv = v.value<QcepBoolList>();
288 
289  settings->beginWriteArray(name, dv.count());
290 
291  for (int i=0; i<dv.count(); i++) {
292  settings->setArrayIndex(i);
293  settings->setValue(name, dv.value(i));
294  }
295 
296  settings->endArray();
297  } else if (v.canConvert<QcepIntList>()) {
298  QcepIntList dv = v.value<QcepIntList>();
299 
300  settings->beginWriteArray(name, dv.count());
301 
302  for (int i=0; i<dv.count(); i++) {
303  settings->setArrayIndex(i);
304  settings->setValue(name, dv.value(i));
305  }
306 
307  settings->endArray();
308  } else if (v.canConvert<QcepStringList>()) {
309  QcepStringList dv = v.value<QcepStringList>();
310 
311  settings->beginWriteArray(name, dv.count());
312 
313  for (int i=0; i<dv.count(); i++) {
314  settings->setArrayIndex(i);
315  settings->setValue(name, dv.value(i));
316  }
317 
318  settings->endArray();
319  } else if (v.canConvert<QcepPolygon>()) {
320  QcepPolygon dv = v.value<QcepPolygon>();
321 
322  settings->beginWriteArray(name, dv.count());
323 
324  for (int i=0; i<dv.count(); i++) {
325  settings->setArrayIndex(i);
326 // settings->beginGroup(name);
327  settings->setValue("x", dv.value(i).x());
328  settings->setValue("y", dv.value(i).y());
329 // settings->endGroup();
330  }
331 
332  settings->endArray();
333  } else if (v.canConvert<QPointF>()) {
334  QPointF dv = v.value<QPointF>();
335 
336  settings->beginGroup(name);
337 
338  settings->setValue("x", dv.x());
339  settings->setValue("y", dv.y());
340 
341  settings->endGroup();
342  } else if (v.canConvert<QRectF>()) {
343  QRectF dv = v.value<QRectF>();
344 
345  settings->beginGroup(name);
346 
347  settings->setValue("left", dv.left());
348  settings->setValue("top", dv.top());
349  settings->setValue("right", dv.right());
350  settings->setValue("bottom", dv.bottom());
351 
352  settings->endGroup();
353 // } else if (v.canConvert<QVector3D>()) {
354 // QVector3D dv = v.value<QVector3D>();
355 
356 // settings->beginGroup(name);
357 
358 // settings->setValue("x", dv.x());
359 // settings->setValue("y", dv.y());
360 // settings->setValue("z", dv.z());
361 
362 // settings->endGroup();
363 // } else if (v.canConvert<QMatrix3x3>()) {
364 // QMatrix3x3 dv = v.value<QMatrix3x3>();
365 
366 // settings->beginGroup(name);
367 
368 // for (int r=0; r<3; r++) {
369 // for (int c=0; c<3; c++) {
370 // settings->setValue(tr("r%1c%2").arg(r).arg(c), dv(r,c));
371 // }
372 // }
373 
374 // settings->endGroup();
375  } else if (v.type() == QVariant::StringList) {
376  QStringList dv = v.toStringList();
377 
378  settings->beginWriteArray(name, dv.count());
379 
380  for (int i=0; i<dv.count(); i++) {
381  settings->setArrayIndex(i);
382  settings->setValue(name, dv.value(i));
383  }
384 
385  settings->endArray();
386  }
387 }
QVector< int > QcepIntVector
Definition: qcepmacros.h:23
QVector< bool > QcepBoolVector
Definition: qcepmacros.h:21
QList< bool > QcepBoolList
Definition: qcepmacros.h:30
void setSettingsValue(QSettings *settings, QString name)
void setSettingsValue(QSettings *settings, QString name)
QVector< double > QcepDoubleVector
Definition: qcepmacros.h:19
QList< QString > QcepStringList
Definition: qcepmacros.h:34
QList< double > QcepDoubleList
Definition: qcepmacros.h:28
QList< int > QcepIntList
Definition: qcepmacros.h:32
QString name() const
QVector< QString > QcepStringVector
Definition: qcepmacros.h:25
QVector< QPointF > QcepPolygon
Definition: qcepmacros.h:37
static QMap< QString, CustomSettingsSaver * > m_CustomSavers
Definition: qcepproperty.h:80
void( CustomSettingsSaver)(const QVariant &val, QSettings *settings, QString name)
Definition: qcepproperty.h:28

Here is the call graph for this function:

Here is the caller graph for this function:

void QcepProperty::setToolTip ( QString  tip)

Definition at line 100 of file qcepproperty.cpp.

References m_Mutex, and m_ToolTip.

101 {
102  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
103 
104  m_ToolTip = tip;
105 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QString m_ToolTip
Definition: qcepproperty.h:78
void QcepProperty::setWidgetToolTip ( QWidget *  widget)

Definition at line 124 of file qcepproperty.cpp.

References expandedToolTip(), and m_Mutex.

Referenced by QxrdPowderPointProperty::linkTo(), QcepDoubleProperty::linkTo(), QcepIntProperty::linkTo(), QcepBoolProperty::linkTo(), QcepStringProperty::linkTo(), and QcepDoublePointProperty::linkTo().

125 {
126  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
127 
128  if (widget) {
129  QString tt = widget->toolTip();
130 
131  if (tt == "") {
132  widget->setToolTip(expandedToolTip());
133  } else {
134  widget->setToolTip(tt + "\n=============\n" + expandedToolTip());
135  }
136  }
137 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QString expandedToolTip() const

Here is the call graph for this function:

Here is the caller graph for this function:

QString QcepProperty::toolTip ( ) const

Definition at line 93 of file qcepproperty.cpp.

References m_Mutex, and m_ToolTip.

Referenced by expandedToolTip(), and QcepProperty().

94 {
95  QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
96 
97  return m_ToolTip;
98 }
QMutex m_Mutex
Definition: qcepproperty.h:69
QString m_ToolTip
Definition: qcepproperty.h:78

Here is the caller graph for this function:

void QcepProperty::writeSettings ( QObject *  object,
QSettings *  settings,
QString  section 
)
static

Definition at line 389 of file qcepproperty.cpp.

References DEBUG_PREFS, DEBUG_PROPERTIES, INVOKE_CHECK, name(), qcepDebug(), setSettingsValue(), and QcepByteArrayProperty::value().

Referenced by QcepImageDataBase::saveMetaData(), QxrdDistortionCorrectionDialogSettings::writeSettings(), QxrdInfoDialogSettings::writeSettings(), QxrdScriptDialogSettings::writeSettings(), QxrdAcquisitionExtraInputsDialogSettings::writeSettings(), QxrdSynchronizedAcquisitionDialogSettings::writeSettings(), QxrdServer::writeSettings(), QxrdHistogramDialogSettings::writeSettings(), QxrdSliceDialogSettings::writeSettings(), QxrdWelcomeWindow::writeSettings(), QxrdFileBrowserSettings::writeSettings(), QxrdSimpleServer::writeSettings(), QxrdWindowSettings::writeSettings(), QcepObject::writeSettings(), and QxrdApplication::writeSettings().

390 {
391  if (settings && object) {
392  const QMetaObject *meta = object->metaObject();
393  int count = meta->propertyCount();
394  int offset = QObject::staticMetaObject.propertyCount();
395 
396  settings->beginGroup(section);
397 
398  for (int i=offset; i<count; i++) {
399  QMetaProperty metaproperty = meta->property(i);
400 
401  if (metaproperty.isStored()) {
402  const char *name = metaproperty.name();
403  QVariant value = object -> property(name);
404 
406  QString msg = tr("Save %1/%2 = %3 [%4]")
407  .arg(section).arg(name)
408  .arg(value.toString()).arg(value.typeName());
409 
410  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
411  Q_ARG(QString, msg),
412  Q_ARG(QDateTime, QDateTime::currentDateTime())));
413  }
414 
415  setSettingsValue(settings, name, value);
416  }
417  }
418 
419  QByteArray name;
420 
421  foreach (name, object->dynamicPropertyNames()) {
422  setSettingsValue(settings, name.data(), object->property(name.data()));
423  }
424 
425  settings->endGroup();
426  }
427 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
JSON Parse a string as a JSON object
#define INVOKE_CHECK(res)
Definition: qcepmacros.h:13
QString name() const
static void setSettingsValue(QSettings *settings, QString name, QVariant value)

Here is the call graph for this function:

Here is the caller graph for this function:

void QcepProperty::writeSettings ( QObject *  object,
const QMetaObject *  meta,
QString  groupName,
QSettings *  settings,
bool  includeDynamic = false 
)
static

Definition at line 429 of file qcepproperty.cpp.

References DEBUG_PREFS, DEBUG_PROPERTIES, INVOKE_CHECK, name(), qcepDebug(), setSettingsValue(), and QcepByteArrayProperty::value().

430 {
431  if (settings && object) {
432  int count = meta->propertyCount();
433  int offset = meta->propertyOffset();
434 
435  settings->beginGroup(groupName);
436 
437  for (int i=offset; i<count; i++) {
438  QMetaProperty metaproperty = meta->property(i);
439 
440  if (metaproperty.isStored()) {
441  const char *name = metaproperty.name();
442  QVariant value = object -> property(name);
443 
445  QString msg = tr("Save %1/%2 = %3 [%4]")
446  .arg(groupName).arg(name)
447  .arg(value.toString()).arg(value.typeName());
448 
449  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
450  Q_ARG(QString, msg),
451  Q_ARG(QDateTime, QDateTime::currentDateTime())));
452  }
453 
454  setSettingsValue(settings, name, value);
455  }
456  }
457 
458  if (includeDynamic) {
459  QByteArray name;
460 
461  foreach (name, object->dynamicPropertyNames()) {
462  setSettingsValue(settings, name.data(), object->property(name.data()));
463  }
464  }
465 
466  settings->endGroup();
467  }
468 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
JSON Parse a string as a JSON object
#define INVOKE_CHECK(res)
Definition: qcepmacros.h:13
QString name() const
static void setSettingsValue(QSettings *settings, QString name, QVariant value)

Here is the call graph for this function:

void QcepProperty::writeSettings ( QObject *  object,
QString  groupName,
QSettings *  settings,
bool  includeDynamic = false 
)
static

Definition at line 470 of file qcepproperty.cpp.

References DEBUG_PREFS, DEBUG_PROPERTIES, INVOKE_CHECK, name(), qcepDebug(), setSettingsValue(), and QcepByteArrayProperty::value().

471 {
472  if (settings && object) {
473  const QMetaObject *meta = object->metaObject();
474 
475  int count = meta->propertyCount();
476  int offset = QObject::staticMetaObject.propertyOffset();
477 
478  settings->beginGroup(groupName);
479 
480  for (int i=offset; i<count; i++) {
481  QMetaProperty metaproperty = meta->property(i);
482 
483  if (metaproperty.isStored()) {
484  const char *name = metaproperty.name();
485  QVariant value = object -> property(name);
486 
488  QString msg = tr("Save %1/%2 = %3 [%4]")
489  .arg(groupName).arg(name)
490  .arg(value.toString()).arg(value.typeName());
491 
492  INVOKE_CHECK(QMetaObject::invokeMethod(object, "printMessage",
493  Q_ARG(QString, msg),
494  Q_ARG(QDateTime, QDateTime::currentDateTime())));
495  }
496 
497  setSettingsValue(settings, name, value);
498  }
499  }
500 
501  if (includeDynamic) {
502  QByteArray name;
503 
504  foreach (name, object->dynamicPropertyNames()) {
505  setSettingsValue(settings, name.data(), object->property(name.data()));
506  }
507  }
508 
509  settings->endGroup();
510  }
511 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
JSON Parse a string as a JSON object
#define INVOKE_CHECK(res)
Definition: qcepmacros.h:13
QString name() const
static void setSettingsValue(QSettings *settings, QString name, QVariant value)

Here is the call graph for this function:

Member Data Documentation

QMap< QString, CustomSettingsSaver * > QcepProperty::m_CustomSavers
staticprivate

Definition at line 80 of file qcepproperty.h.

Referenced by registerCustomSaver(), and setSettingsValue().

int QcepProperty::m_Debug
private

Definition at line 73 of file qcepproperty.h.

Referenced by debug(), and setDebug().

QAtomicInt QcepProperty::m_Index
private

Definition at line 76 of file qcepproperty.h.

Referenced by incIndex(), and index().

int QcepProperty::m_IsStored
private

Definition at line 74 of file qcepproperty.h.

Referenced by QcepProperty().

QMutex QcepProperty::m_Mutex
mutableprotected

Definition at line 69 of file qcepproperty.h.

Referenced by QxrdPowderPointVectorProperty::appendValue(), QcepDoubleListProperty::appendValue(), QcepDoubleVectorProperty::appendValue(), QcepIntListProperty::appendValue(), QcepIntVectorProperty::appendValue(), QcepStringListProperty::appendValue(), QcepPolygonProperty::appendValue(), QxrdPowderPointVectorProperty::clear(), QcepDoubleListProperty::clear(), QcepDoubleVectorProperty::clear(), QcepIntListProperty::clear(), QcepIntVectorProperty::clear(), QcepStringListProperty::clear(), QcepByteArrayProperty::clear(), debug(), QcepVector3DProperty::defaultValue(), QxrdPowderPointProperty::defaultValue(), QcepMatrix3x3Property::defaultValue(), QcepDoubleProperty::defaultValue(), QxrdPowderPointVectorProperty::defaultValue(), QcepStringProperty::defaultValue(), QcepDateTimeProperty::defaultValue(), QcepDoubleListProperty::defaultValue(), QcepDoubleVectorProperty::defaultValue(), QcepIntListProperty::defaultValue(), QcepIntVectorProperty::defaultValue(), QcepStringListProperty::defaultValue(), QcepByteArrayProperty::defaultValue(), QcepDoublePointProperty::defaultValue(), QcepDoubleRectProperty::defaultValue(), QcepPolygonProperty::defaultValue(), QcepInt64Property::defaultValue(), expandedToolTip(), incIndex(), QcepVector3DProperty::incValue(), QcepMatrix3x3Property::incValue(), QcepDoubleProperty::incValue(), QcepDoubleListProperty::incValue(), QcepDoubleVectorProperty::incValue(), QcepIntListProperty::incValue(), QcepIntVectorProperty::incValue(), QcepInt64Property::incValue(), index(), QxrdPowderPointProperty::linkTo(), QcepDoubleProperty::linkTo(), QcepDoublePointProperty::linkTo(), name(), parentName(), QcepDoubleProperty::resetValue(), setDebug(), QcepVector3DProperty::setDefaultValue(), QxrdPowderPointProperty::setDefaultValue(), QcepMatrix3x3Property::setDefaultValue(), QcepDoubleProperty::setDefaultValue(), QxrdPowderPointVectorProperty::setDefaultValue(), QcepStringProperty::setDefaultValue(), QcepDateTimeProperty::setDefaultValue(), QcepDoubleListProperty::setDefaultValue(), QcepDoubleVectorProperty::setDefaultValue(), QcepIntListProperty::setDefaultValue(), QcepIntVectorProperty::setDefaultValue(), QcepStringListProperty::setDefaultValue(), QcepByteArrayProperty::setDefaultValue(), QcepDoublePointProperty::setDefaultValue(), QcepDoubleRectProperty::setDefaultValue(), QcepPolygonProperty::setDefaultValue(), QcepInt64Property::setDefaultValue(), setName(), setSaver(), QxrdPowderPointProperty::setSubValue(), QcepDoublePointProperty::setSubValue(), setToolTip(), QcepVector3DProperty::setValue(), QcepMatrix3x3Property::setValue(), QxrdPowderPointProperty::setValue(), QcepDoubleProperty::setValue(), QxrdPowderPointVectorProperty::setValue(), QcepStringProperty::setValue(), QcepDateTimeProperty::setValue(), QcepDoubleListProperty::setValue(), QcepDoubleVectorProperty::setValue(), QcepIntListProperty::setValue(), QcepIntVectorProperty::setValue(), QcepStringListProperty::setValue(), QcepByteArrayProperty::setValue(), QcepDoublePointProperty::setValue(), QcepDoubleRectProperty::setValue(), QcepPolygonProperty::setValue(), QcepInt64Property::setValue(), setWidgetToolTip(), QxrdPowderPointProperty::subValue(), QcepDoublePointProperty::subValue(), toolTip(), QcepVector3DProperty::toString(), QxrdPowderPointProperty::toString(), QcepMatrix3x3Property::toString(), QxrdPowderPointVectorProperty::toString(), QcepDoubleListProperty::toString(), QcepDoubleVectorProperty::toString(), QcepIntListProperty::toString(), QcepIntVectorProperty::toString(), QcepStringListProperty::toString(), QcepByteArrayProperty::toString(), QcepVector3DProperty::value(), QxrdPowderPointProperty::value(), QcepMatrix3x3Property::value(), QcepDoubleProperty::value(), QxrdPowderPointVectorProperty::value(), QcepStringProperty::value(), QcepDateTimeProperty::value(), QcepDoubleListProperty::value(), QcepDoubleVectorProperty::value(), QcepIntListProperty::value(), QcepIntVectorProperty::value(), QcepStringListProperty::value(), QcepByteArrayProperty::value(), QcepDoublePointProperty::value(), QcepDoubleRectProperty::value(), QcepPolygonProperty::value(), and QcepInt64Property::value().

QString QcepProperty::m_Name
private

Definition at line 75 of file qcepproperty.h.

Referenced by name(), and setName().

QObject* QcepProperty::m_Parent
private

Definition at line 77 of file qcepproperty.h.

Referenced by parentName(), and printMessage().

QcepSettingsSaverWPtr QcepProperty::m_Saver
protected
QString QcepProperty::m_ToolTip
private

Definition at line 78 of file qcepproperty.h.

Referenced by setToolTip(), and toolTip().


The documentation for this class was generated from the following files: