#include <config_portmap.h>
Definition at line 12 of file config_portmap.h.
Public Slots | |
void | customContextMenu (const QPoint &pos) |
void | ExpandTreeitem () |
void | ColapseTreeitem () |
void | TreeItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
void | on_RefreshButton_clicked () |
void | on_AddButton_clicked () |
void | on_RemoveButton_clicked () |
void | on_ExpandButton_clicked () |
void | on_ColapseButton_clicked () |
Public Member Functions | |
Config_Portmap (BCore *core, QWidget *parent=0) | |
Public Attributes | |
BCore * | bcore |
QTabWidget * | ConfigTab |
DragDropTree * | PortmapTree |
Private Member Functions | |
void | populateTreePlugin (QObject *plugin, const QString &text) |
void | populateTreeCue (QTreeWidgetItem *cueItem, BBoB_Cue *cue) |
void | addModules (CoreInterface *, QTreeWidgetItem *) |
int | TreeType (QTreeWidgetItem *item) |
void | ResizeTree () |
Private Attributes | |
QAction * | actAdd |
QAction * | actRemove |
QAction * | actExpand |
QAction * | actColapse |
QIcon | modIcon |
QIcon | featureIcon |
QIcon | inputIcon |
QIcon | outputIcon |
QIcon | paramIcon |
Definition at line 14 of file config_portmap.cpp.
References actAdd, actColapse, actExpand, actRemove, QIcon::addPixmap(), bcore, ColapseTreeitem(), customContextMenu(), QWidget::customContextMenuRequested(), ExpandTreeitem(), featureIcon, QString::fromUtf8(), inputIcon, modIcon, on_AddButton_clicked(), on_RefreshButton_clicked(), on_RemoveButton_clicked(), outputIcon, paramIcon, PortmapTree, QTreeWidget::setHeaderLabels(), QWidget::style(), and TreeItemChanged().
Definition at line 189 of file config_portmap.cpp.
References addModules(), QTreeWidget::addTopLevelItem(), PortmapTree, QFont::setBold(), and QString::toAscii().
Referenced by on_RefreshButton_clicked().
void Config_Portmap::populateTreeCue | ( | QTreeWidgetItem * | cueItem, | |
BBoB_Cue * | cue | |||
) | [private] |
Definition at line 145 of file config_portmap.cpp.
References QTreeWidgetItem::addChild(), bcore, Channel_Mimetype_Bit, ConnectRole, DragableRole, Dropable, DropableRole, BCore::findOutputs(), inputIcon, MimetypeRole, BBoB_Cue::Name, NotDragable, NotDropable, outputIcon, PointerRole, QString::replace(), QTreeWidgetItem::setData(), QTreeWidgetItem::setFlags(), QTreeWidgetItem::setIcon(), QTreeWidgetItem::setText(), and QString::toAscii().
Referenced by on_RefreshButton_clicked().
void Config_Portmap::addModules | ( | CoreInterface * | iCore, | |
QTreeWidgetItem * | pluginItem | |||
) | [private] |
Definition at line 213 of file config_portmap.cpp.
References QTreeWidgetItem::addChild(), bcore, CoreInterface::ChannelPointer(), QString::chop(), ConnectRole, Dragable, DragableRole, Dropable, DropableRole, QString::endsWith(), featureIcon, BCore::findOutputs(), inputIcon, QMap::keys(), MimetypeRole, modIcon, CoreInterface::ModuleInputs(), CoreInterface::ModuleList(), CoreInterface::ModuleOutputs(), CoreInterface::ModuleParams(), NotDragable, NotDropable, outputIcon, paramIcon, PointerRole, PortmapTree, QString::replace(), ResizeTree(), QTreeWidgetItem::setData(), QTreeWidgetItem::setFlags(), QTreeWidgetItem::setIcon(), QTreeWidgetItem::setText(), QString::toAscii(), and QMap::value().
Referenced by populateTreePlugin().
int Config_Portmap::TreeType | ( | QTreeWidgetItem * | item | ) | [private] |
Definition at line 395 of file config_portmap.cpp.
References QTreeWidget::indexOfTopLevelItem(), QTreeWidgetItem::parent(), and PortmapTree.
Referenced by customContextMenu(), and TreeItemChanged().
void Config_Portmap::ResizeTree | ( | ) | [private] |
Definition at line 76 of file config_portmap.cpp.
References PortmapTree.
Referenced by addModules(), ColapseTreeitem(), ExpandTreeitem(), on_ColapseButton_clicked(), on_ExpandButton_clicked(), on_RefreshButton_clicked(), and TreeItemChanged().
void Config_Portmap::customContextMenu | ( | const QPoint & | pos | ) | [slot] |
Menu for tree that only responds to top level widgets
Definition at line 346 of file config_portmap.cpp.
References actAdd, actColapse, actExpand, actRemove, QMenu::addAction(), QMenu::addSeparator(), QTreeWidget::currentItem(), QMenu::exec(), QMenu::isEmpty(), PortmapTree, QCursor::pos(), and TreeType().
Referenced by Config_Portmap().
void Config_Portmap::ExpandTreeitem | ( | ) | [slot] |
Definition at line 83 of file config_portmap.cpp.
References QTreeWidget::currentItem(), PortmapTree, and ResizeTree().
Referenced by Config_Portmap().
void Config_Portmap::ColapseTreeitem | ( | ) | [slot] |
Definition at line 92 of file config_portmap.cpp.
References QTreeWidget::currentItem(), PortmapTree, and ResizeTree().
Referenced by Config_Portmap().
void Config_Portmap::TreeItemChanged | ( | QTreeWidgetItem * | current, | |
QTreeWidgetItem * | previous | |||
) | [slot] |
Definition at line 372 of file config_portmap.cpp.
References ResizeTree(), QTreeWidgetItem::text(), and TreeType().
Referenced by Config_Portmap().
void Config_Portmap::on_RefreshButton_clicked | ( | ) | [slot] |
Definition at line 101 of file config_portmap.cpp.
References QTreeWidget::addTopLevelItem(), bcore, QTreeWidget::clear(), QLinkedList::constBegin(), QLinkedList::constEnd(), BCore::Cues, QTreeWidgetItem::font(), QMap::keys(), BCore::PluginList, BCore::pluginsDir, populateTreeCue(), populateTreePlugin(), PortmapTree, QDir::relativeFilePath(), ResizeTree(), QFont::setBold(), QTreeWidgetItem::setFont(), and QTreeWidgetItem::setText().
Referenced by Config_Portmap().
void Config_Portmap::on_AddButton_clicked | ( | ) | [slot] |
void Config_Portmap::on_RemoveButton_clicked | ( | ) | [slot] |
Definition at line 426 of file config_portmap.cpp.
References QTreeWidget::currentItem(), and PortmapTree.
Referenced by Config_Portmap().
void Config_Portmap::on_ExpandButton_clicked | ( | ) | [slot] |
Definition at line 434 of file config_portmap.cpp.
References QTreeWidget::findItems(), PortmapTree, and ResizeTree().
void Config_Portmap::on_ColapseButton_clicked | ( | ) | [slot] |
Definition at line 445 of file config_portmap.cpp.
References QTreeWidget::findItems(), PortmapTree, and ResizeTree().
QAction* Config_Portmap::actAdd [private] |
Definition at line 22 of file config_portmap.h.
Referenced by Config_Portmap(), and customContextMenu().
QAction* Config_Portmap::actRemove [private] |
Definition at line 23 of file config_portmap.h.
Referenced by Config_Portmap(), and customContextMenu().
QAction* Config_Portmap::actExpand [private] |
Definition at line 24 of file config_portmap.h.
Referenced by Config_Portmap(), and customContextMenu().
QAction* Config_Portmap::actColapse [private] |
Definition at line 25 of file config_portmap.h.
Referenced by Config_Portmap(), and customContextMenu().
QIcon Config_Portmap::modIcon [private] |
QIcon Config_Portmap::featureIcon [private] |
QIcon Config_Portmap::inputIcon [private] |
Definition at line 29 of file config_portmap.h.
Referenced by addModules(), Config_Portmap(), and populateTreeCue().
QIcon Config_Portmap::outputIcon [private] |
Definition at line 30 of file config_portmap.h.
Referenced by addModules(), Config_Portmap(), and populateTreeCue().
QIcon Config_Portmap::paramIcon [private] |
Definition at line 36 of file config_portmap.h.
Referenced by addModules(), Config_Portmap(), on_RefreshButton_clicked(), and populateTreeCue().
Definition at line 38 of file config_portmap.h.
Definition at line 40 of file config_portmap.h.
Referenced by addModules(), ColapseTreeitem(), Config_Portmap(), customContextMenu(), ExpandTreeitem(), on_ColapseButton_clicked(), on_ExpandButton_clicked(), on_RefreshButton_clicked(), on_RemoveButton_clicked(), populateTreePlugin(), ResizeTree(), and TreeType().