ATLAS Offline Software
Loading...
Searching...
No Matches
VP1MainWindow Class Reference

#include <VP1MainWindow.h>

Inheritance diagram for VP1MainWindow:

Public Slots

void loadPluginFile (const QString &filename)
void request_addEmptyTab ()
void request_channelInformation ()
void request_printChannel ()
QString request_saveChannelSnapshot (const QString &xLabel="")
void request_cruisemodechange ()
void request_saveasConfig ()
void request_saveConfig ()
void request_loadConfig ()
void request_loadPlugin ()
void unloadPlugin_continue ()
void pluginDialogClosed ()
void saveAllCurrentChannels ()
void makeAllChannelsEventDisplay ()
void getAllChannelsIntoSnapshots (QList< QPixmap > &list, QStringList &listNames)
QPixmap getSingleChannelCustomSnapshot (IVP1ChannelWidget *tab, int width=0)
QPixmap getSingleChannelCustomSnapshot (const QString &tabName, int width=0)
void tabListChanged (const QStringList &)
void selectedChannelChanged (IVP1ChannelWidget *)
void loadConfigurationFromFile (const QString &file)
void replaceConfigurationFile (const QString &file)
void addToMessageBox (const QString &, const QString &extrastyleopts="", const QString &title="", const QString &titleextrastyleopts="")
void systemAddToMessageBox (const QString &)
void channelAddToMessageBox (const QString &)
void helperAddToMessageBox (const QString &)
void changeFontSize (int)
void goToNextEvent ()

Public Member Functions

 VP1MainWindow (VP1ExecutionScheduler *, VP1AvailEvents *availEvents, QWidget *parent=0)
 ~VP1MainWindow ()
bool okToProceedToNextEvent () const
void nextEvent ()
QStringList userRequestedFiles ()
void setRunEvtNumber (const int &runnumber, const unsigned long long &eventnumber, const unsigned &triggerType=0, const unsigned &time=0, const bool &printmessage=true)
bool mustQuit () const
VP1ChannelManager * channelManager () const
VP1TabManager * tabManager () const
bool userRequestedExit ()
int getRunNumber ()
unsigned long long getEventNumber ()
int getEventTimestamp ()

Public Attributes

QProgressBar * progressbar

Protected Slots

void receivedExternalRequest (VP1ExternalRequest)
void processEnqueuedRequests ()
void finishedIncomingDialog ()
void updateTcpIcon ()
void postInitUpdates ()
void showMenu_loadPlugin ()
void showMenu_loadPluginItemSelected ()
void showMenu_loadConfFile ()
void showMenu_loadConfFileItemSelected ()
void changeStyleActionTriggered ()
void changeFontSizeActionTriggered ()
void updateCentralStackWidget ()
void quickSetupTriggered ()
void updateEventControls ()
void addEventFile ()
void help_openUserGuide ()
void help_openUserSupport ()
void help_openVP1WebSite ()
void help_openAbout ()
void updateInputDirectoriesStatus ()
void inputDirectoryActionTriggered ()
void launch3DstereoEditor ()

Protected Member Functions

void closeEvent (QCloseEvent *event)
void listenOnTcp ()
void addChannelIconsToComboBox (QComboBox *cb, const bool &isbasenames)
void setupStatusBar ()
QMap< QString, QString > availablePluginFiles () const
QMap< QString, QString > availableFiles (const QString &extension, const QString &pathvar, const QString &instareasubdir, const QString &extradirenvvar, bool currentdir=false) const

Protected Attributes

VP1ChannelManager * m_channelmanager
VP1TabManager * m_tabmanager
QString m_currentconfigfile
int m_runnumber
unsigned long long m_eventnumber
unsigned m_timestamp
bool m_betweenevents
bool m_mustquit
QWidget * m_dummyemptycontroller
VP1ExecutionScheduler * m_scheduler
VP1AvailEvents * m_availEvents
VP1TcpServer m_tcpserver
VP1IncomingMessageDialog * m_currentincomingdialog
QQueue< VP1ExternalRequest > m_requestqueue
bool m_blockallmessages
QList< QString > m_messages_blockedsenders
QList< VP1ExternalRequest > m_messages_blockedexactmessages
QStringList m_currentunloadpluginfiles
VP1PluginDialog * m_plugindialog
QLabel * m_statusbarlabel
QAction * m_action_infoAboutLoadedPlugins
QMenu * m_menu_loadPlugin
QMenu * m_menu_loadConfFile
QMenu * m_menu_changeStyle
QMenu * m_menu_changeFontSize
QAction * m_actionAdd_empty_tab
QAction * m_actionEnableExpertSettings
QAction * m_actionSave_current_tabs
QAction * m_action_addEventFile
QAction * m_action_openUsersGuide
QAction * m_action_openUsersSupport
QAction * m_action_openVP1Site
QAction * m_action_openAbout
QList< QAction * > m_inputdiractions
VP1DirStatuses m_inputdirstatuses
QString m_currentsaveimagepath
QString m_currentloadpluginpath
QString m_currentStream
QFont m_defaultfont
double m_defaultfont_pointsize
int m_defaultfont_pixelsize
const QString m_settingsfile
bool m_userRequestedExit
QStringList m_userRequestedFiles
VP1StreamMenuUpdater * m_streamMenuUpdater
QMutex * m_mutex
VP1EventDisplayEditor * m_edEditor

Detailed Description

Definition at line 81 of file VP1MainWindow.h.

Constructor & Destructor Documentation

◆ VP1MainWindow()

VP1MainWindow::VP1MainWindow ( VP1ExecutionScheduler * sched,
VP1AvailEvents * availEvents,
QWidget * parent = 0 )

Definition at line 140 of file VP1MainWindow.cxx.

