#include <VP1Deserialise.h>
|
| VP1Deserialise (const QByteArray &, IVP1System *sys=0) |
|
virtual | ~VP1Deserialise () |
|
qint32 | version () const |
|
void | ignoreWidget (QWidget *) |
|
void | widgetHandled (QWidget *) |
|
void | warnUnrestored (QObject *) |
|
void | disableUnrestoredChecks () |
|
bool | atEnd () const |
|
bool | restoreBool () |
|
void | restore (QCheckBox *sb) |
|
void | restore (QGroupBox *) |
|
QString | restoreString () |
|
void | restore (QComboBox *sb) |
|
void | restore (QLineEdit *) |
|
void | restoreByTitle (QToolBox *) |
|
double | restoreDouble () |
|
void | restore (QDoubleSpinBox *sb, const double &unit=1.0) |
|
qint32 | restoreInt () |
|
void | restore (QSpinBox *sb) |
|
void | restore (QSlider *) |
|
void | restore (QToolBox *tb) |
|
void | restore (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) |
|
QByteArray | restoreByteArray () |
|
void | restore (VP1MaterialButton *) |
|
void | restore (SoMaterial *) |
|
void | restore (VP1CollectionWidget *) |
|
void | restore (VP1CollectionSettingsButtonBase *w) |
|
void | restore (VP1EtaPhiCutWidget *) |
|
void | restore (VP1DrawOptionsWidget *) |
|
void | restore (PhiSectionWidget *) |
|
QColor | restoreColor () |
|
void | restore (VP1ColorSelectButton *) |
|
template<class T > |
T | restore () |
|
void | ignoreBool () |
|
void | ignoreInt () |
|
void | ignoreDouble () |
|
void | ignoreString () |
|
void | ignoreByteArray () |
|
void | ignoreColor () |
|
void | ignoreObsoletePhiSectionWidgetState () |
|
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 |
|
const QString & | helperClassName () const |
|
Definition at line 44 of file VP1Deserialise.h.
◆ VP1Deserialise()
VP1Deserialise::VP1Deserialise |
( |
const QByteArray & |
ba, |
|
|
IVP1System * |
sys = 0 |
|
) |
| |
◆ ~VP1Deserialise()
VP1Deserialise::~VP1Deserialise |
( |
| ) |
|
|
virtual |
◆ atEnd()
bool VP1Deserialise::atEnd |
( |
| ) |
const |
◆ decrementNumberOfInstantiations()
void VP1Deserialise::decrementNumberOfInstantiations |
( |
| ) |
|
|
static |
◆ disableUnrestoredChecks()
void VP1Deserialise::disableUnrestoredChecks |
( |
| ) |
|
◆ helperClassName()
const QString& VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ ignoreBool()
void VP1Deserialise::ignoreBool |
( |
| ) |
|
◆ ignoreByteArray()
void VP1Deserialise::ignoreByteArray |
( |
| ) |
|
◆ ignoreColor()
void VP1Deserialise::ignoreColor |
( |
| ) |
|
◆ ignoreDouble()
void VP1Deserialise::ignoreDouble |
( |
| ) |
|
◆ ignoreInt()
void VP1Deserialise::ignoreInt |
( |
| ) |
|
◆ ignoreObsoletePhiSectionWidgetState()
void VP1Deserialise::ignoreObsoletePhiSectionWidgetState |
( |
| ) |
|
◆ ignoreString()
void VP1Deserialise::ignoreString |
( |
| ) |
|
◆ ignoreWidget()
void VP1Deserialise::ignoreWidget |
( |
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 |
Definition at line 131 of file VP1HelperClassBase.cxx.
133 if (addtostart.isEmpty()) {
137 if (addtoend.isEmpty()) {
138 for (
const QString&
s :
l)
141 for (
const QString&
s :
l)
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 91 of file VP1HelperClassBase.cxx.
93 if (addtoend.isEmpty()) {
94 for (
const QString&
s :
l)
97 for (
const QString&
s :
l)
◆ 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 |
Definition at line 147 of file VP1HelperClassBase.cxx.
151 if (addtostart.isEmpty()) {
155 if (addtoend.isEmpty()) {
156 for (
const QString&
s :
l)
159 for (
const QString&
s :
l)
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 103 of file VP1HelperClassBase.cxx.
107 if (addtoend.isEmpty()) {
108 for (
const QString&
s :
l)
111 for (
const QString&
s :
l)
◆ 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 |
Definition at line 165 of file VP1HelperClassBase.cxx.
169 if (addtostart.isEmpty()) {
173 if (addtoend.isEmpty()) {
174 for (
const QString&
s :
l)
177 for (
const QString&
s :
l)
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 117 of file VP1HelperClassBase.cxx.
121 if (addtoend.isEmpty()) {
122 for (
const QString&
s :
l)
125 for (
const QString&
s :
l)
◆ numberOfInstantiations()
unsigned VP1Deserialise::numberOfInstantiations |
( |
| ) |
|
|
static |
◆ restore() [1/18]
template<class T >
T VP1Deserialise::restore |
◆ restore() [2/18]
◆ restore() [3/18]
void VP1Deserialise::restore |
( |
QCheckBox * |
sb | ) |
|
◆ restore() [4/18]
void VP1Deserialise::restore |
( |
QComboBox * |
sb | ) |
|
Definition at line 288 of file VP1Deserialise.cxx.
291 messageDebug(
"VP1Deserialise::restore(QComboBox) - name: " + cb->objectName());
297 int i = cb->findText(
t);
298 if (i<0||i>cb->count()-1)
300 if (cb->currentIndex()!=
i) {
302 cb->setCurrentIndex(
i);
◆ restore() [5/18]
void VP1Deserialise::restore |
( |
QDoubleSpinBox * |
sb, |
|
|
const double & |
unit = 1.0 |
|
) |
| |
◆ restore() [6/18]
void VP1Deserialise::restore |
( |
QGroupBox * |
gb | ) |
|
Definition at line 271 of file VP1Deserialise.cxx.
274 messageDebug(
"VP1Deserialise::restore(QGroupBox) - name: " + gb->objectName());
276 if (!gb->isCheckable())
277 message(
"WARNING: Asked to handled GroupBox which is not checkable: "+gb->objectName());
280 if (gb->isChecked()!=
b) {
◆ restore() [7/18]
void VP1Deserialise::restore |
( |
QLineEdit * |
le | ) |
|
◆ restore() [8/18]
void VP1Deserialise::restore |
( |
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 451 of file VP1Deserialise.cxx.
463 QList<QRadioButton *>
l;
464 l << rb0 << rb1 << rb2 << rb3 << rb4 << rb5 << rb6 << rb7 << rb8 << rb9;
465 for (qint32
i = 0;
i <
l.count(); ++
i) {
468 messageDebug(
"VP1Deserialise::restore(QRadioButton) - name: " +
l.at(
i)->objectName());
474 if (ichecked<0||ichecked>=
l.count()||!
l.at(ichecked))
476 for (qint32
i = 0;
i <
l.count(); ++
i) {
477 QRadioButton *
rb =
l.at(
i);
478 if (
rb&&
rb->isChecked()!=(
i==ichecked)) {
480 rb->setChecked(
i==ichecked);
◆ restore() [9/18]
void VP1Deserialise::restore |
( |
QSlider * |
s | ) |
|
◆ restore() [10/18]
void VP1Deserialise::restore |
( |
QSpinBox * |
sb | ) |
|
◆ restore() [11/18]
void VP1Deserialise::restore |
( |
QToolBox * |
tb | ) |
|
◆ restore() [12/18]
void VP1Deserialise::restore |
( |
SoMaterial * |
m | ) |
|
◆ restore() [13/18]
Definition at line 515 of file VP1Deserialise.cxx.
518 messageDebug(
"VP1Deserialise::restore(VP1CollectionSettingsButtonBase) - name: " +
w->objectName());
519 messageDebug(
"VP1Deserialise::restore(VP1CollectionSettingsButtonBase)- start...");
525 if (
w&&ba!=QByteArray()) {
527 w->restoreFromState(ba);
531 messageDebug(
"VP1Deserialise::restore(VP1CollectionSettingsButtonBase)- end.");
◆ restore() [14/18]
Definition at line 487 of file VP1Deserialise.cxx.
490 messageDebug(
"VP1Deserialise::restore(VP1CollectionWidget) - name: " + cw->objectName());
491 messageDebug(
"VP1Deserialise::restore(VP1CollectionWidget)- start...");
497 buffer.open(QIODevice::ReadOnly);
498 QDataStream state(&
buffer);
510 messageDebug(
"VP1Deserialise::restore(VP1CollectionWidget)- end.");
◆ restore() [15/18]
◆ restore() [16/18]
Definition at line 571 of file VP1Deserialise.cxx.
574 messageDebug(
"VP1Deserialise::restore(VP1DrawOptionsWidget) - name: " +
w->objectName());
580 if (
w&&ba!=QByteArray()) {
◆ restore() [17/18]
Definition at line 551 of file VP1Deserialise.cxx.
554 messageDebug(
"VP1Deserialise::restore(VP1EtaPhiCutWidget) - name: " +
w->objectName());
560 if (
w&&ba!=QByteArray()) {
562 w->restoreFromState(ba);
◆ restore() [18/18]
Definition at line 167 of file VP1Deserialise.cxx.
170 messageDebug(
"VP1Deserialise::restore(VP1MaterialButton)");
174 QList<SoMaterial*> mats =
mb ?
mb->handledMaterials() : QList<SoMaterial*>();
175 bool tempmat = mats.isEmpty() || !mats.at(0);
176 m = tempmat ?
new SoMaterial : mats.at(0);
181 mb->copyValuesFromMaterial(
m);
◆ restoreBool()
bool VP1Deserialise::restoreBool |
( |
| ) |
|
◆ restoreByteArray()
QByteArray VP1Deserialise::restoreByteArray |
( |
| ) |
|
◆ restoreByTitle()
void VP1Deserialise::restoreByTitle |
( |
QToolBox * |
tb | ) |
|
Definition at line 386 of file VP1Deserialise.cxx.
389 messageDebug(
"VP1Deserialise::restore(QToolBox) - name: " +
tb->objectName());
394 for (
int i = 0;
i <
tb->count(); ++
i) {
395 if (
tb->itemText(
i)==
s) {
400 if (itarget>0&&itarget<tb->
count()&&itarget!=
tb->currentIndex()) {
402 tb->setCurrentIndex(itarget);
◆ restoreColor()
QColor VP1Deserialise::restoreColor |
( |
| ) |
|
◆ restoreDouble()
double VP1Deserialise::restoreDouble |
( |
| ) |
|
◆ restoreInt()
qint32 VP1Deserialise::restoreInt |
( |
| ) |
|
◆ restoreString()
QString VP1Deserialise::restoreString |
( |
| ) |
|
◆ 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 * VP1Deserialise::stream |
( |
| ) |
|
|
private |
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ version()
qint32 VP1Deserialise::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;
◆ warnUnrestored()
void VP1Deserialise::warnUnrestored |
( |
QObject * |
object | ) |
|
Definition at line 696 of file VP1Deserialise.cxx.
709 if (
object->isWidgetType()&&!
object->objectName().startsWith(
"qt_")) {
710 QWidget * wid =
static_cast<QWidget*
>(
object);
712 QString
s(
"WARNING Unrestored widget of type: "+QString(wid->metaObject()->className())+
" and object name = "+wid->objectName());
722 for (QObject* o :
object->children())
◆ widgetHandled()
void VP1Deserialise::widgetHandled |
( |
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: