|
ATLAS Offline Software
|
#include <VP1ChannelManager.h>
Definition at line 27 of file VP1ChannelManager.h.
◆ VP1ChannelManager()
◆ ~VP1ChannelManager()
VP1ChannelManager::~VP1ChannelManager |
( |
| ) |
|
◆ availableChannelList()
QStringList VP1ChannelManager::availableChannelList |
( |
| ) |
|
◆ availableChannelListChanged
void VP1ChannelManager::availableChannelListChanged |
( |
QStringList |
| ) |
|
|
signal |
◆ availableUnusedChannelListChanged
void VP1ChannelManager::availableUnusedChannelListChanged |
( |
QStringList |
| ) |
|
|
signal |
◆ basename2UniqueNames()
QStringList VP1ChannelManager::basename2UniqueNames |
( |
QString |
basename | ) |
const |
◆ baseNameExists()
bool VP1ChannelManager::baseNameExists |
( |
QString |
basename | ) |
const |
◆ channelsInPluginFile()
QStringList VP1ChannelManager::channelsInPluginFile |
( |
QString |
filename | ) |
const |
◆ channelUncreated
◆ channelWithBasenameIsLoaded()
bool VP1ChannelManager::channelWithBasenameIsLoaded |
( |
QString |
basename | ) |
const |
◆ currentPluginFiles()
QStringList VP1ChannelManager::currentPluginFiles |
( |
| ) |
const |
◆ deleteChannel()
bool VP1ChannelManager::deleteChannel |
( |
QString |
channeluniquename | ) |
|
◆ getChannel()
Definition at line 403 of file VP1ChannelManager.cxx.
407 cw->setUpdatesEnabled(
false);
419 QScrollArea * scrollarea =
new QScrollArea;
421 scrollarea->setObjectName(
"VP1ControllerScrollArea");
422 scrollarea->setWidgetResizable(
true);
423 scrollarea->setFrameShape(QFrame::NoFrame);
424 scrollarea->setFrameShadow(QFrame::Plain);
428 scrollarea->setWidget(controller);
434 cw->setUpdatesEnabled(
true);
◆ getController()
◆ getIconLocation()
QString VP1ChannelManager::getIconLocation |
( |
const QString & |
channelname, |
|
|
const bool & |
isbasename = true |
|
) |
| |
◆ hasRefreshingSystem()
bool VP1ChannelManager::hasRefreshingSystem |
( |
const QString & |
uniquename | ) |
const |
◆ loadPluginFile()
QString VP1ChannelManager::loadPluginFile |
( |
QString |
filename | ) |
|
Definition at line 229 of file VP1ChannelManager.cxx.
237 return "Error: Plugin already loaded.";
243 return "File does not exist";
244 if (!
fi.isReadable())
245 return "File is not readable";
251 QString pluginAbsPath =
fi.absoluteFilePath();
253 QPluginLoader * loader =
new QPluginLoader(pluginAbsPath);
256 bool loadOk = loader->load();
259 VP1Msg::message(
"ERROR! Failed to load plugin. Error message: "+loader->errorString());
280 pluginAbsPath.replace(
"opt",
"dbg");
282 loader =
new QPluginLoader(pluginAbsPath);
283 loadOk = loader->load();
285 if (loadOk)
VP1Msg::message(
"Ok! 'dbg' build of the plugin successfully loaded!");
291 QObject *
plugin = loader->instance();
296 bool error = loader->errorString().isNull();
299 QString errStr =
"ERROR!!";
301 errStr = QString(
"Did not find any compatible plugins in file");
303 errStr = loader->errorString();
315 return "Did not find any channel factory in plugin file";
321 if (providedbasenames.count()==0)
322 return "Found channel factory in plugin file, but no advertised channels!";
328 for (
const QString&
bn : providedbasenames) {
330 return "Channels navp1 '"+
bn+
"' are already provided by plugin file "
335 for (
const QString&
bn : providedbasenames) {
◆ nActive()
unsigned VP1ChannelManager::nActive |
( |
QString |
channelbasename | ) |
const |
◆ newChannelCreated
◆ serializePluginInfo()
QStringList VP1ChannelManager::serializePluginInfo |
( |
| ) |
const |
Definition at line 523 of file VP1ChannelManager.cxx.
524 std::map<QString,std::pair<QStringList,IVP1ChannelWidgetFactory *> >::const_iterator
529 l<<QFileInfo(
it->first).fileName();
◆ uniqueName2Channel()
IVP1ChannelWidget * VP1ChannelManager::uniqueName2Channel |
( |
QString |
uniquename | ) |
const |
◆ uniquename_channelListChanged
void VP1ChannelManager::uniquename_channelListChanged |
( |
QStringList |
| ) |
|
|
signal |
◆ uniqueNameExists()
bool VP1ChannelManager::uniqueNameExists |
( |
QString |
uniquename | ) |
const |
◆ uniquenames()
QStringList VP1ChannelManager::uniquenames |
( |
| ) |
const |
◆ unloadPluginFile()
bool VP1ChannelManager::unloadPluginFile |
( |
QString |
filename | ) |
|
Definition at line 184 of file VP1ChannelManager.cxx.
200 for (
const QString&
bn : bns)
208 bool success = loader->unload();
214 for (
const QString&
bn : bns) {
◆ m_d
Imp* VP1ChannelManager::m_d |
|
private |
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
std::map< QString, IVP1ChannelWidget * > uniquename_2_channel
void uncreateAndDelete(IVP1ChannelWidget *)
QStringList uniquenames() const
void newChannelCreated(IVP1ChannelWidget *)
void uniquename_channelListChanged(QStringList)
void emit_basename_availableChannelListChanged()
std::map< QString, QPluginLoader * > pluginfile_2_pluginloader
void bringFromConstructedToReady(IVP1ChannelWidget *)
unsigned nActive(QString channelbasename) const
std::map< IVP1ChannelWidget *, QWidget * > channel_2_controller
std::map< QString, QString > basename_2_pluginfile
std::map< QString, std::set< IVP1ChannelWidget * > > basename_2_channels
void addToMessageBox(const QString &, const QString &extrastyleopts="", const QString &title="", const QString &titleextrastyleopts="")
VP1ChannelManager * channelmanager
VP1ExecutionScheduler * scheduler
VP1MainWindow * mainwindow
QString channelTypeToIconLocation(const IVP1ChannelWidget::Type &type) const
QStringList channelsInPluginFile(QString filename) const
std::map< QString, std::pair< QStringList, IVP1ChannelWidgetFactory * > > pluginfile_2_basenamesAndFactory
void emit_basename_availableUnusedChannelListChanged()
void channelUncreated(IVP1ChannelWidget *)
static void messageVerbose(const QString &)
IVP1ChannelWidget * constructChannel(QString channelbasename, QString &err, bool init=true)
bool deleteChannel(QString channeluniquename)
IVP1ChannelWidget * uniqueName2Channel(QString uniquename) const
static void message(const QString &, IVP1System *sys=0)
QMap< QString, QString > basename2iconlocation
QList< QObject * > additionalOwnedObjects