Config_Portmap Class Reference

#include <config_portmap.h>

Inheritance diagram for Config_Portmap:

QWidget

List of all members.


Detailed Description

Portmap tab of Config window.

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

BCorebcore
QTabWidgetConfigTab
DragDropTreePortmapTree

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

QActionactAdd
QActionactRemove
QActionactExpand
QActionactColapse
QIcon modIcon
QIcon featureIcon
QIcon inputIcon
QIcon outputIcon
QIcon paramIcon

Constructor & Destructor Documentation

Config_Portmap::Config_Portmap ( BCore core,
QWidget parent = 0 
)

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().

Here is the call graph for this function:


Member Function Documentation

void Config_Portmap::populateTreePlugin ( QObject plugin,
const QString text 
) [private]

Definition at line 189 of file config_portmap.cpp.

References addModules(), QTreeWidget::addTopLevelItem(), PortmapTree, QFont::setBold(), and QString::toAscii().

Referenced by on_RefreshButton_clicked().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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]

Definition at line 418 of file config_portmap.cpp.

Referenced by Config_Portmap().

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().


Member Data Documentation

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]

Definition at line 27 of file config_portmap.h.

Referenced by addModules(), and Config_Portmap().

QIcon Config_Portmap::featureIcon [private]

Definition at line 28 of file config_portmap.h.

Referenced by addModules(), and Config_Portmap().

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 31 of file config_portmap.h.

Referenced by addModules(), and Config_Portmap().

BCore* Config_Portmap::bcore

Definition at line 36 of file config_portmap.h.

Referenced by addModules(), Config_Portmap(), on_RefreshButton_clicked(), and populateTreeCue().

QTabWidget* Config_Portmap::ConfigTab

Definition at line 38 of file config_portmap.h.

DragDropTree* Config_Portmap::PortmapTree

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().


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:40 2007 for BBoB by  doxygen 1.5.3