ATLAS Offline Software
Loading...
Searching...
No Matches
VP1Serialise::Imp Class Reference
Collaboration diagram for VP1Serialise::Imp:

Public Member Functions

 Imp (VP1Serialise *tc)
void handle (const QWidget *w)
bool expectsPersistification (const QWidget *w)

Public Attributes

VP1Serialisetheclass
QByteArray byteArray
QBuffer * buffer
QDataStream * state
bool checkedUnused
qint32 version
QSet< const QWidget * > handledWidgets
QSet< const QWidget * > ignoredWidgets

Static Public Attributes

static unsigned numberOfInstantiations = 0

Detailed Description

Definition at line 42 of file VP1Serialise.cxx.

Constructor & Destructor Documentation

◆ Imp()

VP1Serialise::Imp::Imp ( VP1Serialise * tc)
inline

Definition at line 44 of file VP1Serialise.cxx.

44: theclass(tc), buffer(0), state(0),checkedUnused(false),version(0) {}
static Double_t tc
QDataStream * state
VP1Serialise * theclass

Member Function Documentation

◆ expectsPersistification()

bool VP1Serialise::Imp::expectsPersistification ( const QWidget * w)

Definition at line 448 of file VP1Serialise.cxx.

449{
450 //NB: Same code as in VP1Deserialise::Imp::expectsPersistification
451 if (!w)
452 return false;
453
454 //Fixme: Something faster than string based? Or only do this in verbose mode?
455
456 if (w->inherits("QGroupBox"))
457 return static_cast<const QGroupBox*>(w)->isCheckable();
458
459 return w->inherits("QCheckBox")
460 || w->inherits("QRadioButton")
461 || w->inherits("QComboBox")
462 || w->inherits("QAbstractSpinBox")
463 || w->inherits("QSlider")
464 || w->inherits("QToolBox")
465 || w->inherits("PhiSectionWidget")
466 || w->inherits("VP1EtaPhiCutWidget")
467 || w->inherits("VP1DrawOptionsWidget")
468 || w->inherits("QLineEdit")
469 || w->inherits("VP1ColorSelectButton")
470 || w->inherits("VP1MaterialButton");
471}

◆ handle()

void VP1Serialise::Imp::handle ( const QWidget * w)
inline

Definition at line 54 of file VP1Serialise.cxx.

54 {
55 if (!w) {
56 if(VP1Msg::debug()){
57 theclass->messageDebug("VP1Serialize::handle() - Returning...");
58 }
59 return;
60 }
61 if (handledWidgets.contains(w))
62 theclass->message("ERROR: Handled widget more than once: Type="
63 +QString(w->metaObject()->className())
64 +", name="+w->objectName());
65 handledWidgets.insert(w);
66 }
static bool debug()
Definition VP1Msg.h:32
QSet< const QWidget * > handledWidgets

Member Data Documentation

◆ buffer

QBuffer* VP1Serialise::Imp::buffer

Definition at line 47 of file VP1Serialise.cxx.

◆ byteArray

QByteArray VP1Serialise::Imp::byteArray

Definition at line 46 of file VP1Serialise.cxx.

◆ checkedUnused

bool VP1Serialise::Imp::checkedUnused

Definition at line 49 of file VP1Serialise.cxx.

◆ handledWidgets

QSet<const QWidget*> VP1Serialise::Imp::handledWidgets

Definition at line 52 of file VP1Serialise.cxx.

◆ ignoredWidgets

QSet<const QWidget*> VP1Serialise::Imp::ignoredWidgets

Definition at line 53 of file VP1Serialise.cxx.

◆ numberOfInstantiations

unsigned VP1Serialise::Imp::numberOfInstantiations = 0
static

Definition at line 69 of file VP1Serialise.cxx.

◆ state

QDataStream* VP1Serialise::Imp::state

Definition at line 48 of file VP1Serialise.cxx.

◆ theclass

VP1Serialise* VP1Serialise::Imp::theclass

Definition at line 45 of file VP1Serialise.cxx.

◆ version

qint32 VP1Serialise::Imp::version

Definition at line 50 of file VP1Serialise.cxx.


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