|
ATLAS Offline Software
|
Go to the documentation of this file.
26 #include <QVBoxLayout>
27 #include <QGraphicsScene>
64 setMinimumSize(150,240);
66 QVBoxLayout * vboxLayout =
new QVBoxLayout(
this);
67 vboxLayout->setSpacing(0);
68 vboxLayout->setMargin(0);
70 vboxLayout->addWidget(examiner);
114 if (allowController) {
134 while (
it.hasNext()) {
139 it.key()->setChecked(
false);
164 QCheckBox * cb =
static_cast<QCheckBox*
>(sender()); assert(cb);
175 if (cb->isChecked()) {
178 ic->reattachToView();
207 ic->detachFromView();
218 view->scene()->update();
243 message(
"showControlsForSystem Error: Unable to determine system identity.");
252 if (index<0||!m_d->tabwidget->isTabEnabled(
index)) {
253 message(
"Warning: Asked to show controller for a disabled system. Surely you jest?");
266 QByteArray byteArray;
267 QBuffer
buffer(&byteArray);
268 buffer.open(QIODevice::WriteOnly);
284 QMap<QString, bool> sysname2turnedon;
287 sysname2turnedon.insert(
it.key()->text(),
it.key()->isChecked());
291 out << sysname2turnedon;
311 buffer.open(QIODevice::ReadOnly);
317 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
320 QByteArray basestate;
332 QMap<QString, bool> sysname2turnedon;
333 state >> sysname2turnedon;
336 if (sysname2turnedon.contains(
it.key()->text())) {
337 if (sysname2turnedon[
it.key()->text()]!=
it.key()->isChecked())
338 it.key()->setChecked(sysname2turnedon[
it.key()->text()]);
340 message(
"Warning: Config data does not contain information about switched state of subsystem '"+
it.key()->text()+
"'");
VP1GraphicsView * view() const
void addItemCollection(VP1GraphicsItemCollection *)
void setDisallowMovable(VP1GraphicsItemCollection *, const bool &disallow=true)
void setDisallowInteractions(VP1GraphicsItemCollection *, const bool &disallow=true)
const QSet< VP1GraphicsItemCollection * > & getItemCollections()
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)