141: QMainWindow(parent),
142 m_runnumber(-1),
143 m_eventnumber(-1),
144 m_betweenevents(true),
145 m_mustquit(false),
146 m_dummyemptycontroller(new QWidget(0)),
147 m_scheduler(sched),
148 m_availEvents(ae),
149 m_settingsfile(QDir::homePath()+QDir::separator()+".atlasvp1"),
150 m_userRequestedExit(false),
152 m_mutex(new QMutex()),
153 m_edEditor(0)
154{
155 setupUi(this); // this sets up the GUI
156
158 //
159 #if defined BUILDVP1LIGHT
160 bool checkShowAllCruiseAndEventControls = VP1QtUtils::expertSettingIsSet("expert","ExpertSettings/VP1_DEVEL_SHOW_ALL_CRUISE_AND_EVENT_CONTROLS");
161 #else
162 bool checkShowAllCruiseAndEventControls = VP1QtUtils::environmentVariableIsOn("VP1_DEVEL_SHOW_ALL_CRUISE_AND_EVENT_CONTROLS");
163 #endif
164
165 if (!checkShowAllCruiseAndEventControls) {
166 pushButton_eventseek->setVisible(false);
167 groupBox_cruise->setVisible(false);
168 }
169
170 if (m_availEvents) {
171 connect(m_availEvents,SIGNAL(message(const QString&)),this,SLOT(helperAddToMessageBox(const QString&)));
172 connect(m_availEvents,SIGNAL(freshEventsChanged()),this,SLOT(updateEventControls()));
173 }
174
175 // File menu
176 if(!m_availEvents) {
177 QMenu* menu_file = new QMenu(menubar);
178 menu_file->setObjectName("menu_file");
179 menu_file->setTitle("&File");
180 menubar->addAction(menu_file->menuAction());
181 m_action_addEventFile = menu_file->addAction("&Add event file ...");
182
183 connect(m_action_addEventFile,SIGNAL(triggered(bool)),this,SLOT(addEventFile()));
184 }
185
186 #ifndef BUILDVP1LIGHT
187 pushButton_previousevent->setVisible(false);
188 pushButton_eventselect->setVisible(false);
189 #else
190 pushButton_eventselect->setVisible(true);
191 pushButton_eventselect->setText("Event: 0/0");
192 pushButton_eventselect->setEnabled(false);
193 pushButton_previousevent->setEnabled(false);
194 //Disable all controls that are not available in VP1Light
195 // pushButton_quicksetup_3dcocktail->setEnabled(false);
196 // pushButton_quicksetup_3dcocktail->setToolTip("Not available in VP1Light");
197 pushButton_quicksetup_trackingstudies->setEnabled(false);
198 pushButton_quicksetup_trackingstudies->setToolTip("Not available in VP1Light");
199 pushButton_quicksetup_calostudies->setEnabled(false);
200 pushButton_quicksetup_calostudies->setToolTip("Not available in VP1Light");
201 action_quicklaunch_Tracking_studies->setEnabled(false);
202 action_quicklaunch_Tracking_studies->setToolTip("Not available in VP1Light");
203 action_quicklaunch_Calo_studies->setEnabled(false);
204 action_quicklaunch_Calo_studies->setToolTip("Not available in VP1Light");
205 action_quicklaunch_Storegate_browser->setEnabled(false);
206 action_quicklaunch_Storegate_browser->setToolTip("Not available in VP1Light");
207 action_quicklaunch_trackcalo_commis->setEnabled(false);
208 action_quicklaunch_trackcalo_commis->setToolTip("Not available in VP1Light");
209 m_action_addEventFile->setEnabled(false);
210 #endif
211
213 //Do we need a menu for multiple input directories?
214
215 VP1AvailEvtsLocalDir* availLocal = dynamic_cast<VP1AvailEvtsLocalDir*>(m_availEvents);
216
217 QStringList inputdirs;
218 if (availLocal)
219 inputdirs = availLocal->availableSourceDirectories();
220
221 if (availLocal&&!inputdirs.isEmpty()) {
222
223 QString currentdir = availLocal->currentSourceDir();
224 if (currentdir.endsWith("/"))
225 currentdir.chop(1);
226 m_currentStream = QDir(currentdir).dirName();
227 QMenu * menu_inputdir = new QMenu(menubar);
228 menu_inputdir->setObjectName("menu_inputdir");
229 menu_inputdir->setTitle("&Stream");
230
231 menubar->addAction(menu_inputdir->menuAction());
232
233 QActionGroup * inputdir_actiongroup = new QActionGroup(menu_inputdir);
234 QAction*action_inputdir_current(0);
235 for (QString inputdir : inputdirs) {
236 if (inputdir.endsWith("/"))
237 inputdir.chop(1);
238 QString dirname = QDir(inputdir).dirName();
239 QAction * action_inputdir = new QAction(this);
240 action_inputdir->setObjectName("action_inputdir_"+dirname);
241 action_inputdir->setData(inputdir);
242 action_inputdir->setStatusTip("Get input files from: "+inputdir);
243 action_inputdir->setCheckable(true);
244
245 if (currentdir==inputdir)
246 action_inputdir_current = action_inputdir;
247 menu_inputdir->addAction(action_inputdir);
248 inputdir_actiongroup->addAction(action_inputdir);
249 m_inputdiractions << action_inputdir;
250 connect(action_inputdir,SIGNAL(triggered(bool)),this,SLOT(inputDirectoryActionTriggered()));
251 }
252 if (action_inputdir_current) {
253 action_inputdir_current->blockSignals(true);
254 action_inputdir_current->setChecked(true);
255 action_inputdir_current->blockSignals(false);
256 }
257
258 // Populate inputdirstatuses
259 for(QAction* action : m_inputdiractions)
260 m_inputdirstatuses[action] = VP1DirStatusData(action->data().toString(),
261 QString(),
262 true,
263 false);
264
265 m_streamMenuUpdater = new VP1StreamMenuUpdater(m_inputdirstatuses,m_mutex);
266 m_streamMenuUpdater->start();
267
268 //Fixme: start timer which every minute checks the status of these directories
269 QTimer *timer = new QTimer(this);
270 connect(timer, SIGNAL(timeout()), this, SLOT(updateInputDirectoriesStatus()));
271 timer->start(5000);//update this menu rather often (this is only for P1 anyway)
272 }
273
274 //.......
275
276 m_channelmanager = new VP1ChannelManager(m_scheduler,this);
277 m_tabmanager = new VP1TabManager(this,tabWidget_central,m_channelmanager);
278 stackedWidget_customcontrols->addWidget(m_dummyemptycontroller);
279
280 //Final touches to instructions page:
281
282 // Remove any margins added by the layouts in the stacked
283 // widget. This really ought to be the default for stacked widgets!
284 for (int i=0;i<stackedWidget_central->count();++i)
285 stackedWidget_central->widget(i)->layout()->setContentsMargins(0,0,0,0);
286
287 frame_instructions->setStyleSheet("QFrame#frame_instructions { "+VP1DockWidget::highlightStyle()+" } ");
288 frame_instructions->setFrameShape(QFrame::StyledPanel);
289 // textBrowser_intro1->setStyleSheet("QTextBrowser#textBrowser_intro1 { background-color: rgba(0, 0, 0, 0%) } ");
290 // textBrowser_intro2->setStyleSheet("QTextBrowser#textBrowser_intro2 { background-color: rgba(0, 0, 0, 0%) } ");
291 #ifndef BUILDVP1LIGHT
292 connect(pushButton_quicksetup_3dcocktail,SIGNAL(clicked()),this,SLOT(quickSetupTriggered()));
293 #else
294 connect(pushButton_quicksetup_3dcocktail,SIGNAL(clicked()),this,SLOT(quickSetupTriggered()));
295 #endif
296 connect(pushButton_quicksetup_trackingstudies,SIGNAL(clicked()),this,SLOT(quickSetupTriggered()));
297 connect(pushButton_quicksetup_calostudies,SIGNAL(clicked()),this,SLOT(quickSetupTriggered()));
298 connect(pushButton_quicksetup_geometrystudies,SIGNAL(clicked()),this,SLOT(quickSetupTriggered()));
299 connect(pushButton_quicksetup_analysisstudies,SIGNAL(clicked()),this,SLOT(quickSetupTriggered()));
300
301 //Default application font:
302 m_defaultfont = QApplication::font();
306 else
308
309 //Tabs:
310 connect(m_tabmanager,SIGNAL(tabListChanged(QStringList)),this,SLOT(tabListChanged(QStringList)));
311 connect(tabWidget_central,SIGNAL(currentChanged(int)),this,SLOT(updateCentralStackWidget()));
313
314 //Channels:
315
316 connect(pushButton_saveAllChannels,SIGNAL(clicked()),this,SLOT(saveAllCurrentChannels()));
317 connect(pushButton_makeEventDisplay,SIGNAL(clicked()),this,SLOT(makeAllChannelsEventDisplay()));
318
319 connect(pushButton_3D,SIGNAL(clicked()),this,SLOT(launch3DstereoEditor()));
320
321 connect(pushButton_channelfullscreen,SIGNAL(clicked()),m_tabmanager,SLOT(showCurrentChannelFullScreen()));
322 connect(pushButton_channelinformation,SIGNAL(clicked()),this,SLOT(request_channelInformation()));
323 connect(pushButton_printchannel,SIGNAL(clicked()),this,SLOT(request_printChannel()));
324 connect(pushButton_savesnapshotchannel,SIGNAL(clicked()),this,SLOT(request_saveChannelSnapshot()));
325 connect(m_tabmanager,SIGNAL(selectedChannelChanged(IVP1ChannelWidget*)),this,SLOT(selectedChannelChanged(IVP1ChannelWidget*)));
326
327 //Menu:
328 //Quick start:
329 connect(action_quicklaunch_Tracking_studies,SIGNAL(triggered(bool)),this,SLOT(quickSetupTriggered()));
330 connect(action_quicklaunch_Calo_studies,SIGNAL(triggered(bool)),this,SLOT(quickSetupTriggered()));
331 connect(action_quicklaunch_Geometry_studies,SIGNAL(triggered(bool)),this,SLOT(quickSetupTriggered()));
332 connect(action_quicklaunch_analysisstudies,SIGNAL(triggered(bool)),this,SLOT(quickSetupTriggered()));
333 connect(action_quicklaunch_Storegate_browser,SIGNAL(triggered(bool)),this,SLOT(quickSetupTriggered()));
334 connect(action_quicklaunch_3dcocktail,SIGNAL(triggered(bool)),this,SLOT(quickSetupTriggered()));
335 connect(action_quicklaunch_trackcalo_commis,SIGNAL(triggered(bool)),this,SLOT(quickSetupTriggered()));
336 connect(action_exit_VP1,SIGNAL(triggered(bool)),this,SLOT(close()));
337
338 //Configuration
339 m_menu_loadConfFile = menuConfiguration->addMenu ( "&Load tab configuration from file" );
340 m_menu_loadConfFile->setStatusTip("Select .vp1 config file to load");
341 connect(m_menu_loadConfFile,SIGNAL(aboutToShow()),this,SLOT(showMenu_loadConfFile()));
342 menuConfiguration->addSeparator();
343 //plugins:
344 m_menu_loadPlugin = menuConfiguration->addMenu ( "&Load plugin" );
345 m_menu_loadPlugin->setStatusTip("Select plugin to load");
346 // m_action_infoAboutLoadedPlugins = menuPlugins->addAction ( "&Info about loaded plugins" );
347 // m_action_infoAboutLoadedPlugins->setStatusTip("Get information about the presently loaded plugins");
348 // m_action_infoAboutLoadedPlugins->setEnabled(false);
349 connect(m_menu_loadPlugin,SIGNAL(aboutToShow()),this,SLOT(showMenu_loadPlugin()));
350 //Style
351 m_menu_changeStyle = menu_Style->addMenu ( "&Style" );
352 QActionGroup * styleGroup = new QActionGroup(this);
353 QAction * laststyleact(0);
354 bool foundplastique=false;
355 QSettings s(m_settingsfile,QSettings::IniFormat);
356 QString defaultstyle=s.value("style/defaultstyle", "Fusion").toString();
357 for (QString style : QStyleFactory::keys() ) {
358 QAction * act = m_menu_changeStyle->addAction(style);
359 act->setStatusTip("Change application style to "+style);
360 connect(act,SIGNAL(triggered(bool)),this,SLOT(changeStyleActionTriggered()));
361 act->setCheckable(true);
362 styleGroup->addAction(act);
363 laststyleact=act;
364 if (act->text()==defaultstyle) {
365 act->setChecked(true);
366 QApplication::setStyle(QStyleFactory::create(act->text()));
367 foundplastique=true;
368 }
369 }
370 if (!foundplastique) {
371 laststyleact->setChecked(true);
372 QApplication::setStyle(QStyleFactory::create(laststyleact->text()));
373 }
374 //Fonts:
375 int savedgoal = 0;
377 savedgoal = s.value("font/pixelsize_diff", 0).toInt();
378 else
379 savedgoal = s.value("font/pointsize_relativepercent", 0).toInt();
380
381 m_menu_changeFontSize = menu_Style->addMenu ( "&Font size" );
382 QList<int> fontoptions;
384 fontoptions <<15<<10<<+5<<+3<<+2<<+1<<0<<-1<<-2<<-3<<-5<<-10<<-20<<-30;
385 else
386 fontoptions <<150<<100<<50<<30<<20<<10<<5<<0<<-5<<-10<<-20<<-30<<-50;
387
388 QActionGroup * fontGroup = new QActionGroup(this);
389 bool foundsavedgoal(false);
390 QAction * normalfontact(0);
391 for (int fontopt : fontoptions) {
393 continue;
394 QString text = (fontopt==0?"normal": (fontopt>0?"+":"")+QString::number(fontopt)+(m_defaultfont_pointsize < 0.0? " pixels" : "%"));
395 QAction * act = m_menu_changeFontSize->addAction(text);
396 act->setStatusTip("Change overall font size of application to "+text);
397 act->setData(fontopt);
398 act->setCheckable(true);
399 fontGroup->addAction(act);
400 connect(act,SIGNAL(triggered(bool)),this,SLOT(changeFontSizeActionTriggered()));
401 if (fontopt==0)
402 normalfontact=act;
403 if (savedgoal==fontopt) {
404 act->setChecked(true);
405 changeFontSize(fontopt);
406 foundsavedgoal=true;
407 }
408 }
409 if (!foundsavedgoal) {
410 normalfontact->setChecked(true);
411 }
412
413 //
414 m_actionSave_current_tabs = menuConfiguration->addAction ( "&Save current tab configuration to file" );
415 m_actionSave_current_tabs->setStatusTip("Save current tab/channel layout to .vp1 config file");
416 menuConfiguration->addSeparator();
417 m_actionAdd_empty_tab = menuConfiguration->addAction ( "&Add empty tab" );
418 m_actionAdd_empty_tab->setStatusTip("Add empty tab to the current tab list");
419 connect(m_actionAdd_empty_tab,SIGNAL(triggered(bool)),this,SLOT(request_addEmptyTab()));
420 connect(m_actionSave_current_tabs,SIGNAL(triggered(bool)),this,SLOT(request_saveasConfig()));
421
422 //ExpertSettings
423 #ifdef BUILDVP1LIGHT
424 menuConfiguration->addSeparator();
425 m_actionEnableExpertSettings = menuConfiguration->addAction ( "&Settings" );
426 m_actionEnableExpertSettings->setStatusTip("Open additional settings");
427 connect(m_actionEnableExpertSettings, &QAction::triggered, this, &VP1MainWindow::request_expertSettings);
428 #endif
429
430 //Event navigation:
431 connect(pushButton_nextevent,SIGNAL(clicked()),this,SLOT(goToNextEvent()));
432 #ifdef BUILDVP1LIGHT
433 connect(pushButton_previousevent,SIGNAL(clicked()),this,SLOT(goToPreviousEvent()));
434 connect(pushButton_eventselect,SIGNAL(clicked()),this,SLOT(chooseEvent()));
435 #endif
436
437 //Listen for external requests:
438 connect(&m_tcpserver,SIGNAL(receivedExternalRequest(VP1ExternalRequest)),this,SLOT(receivedExternalRequest(VP1ExternalRequest)));
439 listenOnTcp();
440 // updateTcpIcon();
441 connect(&m_tcpserver,SIGNAL(listenStateChanged(bool)),this,SLOT(updateTcpIcon()));
444 m_blockallmessages=false;
446
447 //Cruise:
448 connect(pushButton_cruise,SIGNAL(clicked()),this,SLOT(request_cruisemodechange()));
449 connect(radioButton_cruise_event,SIGNAL(clicked()),this,SLOT(request_cruisemodechange()));
450 connect(radioButton_cruise_tab,SIGNAL(clicked()),this,SLOT(request_cruisemodechange()));
451 connect(radioButton_cruise_both,SIGNAL(clicked()),this,SLOT(request_cruisemodechange()));
452
453 // Help menu
454 QMenu* menu_help = new QMenu(menubar);
455 menu_help->setObjectName("menu_help");
456 menu_help->setTitle("&Help");
457 menubar->addAction(menu_help->menuAction());
458 m_action_openVP1Site = menu_help->addAction("VP1 &Web Site");
459 m_action_openUsersGuide = menu_help->addAction("VP1 &User's Guide");
460 m_action_openUsersSupport = menu_help->addAction("VP1 User's &Support (in the system browser)");
461 menu_help->addSeparator();
462 m_action_openAbout = menu_help->addAction("&About VP1");
463
464 QTimer::singleShot(0, this, SLOT(postInitUpdates()));
465
466 if (qgetenv("VP1_REMOTE_MODE") == "1") {
467 QString coinPolicy = QString::fromLocal8Bit(qgetenv("VP1_COIN_INDIRECT_RENDERING_MESSAGE"));
468 if (coinPolicy.isEmpty())
469 coinPolicy = tr("Coin default policy (not initialized by the vp1 launcher).");
470 auto *modeLabel = new QLabel(tr("REMOTE MODE"), this);
471 modeLabel->setStyleSheet("QLabel { background: #ffe08a; color: #202020; font-weight: bold; padding: 4px; }");
472 modeLabel->setToolTip(tr("Remote mode enabled. Continuous rotation after mouse release is off by default. "
473 "Restart with --no-remote if detection is incorrect."));
474 modeLabel->setToolTip(modeLabel->toolTip() + QStringLiteral("\nSnapshot compatibility: ")
476 + QStringLiteral("\nCoin OpenGL policy: ") + coinPolicy);
477 statusBar()->addPermanentWidget(modeLabel);
478 if (!VP1QtUtils::environmentVariableIsSet("VP1_BATCHMODE")) {
479 QTimer::singleShot(0, this, [this, coinPolicy]() {
480 auto *notice = new QMessageBox(QMessageBox::Information, tr("VP1 remote mode"),
481 tr("VP1 has launched in remote mode.\n\nReason: %1.\n\n"
482 "In particular, a workaround to fix remote snapshot creation "
483 "is applied if needed, and 3D view rotation is limited to mouse movements "
484 "to prevent the creation of extra frames and slow response.\n\n"
485 "If auto-detection of remote running is incorrect, restart VP1 with '--no-remote' "
486 "to force full behavior.\n\n"
487 "==== Details: ====\n"
488 "To improve responsiveness, Continue rotating after mouse release is OFF by default. "
489 "Your saved remote preference takes precedence. Normal mouse dragging still works.\n\n"
490 "You can change this setting in the 3D viewer's right-click menu.\n\n"
491 "Snapshot compatibility: %2\n\n"
492 "Coin OpenGL policy: %3\n\n"
493 "If detection is incorrect, restart VP1 with --no-remote.")
494 .arg(QString::fromLocal8Bit(qgetenv("VP1_REMOTE_REASON")),
495 VP1SnapshotStatus::description(), coinPolicy),
496 QMessageBox::Ok, this);
497 notice->setTextFormat(Qt::PlainText);
498 notice->setAttribute(Qt::WA_DeleteOnClose);
499 notice->open();
500 });
501 }
502 }
503
506
507 connect(m_action_openUsersGuide,SIGNAL(triggered(bool)),this,SLOT(help_openUserGuide()));
508 connect(m_action_openVP1Site,SIGNAL(triggered(bool)),this,SLOT(help_openVP1WebSite()));
509 connect(m_action_openUsersSupport,SIGNAL(triggered(bool)),this,SLOT(help_openUserSupport()));
510 connect(m_action_openAbout,SIGNAL(triggered(bool)),this,SLOT(help_openAbout()));
511
512 // FIXME: enabling menubar again. It's part of a quickfix, described here: https://its.cern.ch/jira/browse/ATLASVPONE-120
513 #ifndef BUILDVP1LIGHT
514 menubar->setEnabled(false);
515 #endif
516}
const QString & currentSourceDir() const
const QStringList & availableSourceDirectories() const
static QString highlightStyle()
void helperAddToMessageBox(const QString &)
void changeFontSize(int)
void updateCentralStackWidget()
void help_openUserSupport()
int m_defaultfont_pixelsize
QMenu * m_menu_changeFontSize
VP1EventDisplayEditor * m_edEditor
VP1AvailEvents * m_availEvents
void receivedExternalRequest(VP1ExternalRequest)
void saveAllCurrentChannels()
double m_defaultfont_pointsize
VP1ChannelManager * m_channelmanager
VP1TabManager * m_tabmanager
QString m_currentsaveimagepath
QString m_currentloadpluginpath
VP1IncomingMessageDialog * m_currentincomingdialog
void request_saveasConfig()
QAction * m_action_openUsersSupport
QMenu * m_menu_loadPlugin
void request_cruisemodechange()
QWidget * m_dummyemptycontroller
const QString m_settingsfile
QAction * m_actionSave_current_tabs
QAction * m_action_openUsersGuide
void changeStyleActionTriggered()
QMenu * m_menu_loadConfFile
QString m_currentStream
unsigned long long m_eventnumber
void help_openUserGuide()
QAction * m_action_openVP1Site
QAction * m_actionAdd_empty_tab
QString request_saveChannelSnapshot(const QString &xLabel="")
void inputDirectoryActionTriggered()
VP1PluginDialog * m_plugindialog
VP1DirStatuses m_inputdirstatuses
void request_printChannel()
VP1TcpServer m_tcpserver
QList< QAction * > m_inputdiractions
QAction * m_actionEnableExpertSettings
VP1StreamMenuUpdater * m_streamMenuUpdater
void request_channelInformation()
VP1ExecutionScheduler * m_scheduler
void makeAllChannelsEventDisplay()
QAction * m_action_addEventFile
void changeFontSizeActionTriggered()
void selectedChannelChanged(IVP1ChannelWidget *)
void request_addEmptyTab()
void tabListChanged(const QStringList &)
QAction * m_action_openAbout
void launch3DstereoEditor()
void updateInputDirectoriesStatus()
void showMenu_loadConfFile()
void help_openVP1WebSite()
QMenu * m_menu_changeStyle
static bool environmentVariableIsOn(const QString &name)
static bool expertSettingIsSet(const QString &type, const QString &name)
static bool environmentVariableIsSet(const QString &name)
static QString defaultFileSelectDirectory()
str inputdir
define the input files
timer(name, disabled=False)
std::string dirname(std::string name)
Definition utils.cxx:200

◆ ~VP1MainWindow()

VP1MainWindow::~VP1MainWindow ( )

Definition at line 628 of file VP1MainWindow.cxx.

629{
630 if (m_edEditor) {
631 VP1Msg::messageDebug("deleting the editor");
632 delete m_edEditor;
633 }
634 VP1Msg::messageDebug("deleting the tab manager");
635 delete m_tabmanager;
636 VP1Msg::messageDebug("deleting the channel manager");
637 delete m_channelmanager;
638 VP1Msg::messageDebug("deleting the events");
639 delete m_availEvents;
640
642 VP1Msg::messageDebug("deleting the streamupdater");
643 m_streamMenuUpdater->quit();
644 m_streamMenuUpdater->deleteLater();
645 }
646
647 VP1Msg::messageDebug("deleting the mutex");
648 delete m_mutex;
649
650 VP1Msg::messageDebug("deleting the view");
651}
static void messageDebug(const QString &)
Definition VP1Msg.cxx:39

Member Function Documentation

◆ addChannelIconsToComboBox()

void VP1MainWindow::addChannelIconsToComboBox ( QComboBox * cb,
const bool & isbasenames )
protected

Definition at line 717 of file VP1MainWindow.cxx.

717 {
718 int n= cb->count();
719 for (int i = 0; i<n; ++i) {
720 QString icontext = m_channelmanager->getIconLocation(cb->itemText(i), isbasenames);
721 if (!icontext.isEmpty())
722 cb->setItemIcon ( i, QIcon(icontext) );
723 }
724}

◆ addEventFile

void VP1MainWindow::addEventFile ( )
protectedslot

Definition at line 1967 of file VP1MainWindow.cxx.

1968{
1969 QString newEventFile = QFileDialog::getOpenFileName(NULL
1970 ,tr("Open Event File")
1972 ,tr("All files (*.*)"));
1973 if(newEventFile.isEmpty()) return;
1974 if(VP1FileUtilities::fileExistsAndReadable(newEventFile.toStdString())) {
1975 m_userRequestedFiles.append(newEventFile);
1976 addToMessageBox(newEventFile + " will be appended to the list of input files");
1977 }
1978 else
1979 QMessageBox::critical(0, newEventFile + " either does not exist or is not readable",
1980 newEventFile + " either does not exist or is not readable",
1981 QMessageBox::Ok,QMessageBox::Ok);
1982}
static bool fileExistsAndReadable(const std::string &)
void addToMessageBox(const QString &, const QString &extrastyleopts="", const QString &title="", const QString &titleextrastyleopts="")
QStringList m_userRequestedFiles

◆ addToMessageBox

void VP1MainWindow::addToMessageBox ( const QString & m,
const QString & extrastyleopts = "",
const QString & title = "",
const QString & titleextrastyleopts = "" )
slot

Definition at line 1113 of file VP1MainWindow.cxx.

1115{
1116
1117 if (title.isEmpty())
1118 std::cout<<VP1Msg::prefix_msg()<<": "<<m.toStdString()<<std::endl;
1119 else
1120 std::cout<<VP1Msg::prefix_msg()<<": "<<title.toStdString() << ": " <<m.toStdString()<<std::endl;
1121
1122
1123 QString titlepart = ( title.isEmpty() ? "" : ( titleextrastyleopts.isEmpty() ? title
1124 : "<span style=\"font-style:italic;"+titleextrastyleopts+";\">["+title+"]</span> "));
1125
1126 textBrowser_channelmessages->append(titlepart
1127 + ( extrastyleopts.isEmpty() ? m
1128 : "<span style=\"font-style:italic;"+extrastyleopts+";\">"+m+"</span>"));
1129 textBrowser_channelmessages->verticalScrollBar()->setSliderPosition(textBrowser_channelmessages->verticalScrollBar()->maximum());
1130}
static const char * prefix_msg()
Definition VP1Msg.h:56

◆ availableFiles()

QMap< QString, QString > VP1MainWindow::availableFiles ( const QString & extension,
const QString & pathvar,
const QString & instareasubdir,
const QString & extradirenvvar,
bool currentdir = false ) const
protected

Definition at line 814 of file VP1MainWindow.cxx.

819{
820
821 qDebug() << "VP1MainWindow::availableFiles()";
822 qDebug() << "extension:" << extension << "pathvar:" << pathvar << "instareasubdir:" << instareasubdir << "extradirenvvar:" << extradirenvvar << "currentdir:" << currentdir;
823
824
825 //Add directories from extradirenvvar (e.g. $VP1PLUGINPATH)
826 QStringList vp1pluginpath =
827 extradirenvvar.isEmpty() ?
828 QStringList() :
829 QString(::getenv(extradirenvvar.toStdString().c_str())) .
830#if QTCORE_VERSION >= 0x050E00
831 split(":",Qt::SkipEmptyParts);
832#else
833 split(":",QString::SkipEmptyParts);
834#endif
835 if(VP1Msg::debug()){
836 qDebug() << "extradirenvvar:" << extradirenvvar;
837 qDebug() << "vp1pluginpath:" << vp1pluginpath;
838 }
839
840 #ifdef BUILDVP1LIGHT
841 //Add dir from Expert Settings
842 if(VP1QtUtils::expertSettingValue("expert","ExpertSettings/VP1PLUGINPATH")==""){
843 vp1pluginpath<<QCoreApplication::applicationDirPath()+"/../lib";
844 } else{
845 vp1pluginpath<<VP1QtUtils::expertSettingValue("expert","ExpertSettings/VP1PLUGINPATH");
846 }
847 #endif
848
849 //Currentdir:
850 if (currentdir) {
851 vp1pluginpath<<QDir::currentPath();
852 if (QDir::currentPath()!=VP1Settings::defaultFileSelectDirectory())
854 }
855
856 //Add directories from pathvar (looking in subdir instareasubdir):
857 QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
858 VP1Msg::messageDebug("This is the 'pathvar' variable: " + pathvar);
859 QString path = env.value(pathvar);
860 VP1Msg::messageDebug("Add directories from 'pathvar' variable: " + path);
861
862 if (!path.isEmpty()) {
863#if QTCORE_VERSION >= 0x050E00
864 VP1Msg::messageDebug("We're using Qt5...");
865 QStringList tmp = path.split(":",Qt::SkipEmptyParts);//This 'tmp' is for SLC3 compilation.
866#else
867 VP1Msg::messageDebug("We're using Qt older than 5...");
868 QStringList tmp = path.split(":",QString::SkipEmptyParts);//This 'tmp' is for SLC3 compilation.
869#endif
870 for (const QString& dir : tmp) {
871 vp1pluginpath << ( instareasubdir.isEmpty() ? dir : dir+QDir::separator()+instareasubdir );
872 }
873 }
874
875 // Remove duplicates
876 int nDuplicatesRemoved = vp1pluginpath.removeDuplicates();
877 VP1Msg::messageDebug("Removed '" + QString::number(nDuplicatesRemoved) + "' duplicate paths.");
878
879 // Remove all nonexisting directories:
880 QStringList validPluginPaths;
881 validPluginPaths.reserve(vp1pluginpath.size());
882 for (const QString& plugindir : vp1pluginpath) {
883 VP1Msg::messageDebug("plugindir: '" + plugindir + "'");
884 QFileInfo fi(plugindir);
885
886 if (fi.exists() && fi.isDir()) {
887 validPluginPaths << plugindir;
888 } else {
889 VP1Msg::messageDebug("Removed non-valid path: '" + plugindir + "'");
890 }
891 }
892 vp1pluginpath = validPluginPaths;
893
894
895 //Find all files with required extension in the directories (in case of duplicates - the ones appearing first are used):
896 QMap<QString,QString> plugins2fullpath;
897 for (const QString& plugindir : vp1pluginpath) {
898 QStringList plugins = QDir(plugindir).entryList((QStringList()<<("*"+extension)),QDir::CaseSensitive | QDir::Files | QDir::Readable,QDir::Name);
899 for (QString plugin : plugins) {
900 plugin = QFileInfo(plugin).fileName();
901 if (!plugins2fullpath.contains(plugin)) {
902 QString fullpath = plugindir+QDir::separator()+plugin;
903 plugins2fullpath[plugin]=fullpath;
904 }
905 }
906 }
907 return plugins2fullpath;
908}
if(pathvar)
const char * pathvar
static bool debug()
Definition VP1Msg.h:32
static QString expertSettingValue(const QString &type, const QString &name)
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition hcg.cxx:179
std::string getenv(const std::string &variableName)
get an environment variable
path
python interpreter configuration --------------------------------------—
Definition athena.py:130

◆ availablePluginFiles()

QMap< QString, QString > VP1MainWindow::availablePluginFiles ( ) const
protected

Definition at line 911 of file VP1MainWindow.cxx.

912{
913VP1Msg::messageDebug("VP1MainWindow::availablePluginFiles()");
914
915#ifdef __APPLE__
916 QString sharedlibsuffix = "dylib";
917#else
918 QString sharedlibsuffix = "so";
919#endif
920
921 return availableFiles( "."+sharedlibsuffix, "LD_LIBRARY_PATH", "vp1plugins", "VP1PLUGINPATH" );
922
923}
QMap< QString, QString > availableFiles(const QString &extension, const QString &pathvar, const QString &instareasubdir, const QString &extradirenvvar, bool currentdir=false) const

◆ changeFontSize

void VP1MainWindow::changeFontSize ( int goal)
slot

Definition at line 1708 of file VP1MainWindow.cxx.

1709{
1710 QFont newfont = m_defaultfont;
1711 QSettings s(m_settingsfile,QSettings::IniFormat);
1712 if (m_defaultfont_pointsize<0.0) {
1713 //pixels
1714 assert(m_defaultfont_pixelsize+goal>0);
1715 if (m_defaultfont_pixelsize+goal<=0)
1716 return;
1717 if (m_defaultfont_pixelsize+goal>200)
1718 return;
1719 newfont.setPixelSize(m_defaultfont_pixelsize+goal);
1720 s.setValue("font/pixelsize_diff",goal);
1721 } else {
1722 //pointsize
1723 double fact = (goal+100.0)/100.0;
1724 if (fact<0.01||fact>50)
1725 return;
1726 double newpointsize=m_defaultfont_pointsize*fact;
1727 if (newpointsize<0)
1728 return;
1729 newfont.setPointSizeF(newpointsize);
1730 s.setValue("font/pointsize_relativepercent",goal);
1731 }
1732 QApplication::setFont(newfont);
1733}

◆ changeFontSizeActionTriggered

void VP1MainWindow::changeFontSizeActionTriggered ( )
protectedslot

Definition at line 1693 of file VP1MainWindow.cxx.

1694{
1695 QAction * act = static_cast<QAction*>(sender());
1696 assert(act);
1697 if (!act)
1698 return;
1699 bool ok;
1700 int goal = act->data().toInt(&ok);
1701 assert(ok);
1702 if (!ok)
1703 return;
1704 changeFontSize(goal);
1705}

◆ changeStyleActionTriggered

void VP1MainWindow::changeStyleActionTriggered ( )
protectedslot

Definition at line 1677 of file VP1MainWindow.cxx.

1678{
1679 QAction * act = static_cast<QAction*>(sender());
1680 assert(act);
1681 if (!act)
1682 return;
1683 assert(QStyleFactory::keys().contains(act->text()));
1684 if (!QStyleFactory::keys().contains(act->text()))
1685 return;
1686 QApplication::setStyle(QStyleFactory::create(act->text()));
1687 QSettings s(m_settingsfile,QSettings::IniFormat);
1688 s.setValue("style/defaultstyle",act->text());
1689
1690}
bool contains(const std::string &s, const std::string &regx)
does a string contain the substring
Definition hcg.cxx:116

◆ channelAddToMessageBox

void VP1MainWindow::channelAddToMessageBox ( const QString & m)
slot

Definition at line 1148 of file VP1MainWindow.cxx.

1149{
1150 IVP1ChannelWidget*cw = static_cast<IVP1ChannelWidget*>(sender());
1151 if (!cw) {
1152 addToMessageBox("VP1MainWindow::channelAddToMessageBox Error: Only prints channelwidget messages!");
1153 return;
1154 }
1155 addToMessageBox(m,"color:#000000", cw->unique_name(),"color:#0000ff");
1156}
const QString unique_name() const

◆ channelManager()

VP1ChannelManager * VP1MainWindow::channelManager ( ) const
inline

Definition at line 145 of file VP1MainWindow.h.

145{ return m_channelmanager; }

◆ closeEvent()

void VP1MainWindow::closeEvent ( QCloseEvent * event)
protected

Definition at line 1026 of file VP1MainWindow.cxx.

1027{
1028 VP1Msg::messageDebug("VP1MainWindow::closeEvent()");
1029
1030 bool checkEnableAskOnClose;
1031 #if defined BUILDVP1LIGHT
1032 checkEnableAskOnClose = VP1QtUtils::expertSettingIsSet("general","ExpertSettings/VP1_ENABLE_ASK_ON_CLOSE");
1033 #else
1034 checkEnableAskOnClose = VP1QtUtils::environmentVariableIsOn("VP1_ENABLE_ASK_ON_CLOSE");
1035 #endif
1036
1037 if (checkEnableAskOnClose) {
1038 int ret = QMessageBox::warning(this,
1039 "Close VP1?",
1040 "You are about to close VP1 and end the job.\nProceed?",
1041 QMessageBox::Ok| QMessageBox::Cancel,
1042 QMessageBox::Cancel );
1043 if (ret!=QMessageBox::Ok) {
1044 event->ignore();
1045 return;
1046 }
1047 m_userRequestedExit = true;
1048 }
1049
1050 hide();
1051
1052 VP1Msg::messageDebug("calling tabmanager->setSelectedDockWidget(0)...");
1053 m_tabmanager->setSelectedDockWidget(0);
1054 VP1Msg::messageDebug("tabmanager->setSelectedDockWidget(0) called.");
1055
1056 m_mustquit=true; // this will inform VP1Alg that we want to quit VP1 (then we'll quit the Athena algorithm)
1057 VP1Msg::messageDebug("calling qApp->quit()...");
1058 qApp->quit();
1059}

◆ finishedIncomingDialog

void VP1MainWindow::finishedIncomingDialog ( )
protectedslot

Definition at line 1524 of file VP1MainWindow.cxx.

1525{
1527 if (!m_requestqueue.empty())
1528 QTimer::singleShot(0, this, SLOT(processEnqueuedRequests()));
1529}
QQueue< VP1ExternalRequest > m_requestqueue
void processEnqueuedRequests()

◆ getAllChannelsIntoSnapshots

void VP1MainWindow::getAllChannelsIntoSnapshots ( QList< QPixmap > & list,
QStringList & listNames )
slot

Definition at line 1215 of file VP1MainWindow.cxx.

1216{
1217 VP1Msg::messageDebug("VP1MainWindow::getAllChannelsIntoSnapshots()");
1218
1219// int nTabs = m_tabmanager->nTabs();
1220 QList<IVP1ChannelWidget*> allTabs = m_tabmanager->allChannels();
1221
1222 if (allTabs.isEmpty()) {
1223 VP1Msg::message("WARNING - No tabs to save.");
1224 return;
1225 }
1226
1227 int nT = 0;
1228
1229 // loop over all tabs/channels
1230 for(IVP1ChannelWidget* widg : allTabs) {
1231
1232 // increase tab number
1233 ++nT;
1234
1235 // get channel name (e.g. Geometry, 3DCocktail)
1236 QString channelname = m_tabmanager->channelToTab(widg);
1237 channelname.replace(' ','_');
1238 VP1Msg::messageDebug("tab: " + channelname);
1239
1240 // DEBUG MSGS
1241 // get channel info, only for debug
1242 //QString info = widg->information();
1243 //VP1Msg::messageDebug("channel info: " + info);
1244
1245
1246 QPixmap snap = getSingleChannelCustomSnapshot(widg);
1247
1248 list << snap;
1249 listNames << channelname;
1250
1251 }
1252
1253 VP1Msg::messageVerbose(QString::number(nT)+" tabs/channels saved in the QList.");
1254
1255}
QPixmap getSingleChannelCustomSnapshot(IVP1ChannelWidget *tab, int width=0)
static void messageVerbose(const QString &)
Definition VP1Msg.cxx:84
static void message(const QString &, IVP1System *sys=0)
Definition VP1Msg.cxx:30
list(name, path='/')
Definition histSizes.py:38

◆ getEventNumber()

unsigned long long VP1MainWindow::getEventNumber ( )
inline

Definition at line 151 of file VP1MainWindow.h.

151{ return m_eventnumber; }

◆ getEventTimestamp()

int VP1MainWindow::getEventTimestamp ( )
inline

Definition at line 152 of file VP1MainWindow.h.

152{ return m_timestamp; }
unsigned m_timestamp

◆ getRunNumber()

int VP1MainWindow::getRunNumber ( )
inline

Definition at line 150 of file VP1MainWindow.h.

150{ return m_runnumber; }

◆ getSingleChannelCustomSnapshot [1/2]

QPixmap VP1MainWindow::getSingleChannelCustomSnapshot ( const QString & tabName,
int width = 0 )
slot

Definition at line 1288 of file VP1MainWindow.cxx.

1289{
1290 QList<IVP1ChannelWidget*> allTabs = m_tabmanager->allChannels();
1291
1292 if (allTabs.isEmpty()) {
1293 VP1Msg::message("WARNING - No tabs to get snapshots from.");
1294 }
1295
1296 // loop over all tabs/channels
1297 for(IVP1ChannelWidget* widg : allTabs) {
1298
1299 // get channel name (e.g. Geometry, 3DCocktail)
1300 QString channelname = m_tabmanager->channelToTab(widg);
1301 channelname.replace(' ','_');
1302
1303 if (channelname == tabName) {
1304 VP1Msg::messageDebug("found tab: " + channelname);
1305
1306 if (width)
1308 else
1309 return getSingleChannelCustomSnapshot(widg);
1310
1311 }
1312 }
1313 return QPixmap();
1314}
const double width

◆ getSingleChannelCustomSnapshot [2/2]

QPixmap VP1MainWindow::getSingleChannelCustomSnapshot ( IVP1ChannelWidget * tab,
int width = 0 )
slot

Definition at line 1258 of file VP1MainWindow.cxx.

1259{
1260 VP1Msg::messageDebug("VP1MainWindow::getSingleChannelCustomSnapshot()");
1261
1262 std::cout << "tab: " << tab << std::endl;
1263
1264 // save the anti-aliasing status, set by the user
1265 bool antialias_original = tab->isAntiAliasing();
1266
1267 // for the final event display images we want the anti-aliasing turned ON,
1268 tab->setAntiAliasing(true);
1269
1270 // get the snapshot
1271 QPixmap snap;
1272 if (width)
1273 snap = tab->getSnapshot(true, width); // 'true' means 'transparent background'
1274 else
1275 snap = tab->getSnapshot(true); // 'true' means 'transparent background'
1276
1277 if (snap.isNull()) {
1278 VP1Msg::message("ERROR! - No snapshot produced!");
1279 return QPixmap();
1280 }
1281
1282 // go back to the original anti-aliasing status, set by the user for the tab
1283 tab->setAntiAliasing(antialias_original);
1284
1285 return snap;
1286}
virtual QPixmap getSnapshot(bool transp=false, int width=0, bool batch=false)
virtual bool setAntiAliasing(bool aa)
virtual bool isAntiAliasing()

◆ goToNextEvent

void VP1MainWindow::goToNextEvent ( )
slot

Definition at line 986 of file VP1MainWindow.cxx.

986 {
987 #if defined BUILDVP1LIGHT
988 std::cout << "goToNextEvent: \n"
989 << "m_scheduler->getEvtNr()+2: " << m_scheduler->getEvtNr()+2
990 << "\nm_scheduler->getTotEvtNr(): " << m_scheduler->getTotEvtNr() << std::endl;
991 if ( m_scheduler->getEvtNr()+2 < m_scheduler->getTotEvtNr() ) {
992 std::cout << "First case" << std::endl;
993 m_scheduler->setEvtNr(m_scheduler->getEvtNr()+1);
994 nextEvent();
995 qApp->quit();
996 }
997 else if( m_scheduler->getEvtNr()+2 == m_scheduler->getTotEvtNr() ) {
998 std::cout << "Second case" << std::endl;
999 m_scheduler->setEvtNr(m_scheduler->getEvtNr()+1);
1000 nextEvent();
1001 qApp->quit();
1002 }
1003 #else
1004 nextEvent();
1005 qApp->quit();
1006 #endif
1007}

◆ help_openAbout

void VP1MainWindow::help_openAbout ( )
protectedslot

Definition at line 564 of file VP1MainWindow.cxx.

564 {
565 /*
566 * open the online help
567 */
568 VP1Msg::messageDebug("VP1MainWindow::help_openAbout()");
569 // we use here the default system browser
570 QDesktopServices::openUrl(QUrl("https://atlas-vp1.web.cern.ch/atlas-vp1/doc_new/about_vp1/CREDITS.html"));
571 return;
572}

◆ help_openUserGuide

void VP1MainWindow::help_openUserGuide ( )
protectedslot

Definition at line 527 of file VP1MainWindow.cxx.

527 {
528 /*
529 * Open the online help from a web url location
530 * with the default system web browser
531 */
532 VP1Msg::messageDebug("VP1MainWindow::help_openUserGuide()");
533 // we use here the default system browser
534 QDesktopServices::openUrl(QUrl("http://atlas-vp1.web.cern.ch/atlas-vp1/doc/"));
535 return;
536}

◆ help_openUserSupport

void VP1MainWindow::help_openUserSupport ( )
protectedslot

Definition at line 539 of file VP1MainWindow.cxx.

539 {
540 /*
541 * Open the online page with links to the JIRA issue collectors
542 * with the default system web browser
543 */
544 VP1Msg::messageDebug("VP1MainWindow::help_openUserSupport()");
545 // we use here the default system browser
546 QDesktopServices::openUrl(QUrl("http://atlas-vp1.web.cern.ch/atlas-vp1/vp1_users_support/"));
547 return;
548}

◆ help_openVP1WebSite

void VP1MainWindow::help_openVP1WebSite ( )
protectedslot

Definition at line 551 of file VP1MainWindow.cxx.

551 {
552 /*
553 * Open the online help from a web url location
554 * with the default system web browser
555 */
556 VP1Msg::messageDebug("VP1MainWindow::help_openVP1WebSite()");
557 // we use here the default system browser
558 QDesktopServices::openUrl(QUrl("http://atlas-vp1.web.cern.ch/atlas-vp1/"));
559 return;
560}

◆ helperAddToMessageBox

void VP1MainWindow::helperAddToMessageBox ( const QString & m)
slot

Definition at line 1159 of file VP1MainWindow.cxx.

1160{
1161 addToMessageBox(m);
1162}

◆ inputDirectoryActionTriggered

void VP1MainWindow::inputDirectoryActionTriggered ( )
protectedslot

Definition at line 1937 of file VP1MainWindow.cxx.

1938{
1939 QAction * act = dynamic_cast<QAction*>(sender());
1940 if (!act)
1941 return;
1942 VP1AvailEvtsLocalDir* availLocal = dynamic_cast<VP1AvailEvtsLocalDir*>(m_availEvents);
1943 if (!availLocal)
1944 return;
1945 QString inputdir(act->data().toString());
1946 QFileInfo fi(inputdir);
1947 if (fi.exists()&&fi.isDir()) {
1948 availLocal->setSourceDir(inputdir);
1949 std::cout<<VP1Msg::prefix_msg()<<": "
1950 <<"VP1Message: inputdirectory changed to "
1951 <<availLocal->currentSourceDir().toStdString()<<std::endl;
1952 m_currentStream = QDir(availLocal->currentSourceDir()).dirName();
1953 }
1954
1955
1956}
void setSourceDir(const QString &)

◆ launch3DstereoEditor

void VP1MainWindow::launch3DstereoEditor ( )
protectedslot

Definition at line 519 of file VP1MainWindow.cxx.

520{
521 VP1Msg::messageDebug("VP1MainWindow::launch3DstereoEditor()");
522 m_tabmanager->launchStereoEditorCurrentTab();
523
524}

◆ listenOnTcp()

void VP1MainWindow::listenOnTcp ( )
protected

Definition at line 1514 of file VP1MainWindow.cxx.

1515{
1516 QString err;
1517 if (!m_tcpserver.listen(err)) {
1518 qDebug("%s", err.toStdString().c_str());
1519 }
1520}

◆ loadConfigurationFromFile

void VP1MainWindow::loadConfigurationFromFile ( const QString & file)
slot

Definition at line 1501 of file VP1MainWindow.cxx.

1501 {
1502 m_tabmanager->loadConfigurationFromFile(file,availablePluginFiles());
1503}
QMap< QString, QString > availablePluginFiles() const
TFile * file

◆ loadPluginFile

void VP1MainWindow::loadPluginFile ( const QString & filename)
slot

Definition at line 671 of file VP1MainWindow.cxx.

672{
673 VP1Msg::messageDebug("loadPluginFile()");
674
675 QString err = m_channelmanager->loadPluginFile(filename);
676 if (!err.isEmpty()) {
677 QMessageBox::critical(0, "Error - could not load plugin file: "+filename,
678 "Could not load plugin file: "
679 +filename+"\n\nReason: "+err,QMessageBox::Ok,QMessageBox::Ok);
680 VP1Msg::message("Could not load plugin file: "+filename+"\n\nReason: "+err);
681 }
682 //Fixme: Error message here is hardcoded to be the same as in loadPluginFile method!!
683}

◆ makeAllChannelsEventDisplay

void VP1MainWindow::makeAllChannelsEventDisplay ( )
slot

Definition at line 1185 of file VP1MainWindow.cxx.

1186{
1187 VP1Msg::messageVerbose("VP1MainWindow::makeAllChannelsEventDisplay()");
1188
1189 QList<QPixmap> list;
1190 QStringList listNames;
1191 QList<unsigned long long> listRunEventNumberTimestamp;
1192
1193 getAllChannelsIntoSnapshots(list, listNames);
1194
1195 listRunEventNumberTimestamp << m_runnumber;
1196 listRunEventNumberTimestamp << m_eventnumber;
1197 listRunEventNumberTimestamp << m_timestamp;
1198
1199 // create a new editor window
1200 m_edEditor = new VP1EventDisplayEditor(this, listRunEventNumberTimestamp);
1201
1202 m_edEditor->addPixmapList(list, listNames);
1203
1204 // pass the lists of all tabs and their names to the editor
1205 m_edEditor->setTabsList( listNames);
1206
1207 m_edEditor->show();
1208
1209}
void getAllChannelsIntoSnapshots(QList< QPixmap > &list, QStringList &listNames)

◆ mustQuit()

bool VP1MainWindow::mustQuit ( ) const

Definition at line 654 of file VP1MainWindow.cxx.

654 {
655 return m_mustquit;
656}

◆ nextEvent()

void VP1MainWindow::nextEvent ( )

Definition at line 971 of file VP1MainWindow.cxx.

971 {
972 m_betweenevents=true;
973 if (m_availEvents) {
974 QList<VP1EventFile> evts = m_availEvents->freshEvents();
975 if (evts.empty()) {
976 addToMessageBox("ERROR: Going to next event, but one is not available!");
977 m_scheduler->setNextRequestedEventFile("");
978 } else {
979 m_scheduler->setNextRequestedEventFile(evts.front().fileName());
980 }
981 }
983}

◆ okToProceedToNextEvent()

bool VP1MainWindow::okToProceedToNextEvent ( ) const

Definition at line 964 of file VP1MainWindow.cxx.

965{
966 return ! (m_betweenevents || (m_availEvents&&m_availEvents->freshEvents().isEmpty()));
967}

◆ pluginDialogClosed

void VP1MainWindow::pluginDialogClosed ( )
slot

Definition at line 926 of file VP1MainWindow.cxx.

926 {
927 if (!m_plugindialog)
928 return;
929
930 int res = m_plugindialog->result();
931 QString filename = m_plugindialog->unloadfile();
932 disconnect(m_plugindialog,SIGNAL(finished(int)),this,SLOT(pluginDialogClosed()));
933 m_plugindialog->deleteLater();
934 m_plugindialog = 0;
935
936 if (res!=QDialog::Accepted||filename.isEmpty())
937 return;
938
939 QStringList bns = m_channelmanager->channelsInPluginFile(filename);
940
941 for (const QString& bn : bns) {
942 while(m_channelmanager->basename2UniqueNames(bn).count()>0)
943 m_tabmanager->removeChannel(m_channelmanager->basename2UniqueNames(bn).value(0));
944 }
945
947 QTimer::singleShot(0, this, SLOT(unloadPlugin_continue()));
948
949}
std::pair< std::vector< unsigned int >, bool > res
void unloadPlugin_continue()
QStringList m_currentunloadpluginfiles
void pluginDialogClosed()

◆ postInitUpdates

void VP1MainWindow::postInitUpdates ( )
protectedslot

Definition at line 576 of file VP1MainWindow.cxx.

576 {
577
578 //Make sure that the splitters give maximum space for the tab area.
579
580 int sum1 = splitter_tabwidget_messagebox->sizes().at(0) + splitter_tabwidget_messagebox->sizes().at(1);
581 QList<int> sizes1; sizes1 << sum1 << 0;
582 splitter_tabwidget_messagebox->setSizes ( sizes1 );
583 int bottom = 1;
584 while (splitter_tabwidget_messagebox->sizes().at(1)==0&&bottom<50000) {
585 QList<int> sizes2; sizes2 << sum1-bottom << bottom;
586 splitter_tabwidget_messagebox->setSizes ( sizes2 );
587 ++bottom;
588 }
589
590 int sum2 = splitter_leftright->sizes().at(0) + splitter_leftright->sizes().at(1);
591 int left = 300;
592 QList<int> sizes3; sizes3 << left << sum2-left;
593 splitter_leftright->setSizes ( sizes3 );
594 while (splitter_leftright->sizes().at(0)==0&&left<50000) {
595 QList<int> sizes4; sizes4 << left << sum2-left;
596 splitter_leftright->setSizes ( sizes4 );
597 ++left;
598 }
599
600 int prefwidths = std::max<int>(left,widget_controlsContainer->sizeHint().width());
601 prefwidths = std::max<int>(prefwidths,groupBox_channelcontrols->sizeHint().width());
602 prefwidths = std::max<int>(prefwidths,groupBox_cruise->sizeHint().width());
603 prefwidths = std::max<int>(prefwidths,groupBox_event->sizeHint().width());
604 prefwidths = std::max<int>(prefwidths,stackedWidget_customcontrols->sizeHint().width());
605 widget_controlsContainer->setMaximumWidth(50+prefwidths);
606 // int h1(textBrowser_intro1->viewport()->sizeHint().height());
607 // textBrowser_intro1->setMaximumHeight(h1+2);
608 if (m_availEvents)
609 m_availEvents->init();
611}

◆ processEnqueuedRequests

void VP1MainWindow::processEnqueuedRequests ( )
protectedslot

Definition at line 1533 of file VP1MainWindow.cxx.

1534{
1535 if (!m_requestqueue.empty())
1537}

◆ quickSetupTriggered

void VP1MainWindow::quickSetupTriggered ( )
protectedslot

Definition at line 1745 of file VP1MainWindow.cxx.

1746{
1747 VP1Msg::messageVerbose("VP1MainWindow::quickSetupTriggered()");
1748
1749 QSettings settings("ATLAS", "VP1Light");
1750
1751 QString plugfile, channelname, tabname;
1752
1753 if (sender()==pushButton_quicksetup_geometrystudies||sender()==action_quicklaunch_Geometry_studies) {
1754
1755 //Open geometry database selection dialog for VP1Light
1756#ifdef BUILDVP1LIGHT
1757 if(settings.value("db/dbByEnv").toString().isEmpty()){
1758 VP1GeoDBSelection dbSelection;
1759 dbSelection.exec();
1760 if(!dbSelection.result())
1761 return;
1762 }
1763#endif // BUILDVP1LIGHT
1764
1765 plugfile="libVP1GeometryPlugin.so";
1766 channelname="Geometry";
1767 tabname = "Geometry";
1768 } else if (sender()==pushButton_quicksetup_trackingstudies||sender()==action_quicklaunch_Tracking_studies) {
1769 plugfile="libVP1TrackPlugin.so";
1770 channelname="Tracking";
1771 tabname = "Tracking";
1772 } else if (sender()==pushButton_quicksetup_calostudies||sender()==action_quicklaunch_Calo_studies) {
1773 plugfile="libVP1CaloPlugin.so";
1774 channelname="Calo Cells";
1775 tabname = "Calorimeter";
1776 } else if (sender()==action_quicklaunch_Storegate_browser) {
1777 plugfile="libVP1BanksPlugin.so";
1778 channelname="Banks";
1779 tabname = "StoreGate";
1780 } else if (sender()==pushButton_quicksetup_3dcocktail||sender()==action_quicklaunch_3dcocktail) {
1781#ifndef BUILDVP1LIGHT
1782 plugfile="libVP13DCocktailPlugin.so";
1783 channelname="3DCocktail";
1784 tabname = "3D Cocktail";
1785#else
1786 //Open Geometry DB and AOD file selection dialog for VP1Light
1787 if(settings.value("aod/aodByEnv").toString().isEmpty()){
1788 VP1AODSelection aodSelection;
1789 aodSelection.exec();
1790 if(!aodSelection.result())
1791 return;
1792 }
1793 if(settings.value("db/dbByEnv").toString().isEmpty()){
1794 VP1GeoDBSelection dbSelection;
1795 dbSelection.exec();
1796 if(!dbSelection.result())
1797 return;
1798 }
1799 m_scheduler->loadEvent();
1800
1801 pushButton_eventselect->setEnabled(true);
1802 plugfile="libVP1LightPlugin.so";
1803 channelname="VP1Light";
1804 tabname = "Geometry/AOD";
1805#endif // BUILDVP1LIGHT
1806 } else if (sender()==action_quicklaunch_trackcalo_commis) {
1807 plugfile="libVP13DCocktailPlugin.so";
1808 channelname="TrackCalo";
1809 tabname = "Track/Calo";
1810 } else if (sender()==pushButton_quicksetup_analysisstudies||sender()==action_quicklaunch_analysisstudies) {
1811
1812 //Open AOD file selection dialog for VP1Light
1813#ifdef BUILDVP1LIGHT
1814 if(settings.value("aod/aodByEnv").toString().isEmpty()){
1815 VP1AODSelection aodSelection;
1816 aodSelection.exec();
1817 if(!aodSelection.result())
1818 return;
1819 }
1820 m_scheduler->loadEvent();
1821 pushButton_eventselect->setEnabled(true);
1822#endif // BUILDVP1LIGHT
1823
1824 plugfile="libVP1AODPlugin.so";
1825 channelname="AOD";
1826 tabname = "Analysis";
1827 } else {
1828 addToMessageBox("quickSetupTriggered() Error: Unknown sender");
1829 return;
1830 }
1831
1832#ifdef __APPLE__
1833 if (plugfile.endsWith(".so"))
1834 plugfile = plugfile.left(plugfile.count()-3)+".dylib";
1835#endif
1836
1837
1838 //Check that the plugin is available:
1839 QMap<QString,QString> plugins2fullpath = availablePluginFiles();
1840 if(VP1Msg::debug()){
1841 qDebug() << "plugins2fullpath: " << plugins2fullpath;
1842 }
1843
1844 if (!plugins2fullpath.contains(plugfile)) {
1845 QMessageBox::critical(0, "Error - could not locate plugin file: "+plugfile,
1846 "could not locate plugin file: "
1847 +plugfile,QMessageBox::Ok,QMessageBox::Ok);
1848 return;
1849 }
1850 QString plugfile_fullpath = plugins2fullpath[plugfile];
1851
1852
1853 //Load plugin
1854 if (!m_channelmanager->currentPluginFiles().contains(plugfile_fullpath)) {
1855 QString err = m_channelmanager->loadPluginFile(plugfile_fullpath);
1856 if (!err.isEmpty()||!m_channelmanager->currentPluginFiles().contains(plugfile_fullpath)) {
1857 QMessageBox::critical(0, "Error - could not load plugin file: "+plugfile_fullpath,//Fixme: Error message here is hardcoded to be the same as in loadPluginFile method!!
1858 "Could not load plugin file: "
1859 +plugfile_fullpath+"\n\nReason: "+err,QMessageBox::Ok,QMessageBox::Ok);
1860 return;
1861 }
1862 }
1863
1864
1865 //Check that plugin contains necessary channel:
1866 if (!m_channelmanager->channelsInPluginFile(plugfile_fullpath).contains(channelname)) {
1867 QMessageBox::critical(0, "Error - did not find necessary channel: "+channelname,
1868 "Could not find channel: "+channelname+" in loaded plugin "+plugfile_fullpath,
1869 QMessageBox::Ok,QMessageBox::Ok);
1870 return;
1871 }
1872
1873 bool save = updatesEnabled();
1874 setUpdatesEnabled(false);
1875
1876
1877 //Add tab:
1878 QString newtabname = m_tabmanager->suggestNewTabName(tabname);
1879 m_tabmanager->addNewTab(newtabname);
1880 if (!m_tabmanager->hasTab(newtabname)) {
1881 QMessageBox::critical(0, "Error - could not create tab: "+newtabname,
1882 "Could not create tab: "+newtabname,
1883 QMessageBox::Ok,QMessageBox::Ok);
1884 setUpdatesEnabled(save);
1885 return;
1886 }
1887
1888
1889 //Finally, add channel:
1890
1891 if (!m_tabmanager->addChannelToTab( channelname, newtabname )) {
1892 QMessageBox::critical(0, "Error - problems launching channel: "+channelname,
1893 "Problems launching channel: "+channelname,
1894 QMessageBox::Ok,QMessageBox::Ok);
1895 setUpdatesEnabled(save);
1896 return;
1897 }
1898
1899
1900 m_tabmanager->showTab(newtabname);
1901
1902
1903 setUpdatesEnabled(save);
1904}
save(self, fileName="./columbo.out")
Definition checkTP.py:176

◆ receivedExternalRequest

void VP1MainWindow::receivedExternalRequest ( VP1ExternalRequest request)
protectedslot

Definition at line 1540 of file VP1MainWindow.cxx.

1541{
1543 return;
1544 if (m_messages_blockedsenders.contains(request.sender()))
1545 return;
1546 if (m_messages_blockedexactmessages.contains(request))
1547 return;
1549 //Fixme: store TIME of incoming request (to show the user).
1550 if (m_requestqueue.count()<999) {
1551 m_requestqueue.enqueue(request);
1552 m_currentincomingdialog->updatependinginfo();
1553 }
1554 return;
1555 }
1556 VP1IncomingMessageDialog * md = new VP1IncomingMessageDialog(request,&m_requestqueue,&m_blockallmessages,
1560 connect(md,SIGNAL(finished(int)),this,SLOT(finishedIncomingDialog()));
1561 m_tabmanager->dropOutOfFullScreen();
1562 md->show();
1563}
const QString & sender() const
void finishedIncomingDialog()
QList< VP1ExternalRequest > m_messages_blockedexactmessages
QList< QString > m_messages_blockedsenders

◆ replaceConfigurationFile

void VP1MainWindow::replaceConfigurationFile ( const QString & file)
slot

Definition at line 1506 of file VP1MainWindow.cxx.

1507{
1508 VP1Msg::messageDebug("VP1MainWindow::replaceConfigurationFile() : " + file);
1509 m_tabmanager->removeAllTabs();
1510 m_tabmanager->loadConfigurationFromFile(file,availablePluginFiles());
1511}

◆ request_addEmptyTab

void VP1MainWindow::request_addEmptyTab ( )
slot

Definition at line 686 of file VP1MainWindow.cxx.

686 {
687 bool ok;
688 QString newtabname = QInputDialog::getText( 0, "New Tab Name","New tab name:",
689 QLineEdit::Normal, m_tabmanager->suggestNewTabName("My Tab"), &ok );
690 if (!ok||newtabname.isEmpty())
691 return;
692 m_tabmanager->addNewTab(newtabname);
693}

◆ request_channelInformation

void VP1MainWindow::request_channelInformation ( )
slot

Definition at line 1165 of file VP1MainWindow.cxx.

1165 {
1166 if(!m_tabmanager->selectedChannelWidget())
1167 return;
1168
1169 QString out = "Information about channel: "+m_tabmanager->selectedChannelWidget()->name() + "\n\n";
1170 out += "Contact: "+m_tabmanager->selectedChannelWidget()->contact_info()+"\n";
1171 out += "Information: "+m_tabmanager->selectedChannelWidget()->information()+"\n";
1172 out += "Systems:\n\n";
1173 std::set<IVP1System *>::iterator itsys, itsysE = m_tabmanager->selectedChannelWidget()->systems().end();
1174 for (itsys = m_tabmanager->selectedChannelWidget()->systems().begin();itsys!=itsysE;++itsys) {
1175 out += " ==> System "+(*itsys)->name()+"\n";
1176 out += " Contact: "+(*itsys)->contact_info()+"\n";
1177 out += " Information: "+(*itsys)->information()+"\n";
1178 out += "\n";
1179 }
1180
1181 QMessageBox::information(0, "Information about channel: "+m_tabmanager->selectedChannelWidget()->name(),Qt::convertFromPlainText(out),QMessageBox::Ok,QMessageBox::Ok);
1182}

◆ request_cruisemodechange

void VP1MainWindow::request_cruisemodechange ( )
slot

Definition at line 1566 of file VP1MainWindow.cxx.

1567{
1568 if (pushButton_cruise->isChecked()) {
1569 if (radioButton_cruise_event->isChecked()) {
1571 groupBox_cruise->setTitle("Cruise Mode [event]");
1572 } else if (radioButton_cruise_tab->isChecked()) {
1574 groupBox_cruise->setTitle("Cruise Mode [tab]");
1575 } else if (radioButton_cruise_both->isChecked()) {
1577 groupBox_cruise->setTitle("Cruise Mode [event && tab]");
1578 } else { assert(0); }
1579 } else {
1581 groupBox_cruise->setTitle("Cruise Mode [off]");
1582 }
1583}

◆ request_loadConfig

void VP1MainWindow::request_loadConfig ( )
slot

Definition at line 783 of file VP1MainWindow.cxx.

784{
785 QString filename = QFileDialog::getOpenFileName(this, "Select configuration file to load",
787 "VP1 configuration files (*.vp1)",0,QFileDialog::DontResolveSymlinks);
788 if(filename.isEmpty())
789 return;
790 m_tabmanager->loadConfigurationFromFile(filename,availablePluginFiles());
792}
QString m_currentconfigfile

◆ request_loadPlugin

void VP1MainWindow::request_loadPlugin ( )
slot

Definition at line 795 of file VP1MainWindow.cxx.

796{
797#ifdef __APPLE__
798 QString sharedlibsuffix = "dylib";
799#else
800 QString sharedlibsuffix = "so";
801#endif
802 qDebug() << "VP1MainWindow::request_loadPlugin()"<<m_currentloadpluginpath;
803
804 QString filename = QFileDialog::getOpenFileName(this, "Select plugin file to load",
806 "VP1 plugin files (*VP1*."+sharedlibsuffix+")",0,QFileDialog::DontResolveSymlinks);
807 if(filename.isEmpty())
808 return;
809 m_currentloadpluginpath = QFileInfo(filename).dir().absolutePath();
810 loadPluginFile(filename);
811}
void loadPluginFile(const QString &filename)

◆ request_printChannel

void VP1MainWindow::request_printChannel ( )
slot

Definition at line 1481 of file VP1MainWindow.cxx.

1481 {
1482 if(!m_tabmanager->selectedChannelWidget())
1483 return;
1484
1485 //The following will paint the widget onto a paper and bring up the print dialog:
1486 QPrinter printer;
1487 QPrintDialog dialog(&printer, this);
1488 if (dialog.exec() == QDialog::Accepted) {
1489 QPixmap pm = m_tabmanager->selectedChannelWidget()->getSnapshot();
1490 if (pm.isNull())
1491 return;
1492 QPainter painter;
1493 painter.begin(&printer);
1494 painter.drawPixmap(0,0,pm);
1495 painter.end();
1496 }
1497}

◆ request_saveasConfig

void VP1MainWindow::request_saveasConfig ( )
slot

Definition at line 757 of file VP1MainWindow.cxx.

757 {
758
759 QString filename = QFileDialog::getSaveFileName(this, "Select configuration file to save",
761 "VP1 Configuration files (*.vp1)",0,QFileDialog::DontResolveSymlinks);
762 if(filename.isEmpty())
763 return;
764
765 if (!filename.endsWith(".vp1"))
766 filename += ".vp1";
767
768 m_tabmanager->saveConfigurationToFile(filename,false/*Since the filedialog already asks*/);
770}

◆ request_saveChannelSnapshot

QString VP1MainWindow::request_saveChannelSnapshot ( const QString & xLabel = "")
slot

Definition at line 1427 of file VP1MainWindow.cxx.

1428{
1429
1430 VP1Msg::messageDebug("VP1MainWindow::request_saveChannelSnapshot()");
1431
1432 if(!m_tabmanager->selectedChannelWidget()) {
1433 return QString();
1434 }
1435
1436 QString guess;
1437 QString chnlname = m_tabmanager->selectedChannelWidget()->name().toLower();
1438 chnlname.replace(' ','_');
1439
1440 QString base=m_currentsaveimagepath+QDir::separator()+"vp1_"+chnlname
1441 +"_run"+QString::number(m_runnumber)+"_evt"+QString::number(m_eventnumber)
1442 + QString(m_timestamp>0 ? "_"+QDateTime::fromTime_t(m_timestamp).toString(Qt::ISODate).replace(':','-') : "");
1443
1444
1445 // check for existing files
1446 guess=base;
1447 int i(2);
1448 while (QFile::exists(guess+".png")) {
1449 guess=base+"_"+QString::number(i++);
1450 }
1451 guess+=".png";
1452
1453
1454 // adding the extra label xLabel, if provided
1455 if (!xLabel.isEmpty()) {
1456 guess += "_" + xLabel;
1457 }
1458
1459
1460 QString filename = QFileDialog::getSaveFileName(0, "Select target image file", guess,
1461 "Image (*.png *.bmp)",
1462 0,QFileDialog::DontResolveSymlinks);
1463 if(filename.isEmpty())
1464 return QString();
1465
1466 m_currentsaveimagepath = QFileInfo(filename).dir().absolutePath ();
1467
1468 if (!(filename.endsWith(".png",Qt::CaseInsensitive)||filename.endsWith(".bmp",Qt::CaseInsensitive)))
1469 filename += ".png";
1470
1471 VP1Msg::messageVerbose("calling snapshot");
1472 QPixmap pm = m_tabmanager->selectedChannelWidget()->getSnapshot();
1473
1474 if (!saveSnapshot(this, pm, filename))
1475 return QString();
1476
1477 return filename;
1478}
std::string toString(const float number)
Pipe a number to a string.
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition hcg.cxx:312
std::string base
Definition hcg.cxx:83

◆ request_saveConfig

void VP1MainWindow::request_saveConfig ( )
slot

Definition at line 773 of file VP1MainWindow.cxx.

774{
775 if (m_currentconfigfile.isEmpty()) {
777 return;
778 }
779 m_tabmanager->saveConfigurationToFile(m_currentconfigfile,false);
780}

◆ saveAllCurrentChannels

void VP1MainWindow::saveAllCurrentChannels ( )
slot

Definition at line 1317 of file VP1MainWindow.cxx.

1318{
1319 VP1Msg::messageDebug("VP1MainWindow::saveAllCurrentChannels()");
1320
1321 int nTabs = m_tabmanager->nTabs();
1322
1323 VP1Msg::messageDebug("# of tabs: " + QString::number(nTabs));
1324
1325 QList<IVP1ChannelWidget*> allTabs = m_tabmanager->allChannels();
1326
1327 if (allTabs.isEmpty()) {
1328 VP1Msg::message("WARNING - No tabs to save.");
1329 return;
1330 }
1331
1332
1333// QString guess;
1334// QString chnlname = m_tabmanager->selectedChannelWidget()->name().toLower();
1335// chnlname.replace(' ','_');
1336
1337 QString base=m_currentsaveimagepath+QDir::separator()+"vp1"
1338 + "_run"+QString::number(m_runnumber)+"_evt"+QString::number(m_eventnumber)
1339 + QString(m_timestamp>0 ? "_"+QDateTime::fromTime_t(m_timestamp).toString(Qt::ISODate).replace(':','-') : "");
1340
1341
1342 // check for existing files
1343 int i(2);
1344 while (QFile::exists(base+".png")) {
1345 base = base+"_"+QString::number(i++);
1346 }
1347
1348 // let the user choose the base filename
1349 QString filename = QFileDialog::getSaveFileName(0, "Select target image file", base,
1350 "Image (*.png *.bmp)",
1351 0,QFileDialog::DontResolveSymlinks);
1352 if(filename.isEmpty()) {
1353 VP1Msg::message("WARNING - No filename selected.");
1354 return;
1355 }
1356
1357 m_currentsaveimagepath = QFileInfo(filename).dir().absolutePath ();
1358
1359
1360 QStringList tab_save_files;
1361
1362 int nT = 0;
1363 for(IVP1ChannelWidget* widg : allTabs) {
1364
1365 // increase tab number
1366 ++nT;
1367
1368 // get channel name (e.g. Geometry, 3DCocktail)
1369 QString channelname = widg->name().toLower();
1370 channelname.replace(' ','_');
1371 VP1Msg::messageDebug("tab: " + channelname);
1372
1373// // get channel info, only for debug
1374// QString info = widg->information();
1375// VP1Msg::messageDebug("channel info: " + info);
1376
1377 QPixmap snap = widg->getSnapshot();
1378 QString tabfilename = filename + "_" + QString::number(nT) + "_" + channelname + ".png";
1379
1380 if (!(tabfilename.endsWith(".png",Qt::CaseInsensitive)||tabfilename.endsWith(".bmp",Qt::CaseInsensitive)))
1381 tabfilename += ".png";
1382
1383
1384 if (!saveSnapshot(this, snap, tabfilename))
1385 return;
1386
1387 tab_save_files << tabfilename;
1388 }
1389
1390 VP1Msg::message("Tabs saved as: " + tab_save_files.join(" - "));
1391
1392
1393 QMessageBox::information(this, tr("Snapshots saved."),
1394 "All tabs have been saved as snapshots in the following files:\n\n"+tab_save_files.join("\n"),
1395 QMessageBox::Ok,
1396 QMessageBox::Ok);
1397
1398
1399// // TODO: test to create a multilayered PSD or TIFF file
1400// // but doesn't work with the ImageMagick version shipped with SLC5...
1401// // So I give it up now...
1402// QProcess *proc = new QProcess();
1403// QString program = "convert";
1404// QStringList arguments;
1405// arguments = tab_save_files;
1406// arguments << " " + m_currentsaveimagepath + QDir::separator() + "out.psd";
1407// VP1Msg::messageDebug("running: " + program + " " + arguments.join(" "));
1408//
1409// // start the process
1410// proc->start(program, arguments );
1411//
1412// if (!proc->waitForStarted())
1413// return;
1414//
1415// if (!proc->waitForFinished())
1416// return;
1417
1418}

◆ selectedChannelChanged

void VP1MainWindow::selectedChannelChanged ( IVP1ChannelWidget * cw)
slot

Definition at line 727 of file VP1MainWindow.cxx.

728{
729 VP1Msg::messageDebug("VP1MainWindow::selectedChannelChanged()");
730
731 //Controls box:
732 if (cw) {
733 groupBox_channelcontrols->setTitle("Controls: "+cw->unique_name());
734 groupBox_channelcontrols->setEnabled(true);
735 QWidget* controller = m_channelmanager->getController(cw);
736 if (!controller) {
737 stackedWidget_customcontrols->setCurrentWidget(m_dummyemptycontroller);
738 } else {
739 if (stackedWidget_customcontrols->indexOf(controller)==-1)
740 stackedWidget_customcontrols->addWidget(controller);
741 stackedWidget_customcontrols->setCurrentWidget(controller);
742 }
743 } else {
744 groupBox_channelcontrols->setTitle("Controls: no channel selected");
745 groupBox_channelcontrols->setEnabled(false);
746 stackedWidget_customcontrols->setCurrentWidget(m_dummyemptycontroller);
747 }
748
749 // FIXME: enabling menubar again. It's part of a quickfix, described here: https://its.cern.ch/jira/browse/ATLASVPONE-120
750 menubar->setEnabled(true);
751
752 // FIXME: enabling menubar again. It's part of a quickfix, described here: https://its.cern.ch/jira/browse/ATLASVPONE-120
753 menubar->setEnabled(true);
754}

◆ setRunEvtNumber()

void VP1MainWindow::setRunEvtNumber ( const int & runnumber,
const unsigned long long & eventnumber,
const unsigned & triggerType = 0,
const unsigned & time = 0,
const bool & printmessage = true )

Definition at line 1062 of file VP1MainWindow.cxx.

1062 {
1063
1064 m_scheduler->setNextRequestedEventFile("");
1065 const bool sameasold(m_runnumber==r&&m_eventnumber==e);
1066
1067 m_runnumber=r;
1070
1071 m_betweenevents = false;
1072 if (m_availEvents)
1073 m_availEvents->setCurrentEvent(r,e);
1074
1075 for(IVP1ChannelWidget* channel : m_tabmanager->allChannels()) {
1076 channel->setRunEvtNumber(r,e);
1077 channel->setEvtTimestamp(time);
1078 }
1079
1080 if(printmessage) {
1081 qulonglong evNumber = m_eventnumber;
1082 QString evtstr = "run# "+QString::number(m_runnumber)+", event# "+QString::number(evNumber)+(sameasold?" (reused)":"");
1083 QString trighex = triggerType > 0 ? "0x"+QString::number(triggerType, 16).toUpper().rightJustified(sizeof(triggerType),'0') : "";
1084 QString expandedevtstr = evtstr
1085 + QString(trighex.isEmpty()?QString(""):", triggerType: "+trighex)
1086 + QString(time>0 ? ", time: "+eventTimeUTC(time) : "")
1087 + QString(m_currentStream.isEmpty()?"":", "+m_currentStream);
1088
1089 #ifdef BUILDVP1LIGHT
1090 setWindowTitle("VP1Light ["+expandedevtstr+"]");
1091 #else
1092 setWindowTitle("VP1 (Virtual Point 1) ["+expandedevtstr+"]");
1093 #endif // BUILDVP1LIGHT
1094
1095 groupBox_event->setTitle("Event [loaded]");
1096 QString eventDetails =
1097 "Run: " + QString::number(m_runnumber) +
1098 "\nEvent: " + QString::number(evNumber);
1099 if (time > 0) {
1100 eventDetails +=
1101 "\nTime UTC: " + eventTimeUTC(time) +
1102 "\nTime Europe/Zurich (CERN): " + eventTimeCERN(time);
1103 }
1104 label_run_event->setText(eventDetails);
1105
1106 addToMessageBox("New event: "+expandedevtstr,"color:#ff0000");
1107
1108 }
1110}
int r
Definition globals.cxx:22
time(flags, cells_name, *args, **kw)

◆ setupStatusBar()

void VP1MainWindow::setupStatusBar ( )
protected

Definition at line 614 of file VP1MainWindow.cxx.

614 {
615 progressbar = new QProgressBar();
616 progressbar->setMinimum(0);
617 progressbar->reset();
618 progressbar->setOrientation(Qt::Horizontal);
619 statusBar()->addPermanentWidget(progressbar);
620 m_statusbarlabel = new QLabel();
621 //Turn off ugly box around items in statusbar:
622 statusBar()->setStyleSheet("QStatusBar::item { border-width: 0 }");
623 statusBar()->addPermanentWidget(m_statusbarlabel);
624 progressbar->hide();
625}
QLabel * m_statusbarlabel
QProgressBar * progressbar

◆ showMenu_loadConfFile

void VP1MainWindow::showMenu_loadConfFile ( )
protectedslot

Definition at line 1633 of file VP1MainWindow.cxx.

1634{
1635 m_menu_loadConfFile->clear();
1636
1637 QMap<QString,QString> conffile2fullpath = availableFiles( ".vp1", "DATAPATH", "", "VP1CONFIGFILEPATH", true );
1638
1639 #ifndef BUILDVP1LIGHT
1640 if (conffile2fullpath.empty()) {
1641 m_menu_loadConfFile->addAction("No .vp1 config files found")->setEnabled(false);
1642 return;
1643 }
1644
1645 QStringList filelist(conffile2fullpath.keys());
1646 filelist.sort();
1647
1648 for(const QString& file : filelist) {
1649 QAction * act = m_menu_loadConfFile->addAction(file);
1650 assert(conffile2fullpath.contains(file));
1651 QString fullpath = conffile2fullpath[file];
1652 act->setData(fullpath);
1653 act->setStatusTip(fullpath);
1654 connect(act,SIGNAL(triggered(bool)),this,SLOT(showMenu_loadConfFileItemSelected()));
1655 }
1656 #endif
1657
1658 m_menu_loadConfFile->addSeparator();
1659 QAction * act_browse = m_menu_loadConfFile->addAction("&Browse...");
1660 act_browse->setStatusTip("Browse filesystem for .vp1 config file");
1661 connect(act_browse,SIGNAL(triggered(bool)),this,SLOT(request_loadConfig()));
1662
1663}
void showMenu_loadConfFileItemSelected()
void request_loadConfig()
filelist
print ("Checking files %s..." % fullfile)
Definition envutil.py:133

◆ showMenu_loadConfFileItemSelected

void VP1MainWindow::showMenu_loadConfFileItemSelected ( )
protectedslot

Definition at line 1667 of file VP1MainWindow.cxx.

1668{
1669 QAction * act = static_cast<QAction*>(sender());
1670 assert(act);
1671 if (!act)
1672 return;
1673 loadConfigurationFromFile(act->data().toString());
1674}
void loadConfigurationFromFile(const QString &file)

◆ showMenu_loadPlugin

void VP1MainWindow::showMenu_loadPlugin ( )
protectedslot

Definition at line 1586 of file VP1MainWindow.cxx.

1587{
1588 m_menu_loadPlugin->clear();
1589
1590 QMap<QString,QString> plugins2fullpath = availablePluginFiles();
1591
1592 if (plugins2fullpath.empty()) {
1593 m_menu_loadPlugin->addAction("No plugins found")->setEnabled(false);
1594 return;
1595 }
1596
1597 QStringList pluglist(plugins2fullpath.keys());
1598 pluglist.sort();
1599
1600 QStringList currentpluginfiles = m_channelmanager->currentPluginFiles();
1601 for(const QString& plug : pluglist) {
1602 QAction * act = m_menu_loadPlugin->addAction(plug);
1603 assert(plugins2fullpath.contains(plug));
1604 QString fullpath = plugins2fullpath[plug];
1605 if (currentpluginfiles.contains(fullpath)) {
1606 act->setEnabled(false);
1607 } else {
1608 act->setData(fullpath);
1609 act->setStatusTip(fullpath);
1610 connect(act,SIGNAL(triggered(bool)),this,SLOT(showMenu_loadPluginItemSelected()));
1611 }
1612 }
1613
1614 m_menu_loadPlugin->addSeparator();
1615 QAction * act_browse = m_menu_loadPlugin->addAction("&Browse...");
1616 act_browse->setStatusTip("Browse filesystem for VP1 plugin files");
1617 connect(act_browse,SIGNAL(triggered(bool)),this,SLOT(request_loadPlugin()));
1618
1619}
void request_loadPlugin()
void showMenu_loadPluginItemSelected()

◆ showMenu_loadPluginItemSelected

void VP1MainWindow::showMenu_loadPluginItemSelected ( )
protectedslot

Definition at line 1622 of file VP1MainWindow.cxx.

