PluginDialog Class Reference

#include <plugindialog.h>

Inheritance diagram for PluginDialog:

QDialog

List of all members.


Detailed Description

Definition at line 19 of file plugindialog.h.


Public Slots

void customContextMenu (const QPoint &pos)
void ClearMenu ()

Signals

void sigPluginUnload (QString filename)
void sigPluginLoad (QString filename)
void sigPluginRescan ()
void sigFindingPlugins (bool state)

Public Member Functions

 PluginDialog (BCore *core, QWidget *parent=0)
void findPlugins ()

Public Attributes

QStringPluginPath
QStringListPluginFilenames

Private Slots

void pluginUnload ()
void pluginReload ()
void pluginRescan ()

Private Member Functions

void populateTreeWidget (QObject *plugin, const bool loaded, const QString &text)
void addItems (QTreeWidgetItem *pluginItem, const char *interfaceName, const QStringList &features)

Private Attributes

QActionactUnload
QActionactLoad
QActionactRescan
QLabellabel
QTreeWidgettreeWidget
QPushButtonokButton
QIcon interfaceIcon
QIcon featureIcon
BCorebcore

Constructor & Destructor Documentation

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

Definition at line 8 of file plugindialog.cpp.

References actLoad, actRescan, actUnload, QIcon::addPixmap(), QGridLayout::addWidget(), bcore, customContextMenu(), featureIcon, findPlugins(), interfaceIcon, label, pluginReload(), pluginRescan(), pluginUnload(), QGridLayout::setColumnStretch(), sigFindingPlugins(), and treeWidget.

Here is the call graph for this function:


Member Function Documentation

void PluginDialog::findPlugins (  ) 

Definition at line 84 of file plugindialog.cpp.

References QDir::absolutePath(), bcore, QLinkedList::constBegin(), QLinkedList::constEnd(), label, QObject::metaObject(), BCore::pluginFileNames, BCore::PluginList, BCore::pluginsDir, populateTreeWidget(), QDir::relativeFilePath(), sigFindingPlugins(), and QPluginLoader::staticInstances().

Referenced by PluginDialog(), and PluginViewerPlugin::ReloadMenu().

Here is the call graph for this function:

void PluginDialog::populateTreeWidget ( QObject plugin,
const bool  loaded,
const QString text 
) [private]

Definition at line 123 of file plugindialog.cpp.

References addItems(), DisplayInterface::commands(), QFont::setBold(), QString::toAscii(), and treeWidget.

Referenced by findPlugins().

Here is the call graph for this function:

void PluginDialog::addItems ( QTreeWidgetItem pluginItem,
const char *  interfaceName,
const QStringList features 
) [private]

Definition at line 150 of file plugindialog.cpp.

References QString::chop(), QString::endsWith(), featureIcon, interfaceIcon, QTreeWidgetItem::setIcon(), and QTreeWidgetItem::setText().

Referenced by populateTreeWidget().

Here is the call graph for this function:

void PluginDialog::sigPluginUnload ( QString  filename  )  [signal]

Referenced by pluginUnload().

void PluginDialog::sigPluginLoad ( QString  filename  )  [signal]

Referenced by pluginReload().

void PluginDialog::sigPluginRescan (  )  [signal]

Referenced by pluginRescan().

void PluginDialog::sigFindingPlugins ( bool  state  )  [signal]

Referenced by findPlugins(), and PluginDialog().

void PluginDialog::customContextMenu ( const QPoint pos  )  [slot]

Definition at line 69 of file plugindialog.cpp.

References actLoad, actRescan, actUnload, QMenu::addAction(), QMenu::addSeparator(), QTreeWidget::currentItem(), QMenu::exec(), QTreeWidgetItem::parent(), QCursor::pos(), and treeWidget.

Referenced by PluginDialog().

void PluginDialog::ClearMenu (  )  [slot]

Definition at line 61 of file plugindialog.cpp.

References QTreeWidget::clear(), and treeWidget.

Referenced by PluginViewerPlugin::ReloadMenu().

void PluginDialog::pluginUnload (  )  [private, slot]

Definition at line 168 of file plugindialog.cpp.

References QTreeWidget::currentItem(), sigPluginUnload(), QTreeWidgetItem::text(), and treeWidget.

Referenced by PluginDialog().

void PluginDialog::pluginReload (  )  [private, slot]

Definition at line 174 of file plugindialog.cpp.

References QTreeWidget::currentItem(), sigPluginLoad(), QTreeWidgetItem::text(), and treeWidget.

Referenced by PluginDialog().

void PluginDialog::pluginRescan (  )  [private, slot]

Definition at line 180 of file plugindialog.cpp.

References sigPluginRescan().

Referenced by PluginDialog().


Member Data Documentation

QString* PluginDialog::PluginPath

Definition at line 26 of file plugindialog.h.

QStringList* PluginDialog::PluginFilenames

Definition at line 27 of file plugindialog.h.

QAction* PluginDialog::actUnload [private]

Definition at line 36 of file plugindialog.h.

Referenced by customContextMenu(), and PluginDialog().

QAction* PluginDialog::actLoad [private]

Definition at line 37 of file plugindialog.h.

Referenced by customContextMenu(), and PluginDialog().

QAction* PluginDialog::actRescan [private]

Definition at line 38 of file plugindialog.h.

Referenced by customContextMenu(), and PluginDialog().

QLabel* PluginDialog::label [private]

Definition at line 40 of file plugindialog.h.

Referenced by findPlugins(), and PluginDialog().

QTreeWidget* PluginDialog::treeWidget [private]

Definition at line 41 of file plugindialog.h.

Referenced by ClearMenu(), customContextMenu(), PluginDialog(), pluginReload(), pluginUnload(), and populateTreeWidget().

QPushButton* PluginDialog::okButton [private]

Definition at line 42 of file plugindialog.h.

QIcon PluginDialog::interfaceIcon [private]

Definition at line 43 of file plugindialog.h.

Referenced by addItems(), and PluginDialog().

QIcon PluginDialog::featureIcon [private]

Definition at line 44 of file plugindialog.h.

Referenced by addItems(), and PluginDialog().

BCore* PluginDialog::bcore [private]

Definition at line 46 of file plugindialog.h.

Referenced by findPlugins(), and PluginDialog().


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