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

Public Member Functions

void setInfo ()

Public Attributes

VP1PluginDialogpd
VP1ChannelManagerchannelmanager
VP1ExecutionSchedulerscheduler
QLabel * label_selectplugin
QComboBox * comboBox_plugins
QLabel * label_fullpathtitle
QLabel * label_fullpath
QLabel * label_channels
QPushButton * pushButton_unload
QTextBrowser * textBrowser_channels
QMap< int, QString > index_2_fullpath
QString unloadfile

Detailed Description

Definition at line 24 of file VP1PluginDialog.cxx.

Member Function Documentation

◆ setInfo()

void VP1PluginDialog::Imp::setInfo ( )

Definition at line 90 of file VP1PluginDialog.cxx.

91{
92 QStringList files = channelmanager->currentPluginFiles();
93 comboBox_plugins->clear();
94 index_2_fullpath.clear();
95 if (files.empty()) {
96 label_selectplugin->setEnabled(false);
97 comboBox_plugins->setEnabled(false);
98 label_fullpathtitle->setEnabled(false);
99 label_fullpath->setEnabled(false);
100 label_channels->setEnabled(false);
101 pushButton_unload->setEnabled(false);
102 label_fullpath->setText("n/a");
103 comboBox_plugins->addItem("No plugins loaded");
104 textBrowser_channels->setHtml("");
105 textBrowser_channels->setEnabled(false);
106 } else {
107 label_selectplugin->setEnabled(true);
108 comboBox_plugins->setEnabled(true);
109 label_fullpathtitle->setEnabled(true);
110 label_fullpath->setEnabled(true);
111 label_channels->setEnabled(true);
112 pushButton_unload->setEnabled(true);
113 textBrowser_channels->setEnabled(true);
114
115 int i(0);
116 for(const QString& file : files) {
117 QFileInfo fi(file);
118 comboBox_plugins->addItem(fi.fileName());
119 index_2_fullpath.insert(i++,file);
120 }
121 comboBox_plugins->setCurrentIndex(0);
122 pd->pluginSelected(0);
123 }
124}
VP1ChannelManager * channelmanager
QMap< int, QString > index_2_fullpath
QTextBrowser * textBrowser_channels
VP1PluginDialog * pd
QPushButton * pushButton_unload
std::vector< std::string > files
file names and file pointers
Definition hcg.cxx:50
TFile * file

Member Data Documentation

◆ channelmanager

VP1ChannelManager* VP1PluginDialog::Imp::channelmanager

Definition at line 27 of file VP1PluginDialog.cxx.

◆ comboBox_plugins

QComboBox* VP1PluginDialog::Imp::comboBox_plugins

Definition at line 31 of file VP1PluginDialog.cxx.

◆ index_2_fullpath

QMap<int,QString> VP1PluginDialog::Imp::index_2_fullpath

Definition at line 37 of file VP1PluginDialog.cxx.

◆ label_channels

QLabel* VP1PluginDialog::Imp::label_channels

Definition at line 34 of file VP1PluginDialog.cxx.

◆ label_fullpath

QLabel* VP1PluginDialog::Imp::label_fullpath

Definition at line 33 of file VP1PluginDialog.cxx.

◆ label_fullpathtitle

QLabel* VP1PluginDialog::Imp::label_fullpathtitle

Definition at line 32 of file VP1PluginDialog.cxx.

◆ label_selectplugin

QLabel* VP1PluginDialog::Imp::label_selectplugin

Definition at line 30 of file VP1PluginDialog.cxx.

◆ pd

VP1PluginDialog* VP1PluginDialog::Imp::pd

Definition at line 26 of file VP1PluginDialog.cxx.

◆ pushButton_unload

QPushButton* VP1PluginDialog::Imp::pushButton_unload

Definition at line 35 of file VP1PluginDialog.cxx.

◆ scheduler

VP1ExecutionScheduler* VP1PluginDialog::Imp::scheduler

Definition at line 28 of file VP1PluginDialog.cxx.

◆ textBrowser_channels

QTextBrowser* VP1PluginDialog::Imp::textBrowser_channels

Definition at line 36 of file VP1PluginDialog.cxx.

◆ unloadfile

QString VP1PluginDialog::Imp::unloadfile

Definition at line 38 of file VP1PluginDialog.cxx.


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