1623{
1624 QAction * act = static_cast<QAction*>(sender());
1625 assert(act);
1626 if (!act)
1627 return;
1628 loadPluginFile(act->data().toString());
1629}

◆ systemAddToMessageBox

void VP1MainWindow::systemAddToMessageBox ( const QString & m)
slot

Definition at line 1133 of file VP1MainWindow.cxx.

1134{
1135 IVP1System*sys = static_cast<IVP1System*>(sender());
1136 if (!sys) {
1137 addToMessageBox("VP1MainWindow::systemAddToMessageBox Error: Only prints system messages!");
1138 return;
1139 }
1140 if (!sys->channel()) {
1141 addToMessageBox("VP1MainWindow::systemAddToMessageBox Error: System does not know its channel!");
1142 return;
1143 }
1144 addToMessageBox( m, "color:#000000",sys->channel()->unique_name()+"/"+sys->name(),"color:#0000ff" );
1145}

◆ tabListChanged

void VP1MainWindow::tabListChanged ( const QStringList & l)
slot

Definition at line 696 of file VP1MainWindow.cxx.

696 {
698 if (l.count()) {
699 m_actionSave_current_tabs->setEnabled(true);
700 groupBox_cruise->setEnabled(true);
701 } else {
702 m_actionSave_current_tabs->setEnabled(false);
703 groupBox_cruise->setEnabled(false);
704 }
705 if (l.count()>1) {
706 radioButton_cruise_tab->setEnabled(true);
707 radioButton_cruise_both->setEnabled(true);
708 } else {
709 if (radioButton_cruise_tab->isChecked()||radioButton_cruise_both->isChecked())
710 radioButton_cruise_event->setChecked(true);
711 radioButton_cruise_tab->setEnabled(false);
712 radioButton_cruise_both->setEnabled(false);
713 }
714}
l
Printing final latex table to .tex output file.

◆ tabManager()

VP1TabManager * VP1MainWindow::tabManager ( ) const
inline

Definition at line 146 of file VP1MainWindow.h.

146{ return m_tabmanager; }

◆ unloadPlugin_continue

void VP1MainWindow::unloadPlugin_continue ( )
slot

Definition at line 952 of file VP1MainWindow.cxx.

953{
954 for (const QString& filename : m_currentunloadpluginfiles) {
955 bool success = m_channelmanager->unloadPluginFile(filename);
956 if (!success)
957 QMessageBox::critical(0, "Error - problems unloading plugin file: "+filename,
958 "Problems encountered while attempting to unload plugin file: "+filename,QMessageBox::Ok,QMessageBox::Ok);
959 }
961}

◆ updateCentralStackWidget

void VP1MainWindow::updateCentralStackWidget ( )
protectedslot

Definition at line 1737 of file VP1MainWindow.cxx.

1738{
1739 QWidget * targetpage = tabWidget_central->count() ? page_tabwidget : page_instructions;
1740 if (stackedWidget_central->currentWidget() != targetpage)
1741 stackedWidget_central->setCurrentWidget(targetpage);
1742}

◆ updateEventControls

void VP1MainWindow::updateEventControls ( )
protectedslot

Definition at line 1907 of file VP1MainWindow.cxx.

1908{
1909 pushButton_nextevent->setEnabled(okToProceedToNextEvent());
1910 #if defined BUILDVP1LIGHT
1911 pushButton_previousevent->setEnabled(okToProceedToNextEvent());
1912 #endif
1913}
bool okToProceedToNextEvent() const

◆ updateInputDirectoriesStatus

void VP1MainWindow::updateInputDirectoriesStatus ( )
protectedslot

Definition at line 1916 of file VP1MainWindow.cxx.

1917{
1918 if(!m_mutex->tryLock()) return;
1919
1920 QFont f;
1921 QFont fb;
1922 fb.setBold(true);
1923
1924 for (QAction * act : m_inputdiractions) {
1925 VP1DirStatusData& dirstatus = m_inputdirstatuses[act];
1926 QString inputdir(act->data().toString());
1927 QString dirname = QDir(inputdir).dirName();
1928 act->setEnabled(dirstatus.enabled);
1929 act->setFont(dirstatus.bold?fb:f);
1930 act->setText(dirname+" ["+dirstatus.dirStatus+"]");
1931 }
1932
1933 m_mutex->unlock();
1934}

◆ updateTcpIcon

void VP1MainWindow::updateTcpIcon ( )
protectedslot

Definition at line 660 of file VP1MainWindow.cxx.

661{
662 bool l = m_tcpserver.isListening();
663 m_statusbarlabel->setPixmap(QIcon(l?":/vp1/icons/icons/network_64x64.png":":/vp1/icons/icons/network_disconnect_64x64.png")
664 .pixmap(progressbar->height(),progressbar->height(),QIcon::Normal,QIcon::On));
665 m_statusbarlabel->setToolTip(l?"Listening on port "+QString::number(m_tcpserver.port())+" for incoming messsages"
666 :"VP1 is presently NOT listening for incoming messages");
667
668}

◆ userRequestedExit()

bool VP1MainWindow::userRequestedExit ( )
inline

Definition at line 148 of file VP1MainWindow.h.

148{ return m_userRequestedExit; }

◆ userRequestedFiles()

QStringList VP1MainWindow::userRequestedFiles ( )

Definition at line 1959 of file VP1MainWindow.cxx.

1960{
1961 QStringList returnval(m_userRequestedFiles);
1962 m_userRequestedFiles.clear();
1963 return returnval;
1964}

Member Data Documentation

◆ m_action_addEventFile

QAction* VP1MainWindow::m_action_addEventFile
protected

Definition at line 232 of file VP1MainWindow.h.

◆ m_action_infoAboutLoadedPlugins

QAction* VP1MainWindow::m_action_infoAboutLoadedPlugins
protected

Definition at line 224 of file VP1MainWindow.h.

◆ m_action_openAbout

QAction* VP1MainWindow::m_action_openAbout
protected

Definition at line 236 of file VP1MainWindow.h.

◆ m_action_openUsersGuide

QAction* VP1MainWindow::m_action_openUsersGuide
protected

Definition at line 233 of file VP1MainWindow.h.

◆ m_action_openUsersSupport

QAction* VP1MainWindow::m_action_openUsersSupport
protected

Definition at line 234 of file VP1MainWindow.h.

◆ m_action_openVP1Site

QAction* VP1MainWindow::m_action_openVP1Site
protected

Definition at line 235 of file VP1MainWindow.h.

◆ m_actionAdd_empty_tab

QAction* VP1MainWindow::m_actionAdd_empty_tab
protected

Definition at line 229 of file VP1MainWindow.h.

◆ m_actionEnableExpertSettings

QAction* VP1MainWindow::m_actionEnableExpertSettings
protected

Definition at line 230 of file VP1MainWindow.h.

◆ m_actionSave_current_tabs

QAction* VP1MainWindow::m_actionSave_current_tabs
protected

Definition at line 231 of file VP1MainWindow.h.

◆ m_availEvents

VP1AvailEvents* VP1MainWindow::m_availEvents
protected

Definition at line 168 of file VP1MainWindow.h.

◆ m_betweenevents

bool VP1MainWindow::m_betweenevents
protected

Definition at line 161 of file VP1MainWindow.h.

◆ m_blockallmessages

bool VP1MainWindow::m_blockallmessages
protected

Definition at line 175 of file VP1MainWindow.h.

◆ m_channelmanager

VP1ChannelManager* VP1MainWindow::m_channelmanager
protected

Definition at line 155 of file VP1MainWindow.h.

◆ m_currentconfigfile

QString VP1MainWindow::m_currentconfigfile
protected

Definition at line 157 of file VP1MainWindow.h.

◆ m_currentincomingdialog

VP1IncomingMessageDialog* VP1MainWindow::m_currentincomingdialog
protected

Definition at line 173 of file VP1MainWindow.h.

◆ m_currentloadpluginpath

QString VP1MainWindow::m_currentloadpluginpath
protected

Definition at line 241 of file VP1MainWindow.h.

◆ m_currentsaveimagepath

QString VP1MainWindow::m_currentsaveimagepath
protected

Definition at line 240 of file VP1MainWindow.h.

◆ m_currentStream

QString VP1MainWindow::m_currentStream
protected

Definition at line 242 of file VP1MainWindow.h.

◆ m_currentunloadpluginfiles

QStringList VP1MainWindow::m_currentunloadpluginfiles
protected

Definition at line 181 of file VP1MainWindow.h.

◆ m_defaultfont

QFont VP1MainWindow::m_defaultfont
protected

Definition at line 245 of file VP1MainWindow.h.

◆ m_defaultfont_pixelsize

int VP1MainWindow::m_defaultfont_pixelsize
protected

Definition at line 247 of file VP1MainWindow.h.

◆ m_defaultfont_pointsize

double VP1MainWindow::m_defaultfont_pointsize
protected

Definition at line 246 of file VP1MainWindow.h.

◆ m_dummyemptycontroller

QWidget* VP1MainWindow::m_dummyemptycontroller
protected

Definition at line 166 of file VP1MainWindow.h.

◆ m_edEditor

VP1EventDisplayEditor* VP1MainWindow::m_edEditor
protected

Definition at line 265 of file VP1MainWindow.h.

◆ m_eventnumber

unsigned long long VP1MainWindow::m_eventnumber
protected

Definition at line 159 of file VP1MainWindow.h.

◆ m_inputdiractions

QList<QAction*> VP1MainWindow::m_inputdiractions
protected

Definition at line 238 of file VP1MainWindow.h.

◆ m_inputdirstatuses

VP1DirStatuses VP1MainWindow::m_inputdirstatuses
protected

Definition at line 239 of file VP1MainWindow.h.

◆ m_menu_changeFontSize

QMenu* VP1MainWindow::m_menu_changeFontSize
protected

Definition at line 228 of file VP1MainWindow.h.

◆ m_menu_changeStyle

QMenu* VP1MainWindow::m_menu_changeStyle
protected

Definition at line 227 of file VP1MainWindow.h.

◆ m_menu_loadConfFile

QMenu* VP1MainWindow::m_menu_loadConfFile
protected

Definition at line 226 of file VP1MainWindow.h.

◆ m_menu_loadPlugin

QMenu* VP1MainWindow::m_menu_loadPlugin
protected

Definition at line 225 of file VP1MainWindow.h.

◆ m_messages_blockedexactmessages

QList<VP1ExternalRequest> VP1MainWindow::m_messages_blockedexactmessages
protected

Definition at line 177 of file VP1MainWindow.h.

◆ m_messages_blockedsenders

QList<QString> VP1MainWindow::m_messages_blockedsenders
protected

Definition at line 176 of file VP1MainWindow.h.

◆ m_mustquit

bool VP1MainWindow::m_mustquit
protected

Definition at line 164 of file VP1MainWindow.h.

◆ m_mutex

QMutex* VP1MainWindow::m_mutex
protected

Definition at line 255 of file VP1MainWindow.h.

◆ m_plugindialog

VP1PluginDialog* VP1MainWindow::m_plugindialog
protected

Definition at line 182 of file VP1MainWindow.h.

◆ m_requestqueue

QQueue<VP1ExternalRequest> VP1MainWindow::m_requestqueue
protected

Definition at line 174 of file VP1MainWindow.h.

◆ m_runnumber

int VP1MainWindow::m_runnumber
protected

Definition at line 158 of file VP1MainWindow.h.

◆ m_scheduler

VP1ExecutionScheduler* VP1MainWindow::m_scheduler
protected

Definition at line 167 of file VP1MainWindow.h.

◆ m_settingsfile

const QString VP1MainWindow::m_settingsfile
protected

Definition at line 248 of file VP1MainWindow.h.

◆ m_statusbarlabel

QLabel* VP1MainWindow::m_statusbarlabel
protected

Definition at line 185 of file VP1MainWindow.h.

◆ m_streamMenuUpdater

VP1StreamMenuUpdater* VP1MainWindow::m_streamMenuUpdater
protected

Definition at line 254 of file VP1MainWindow.h.

◆ m_tabmanager

VP1TabManager* VP1MainWindow::m_tabmanager
protected

Definition at line 156 of file VP1MainWindow.h.

◆ m_tcpserver

VP1TcpServer VP1MainWindow::m_tcpserver
protected

Definition at line 170 of file VP1MainWindow.h.

◆ m_timestamp

unsigned VP1MainWindow::m_timestamp
protected

Definition at line 160 of file VP1MainWindow.h.

◆ m_userRequestedExit

bool VP1MainWindow::m_userRequestedExit
protected

Definition at line 250 of file VP1MainWindow.h.

◆ m_userRequestedFiles

QStringList VP1MainWindow::m_userRequestedFiles
protected

Definition at line 252 of file VP1MainWindow.h.

◆ progressbar

QProgressBar* VP1MainWindow::progressbar

Definition at line 195 of file VP1MainWindow.h.


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