#include <VP1Serialise.h>
|
| VP1Serialise (qint32 version, IVP1System *sys=0) |
|
virtual | ~VP1Serialise () |
|
QByteArray | result () |
|
qint32 | version () const |
|
void | ignoreWidget (const QWidget *) |
|
void | widgetHandled (const QWidget *) |
|
void | warnUnsaved (const QObject *) |
|
void | disableUnsavedChecks () |
|
void | save (bool) |
|
void | save (QCheckBox *) |
|
void | save (QGroupBox *) |
|
void | save (const QString &) |
|
void | save (QComboBox *) |
|
void | save (QLineEdit *) |
|
void | saveByTitle (QToolBox *) |
|
void | save (const double &) |
|
void | save (QDoubleSpinBox *, const double &unit=1.0) |
|
void | save (qint32) |
|
void | save (QSpinBox *) |
|
void | save (QSlider *) |
|
void | save (QToolBox *) |
|
void | save (QRadioButton *rb0, QRadioButton *rb1, QRadioButton *rb2=0, QRadioButton *rb3=0, QRadioButton *rb4=0, QRadioButton *rb5=0, QRadioButton *rb6=0, QRadioButton *rb7=0, QRadioButton *rb8=0, QRadioButton *rb9=0) |
|
void | save (const QByteArray &) |
|
void | save (const VP1MaterialButton *) |
|
void | save (SoMaterial *) |
|
void | save (const VP1CollectionWidget *) |
|
void | save (const VP1CollectionSettingsButtonBase *jcb) |
|
void | save (const VP1EtaPhiCutWidget *) |
|
void | save (const VP1DrawOptionsWidget *) |
|
void | save (const PhiSectionWidget *) |
|
void | save (const QColor &) |
|
void | save (VP1ColorSelectButton *) |
|
template<class T > |
void | save (const T &t) |
|
template<class T > |
void | save (T *t) |
|
void | setSystemBasePointer (IVP1System *sys) |
|
void | message (const QString &) const |
|
void | message (const QStringList &, const QString &addtoend="") const |
|
void | message (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &) const |
|
void | messageDebug (const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &) const |
|
void | messageVerbose (const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
IVP1System * | systemBase () const |
|
QString | helperClassName () const |
|
Definition at line 45 of file VP1Serialise.h.
◆ VP1Serialise()
VP1Serialise::VP1Serialise |
( |
qint32 |
version, |
|
|
IVP1System * |
sys = 0 |
|
) |
| |
◆ ~VP1Serialise()
VP1Serialise::~VP1Serialise |
( |
| ) |
|
|
virtual |
◆ decrementNumberOfInstantiations()
void VP1Serialise::decrementNumberOfInstantiations |
( |
| ) |
|
|
static |
◆ disableUnsavedChecks()
void VP1Serialise::disableUnsavedChecks |
( |
| ) |
|
◆ helperClassName()
QString VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ ignoreWidget()
void VP1Serialise::ignoreWidget |
( |
const QWidget * |
w | ) |
|
◆ message() [1/3]
void VP1HelperClassBase::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void VP1HelperClassBase::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ numberOfInstantiations()
unsigned VP1Serialise::numberOfInstantiations |
( |
| ) |
|
|
static |
◆ result()
QByteArray VP1Serialise::result |
( |
| ) |
|
◆ save() [1/25]
void VP1Serialise::save |
( |
bool |
b | ) |
|
◆ save() [2/25]
void VP1Serialise::save |
( |
const double & |
dbl | ) |
|
◆ save() [3/25]
◆ save() [4/25]
void VP1Serialise::save |
( |
const QByteArray & |
ba | ) |
|
◆ save() [5/25]
void VP1Serialise::save |
( |
const QColor & |
c | ) |
|
◆ save() [6/25]
void VP1Serialise::save |
( |
const QString & |
s | ) |
|
◆ save() [7/25]
template<class T >
void VP1Serialise::save |
( |
const T & |
t | ) |
|
◆ save() [8/25]
Definition at line 395 of file VP1Serialise.cxx.
398 messageDebug(
"\nVP1Serialise::save(VP1CollectionSettingsButtonBase) - name: " + jcb->objectName());
399 messageDebug(
"VP1Serialise::save(VP1CollectionSettingsButtonBase)- start...");
405 messageDebug(
"VP1Serialise::save(VP1CollectionSettingsButtonBase)- end.");
◆ save() [9/25]
Definition at line 366 of file VP1Serialise.cxx.
369 messageDebug(
"\nVP1Serialise::save(VP1CollectionWidget) - name: " + cw->objectName());
370 messageDebug(
"VP1Serialise::save(VP1CollectionWidget)- start...");
376 buffer.open(QIODevice::WriteOnly);
383 messageDebug(
"VP1Serialise::save(VP1CollectionWidget)- end.");
◆ save() [10/25]
◆ save() [11/25]
◆ save() [12/25]
Definition at line 288 of file VP1Serialise.cxx.
291 messageDebug(
"\nVP1Serialise::save(VP1MaterialButton) - name: " +
mb->objectName());
294 QList<SoMaterial*> mats =
mb ?
mb->handledMaterials() : QList<SoMaterial*>();
295 save(mats.isEmpty() ? 0 : mats.at(0));
◆ save() [13/25]
void VP1Serialise::save |
( |
QCheckBox * |
cb | ) |
|
◆ save() [14/25]
void VP1Serialise::save |
( |
QComboBox * |
cb | ) |
|
Definition at line 157 of file VP1Serialise.cxx.
160 messageDebug(
"VP1Serialise::save(QComboBox) - name: " + cb->objectName());
163 save( cb->count() > 0 ? cb->currentText() : QString() );
◆ save() [15/25]
void VP1Serialise::save |
( |
QDoubleSpinBox * |
sb, |
|
|
const double & |
unit = 1.0 |
|
) |
| |
◆ save() [16/25]
void VP1Serialise::save |
( |
QGroupBox * |
gb | ) |
|
Definition at line 145 of file VP1Serialise.cxx.
148 messageDebug(
"VP1Serialise::save(QGroupBox) - name: " + gb->objectName());
150 if (!gb->isCheckable())
151 message(
"WARNING: Asked to handled GroupBox which is not checkable: "+gb->objectName());
153 save(gb->isChecked());
◆ save() [17/25]
void VP1Serialise::save |
( |
qint32 |
i | ) |
|
◆ save() [18/25]
void VP1Serialise::save |
( |
QLineEdit * |
le | ) |
|
◆ save() [19/25]
void VP1Serialise::save |
( |
QRadioButton * |
rb0, |
|
|
QRadioButton * |
rb1, |
|
|
QRadioButton * |
rb2 = 0 , |
|
|
QRadioButton * |
rb3 = 0 , |
|
|
QRadioButton * |
rb4 = 0 , |
|
|
QRadioButton * |
rb5 = 0 , |
|
|
QRadioButton * |
rb6 = 0 , |
|
|
QRadioButton * |
rb7 = 0 , |
|
|
QRadioButton * |
rb8 = 0 , |
|
|
QRadioButton * |
rb9 = 0 |
|
) |
| |
Definition at line 334 of file VP1Serialise.cxx.
345 QList<QRadioButton *>
l;
346 l << rb0 << rb1 << rb2 << rb3 << rb4 << rb5 << rb6 << rb7 << rb8 << rb9;
347 for (qint32
i = 0;
i <
l.count(); ++
i) {
350 messageDebug(
"\nVP1Serialise::save(QRadioButton) - name: " +
l.at(
i)->objectName());
356 for (qint32
i = 0;
i <
l.count(); ++
i) {
357 if (
l.at(
i)&&
l.at(
i)->isChecked()) {
◆ save() [20/25]
void VP1Serialise::save |
( |
QSlider * |
s | ) |
|
◆ save() [21/25]
void VP1Serialise::save |
( |
QSpinBox * |
sb | ) |
|
◆ save() [22/25]
void VP1Serialise::save |
( |
QToolBox * |
tb | ) |
|
◆ save() [23/25]
void VP1Serialise::save |
( |
SoMaterial * |
m | ) |
|
◆ save() [24/25]
template<class T >
void VP1Serialise::save |
( |
T * |
t | ) |
|
◆ save() [25/25]
◆ saveByTitle()
void VP1Serialise::saveByTitle |
( |
QToolBox * |
tb | ) |
|
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ stream()
QDataStream * VP1Serialise::stream |
( |
| ) |
|
|
private |
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ version()
qint32 VP1Serialise::version |
( |
| ) |
const |
◆ warnUndeletedInstances()
void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
185 if (vp1helperclassbase_instanceMap.empty())
187 std::cout <<
"WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<
" undeleted helper class instances:"<<std::endl;
190 for (
it = vp1helperclassbase_instanceMap.begin();
it!=
itE;++
it) {
191 std::cout <<
" ==> "<<
it->first<<
": "<<
it->first->m_helpername.toStdString()
192 << (
it->second.isEmpty()?QString(
""):
" (in system "+
it->
second+
")").toStdString()<<std::endl;
◆ warnUnsaved()
void VP1Serialise::warnUnsaved |
( |
const QObject * |
object | ) |
|
Definition at line 481 of file VP1Serialise.cxx.
494 if (
object->isWidgetType()&&!
object->objectName().startsWith(
"qt_")) {
495 const QWidget * wid =
static_cast<const QWidget*
>(
object);
497 QString
s(
"WARNING Unsaved widget of type: "+QString(wid->metaObject()->className())+
" and object name = "+wid->objectName());
507 for (
const QObject* o :
object->children())
◆ widgetHandled()
void VP1Serialise::widgetHandled |
( |
const QWidget * |
w | ) |
|
◆ m_d
◆ m_helpername
QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files: