|
ATLAS Offline Software
|
Go to the documentation of this file.
30 #include <QGraphicsScene>
31 #include <QVBoxLayout>
67 setMinimumSize(150,240);
70 QVBoxLayout * vboxLayout =
new QVBoxLayout(
this);
71 vboxLayout->setSpacing(0);
72 vboxLayout->setMargin(0);
75 QList<QPair<QString,QString> > views;
76 views << QPair<QString,QString>(
"X-Y",
":/icons/icons/xy.png");
77 views << QPair<QString,QString>(
"R-Z",
":/icons/icons/rz.png");
80 vboxLayout->addWidget(examiner);
135 if (allowController) {
156 while (
it.hasNext()) {
161 it.key()->setChecked(
false);
192 QCheckBox * cb =
static_cast<QCheckBox*
>(sender()); assert(cb);
203 if (cb->isChecked()) {
206 ic->reattachToView();
235 ic->detachFromView();
254 message(
"IVP12DDetViewsChannelWidget::addGeneralSystem ERROR: Method not implemented yet!!");
273 message(
"showControlsForSystem Error: Unable to determine system identity.");
282 if (index<0||!m_d->tabwidget->isTabEnabled(
index)) {
283 message(
"Warning: Asked to show controller for a disabled system. Surely you jest?");
294 QByteArray byteArray;
295 QBuffer
buffer(&byteArray);
296 buffer.open(QIODevice::WriteOnly);
312 QMap<QString, bool> sysname2turnedon;
315 sysname2turnedon.insert(
it.key()->text(),
it.key()->isChecked());
319 out << sysname2turnedon;
339 buffer.open(QIODevice::ReadOnly);
345 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
348 QByteArray basestate;
360 QMap<QString, bool> sysname2turnedon;
361 state >> sysname2turnedon;
364 if (sysname2turnedon.contains(
it.key()->text())) {
365 if (sysname2turnedon[
it.key()->text()]!=
it.key()->isChecked())
366 it.key()->setChecked(sysname2turnedon[
it.key()->text()]);
368 message(
"Warning: Config data does not contain information about switched state of subsystem '"+
it.key()->text()+
"'");
QSet< VP1GraphicsItemCollection * > getItemCollections_XY() const
VP1GraphicsView * view() const
void addItemCollection(VP1GraphicsItemCollection *)
QSet< VP1GraphicsItemCollection * > getItemCollections_RZ() const
void setDisallowMovable(VP1GraphicsItemCollection *, const bool &disallow=true)
void setDisallowInteractions(VP1GraphicsItemCollection *, const bool &disallow=true)
static void messageVerbose(const QString &)
static QWidget * compositionController(const QList< IVP1System * > &systemsWithControllersAllowed, QMap< IVP1System *, QWidget * > &sys2tabpage, VP1TabWidget *&tabwidget, const QList< QPair< IVP1System *, bool > > &system2switchable, QMap< QCheckBox *, IVP1System * > &checkbox2system, VP1ColorSelectButton *&colorselectbutton, QWidget *extrawidget=0, bool nobgdcolorsel=false)