TimeCodePlugin Class Reference

#include <timecodeplugin.h>

Inheritance diagram for TimeCodePlugin:

QObject CoreInterface DisplayInterface MessageBusInterface

List of all members.


Detailed Description

Definition at line 21 of file timecodeplugin.h.


Public Slots

void setTime ()

Signals

void newTime (int hour, int minute, int second, int frame)

Public Member Functions

void CoreInit (const BCore *core)
void SaveSettings ()
void LoadSettings ()
void Module (const QString name, const QStringList params)
BBoB_ChannelChannelPointer (QString mod, QString input) const
BBoB_ModuleModulePointer (const QString mod) const
QStringList ModuleList () const
QMap< QString, QStringModuleParams (const QString name) const
QMap< QString, QStringModuleInputs (const QString name) const
QMap< QString, QStringModuleOutputs (const QString name) const
void saveChannels ()
bool loadBus (const int ID)
QString BusName ()
void BitBus (const int FromID, const int bit)
void ByteBus (const int FromID, const int byte)
void StringBus (const int FromID, const QString str)
const QString remote_protocol ()
void remote_data (QString)
QStringList commands () const
QDockWidgetgetDock (const QString &command)
QWidgetgetConfig ()

Public Attributes

QMap< QString,
BBoB_Module * > 
Modules
BCorebcore
int MyID

Private Attributes

TimeDisplayDialogTimeDlog
bool TimeD
QMultiHash< QString,
QString > * 
messages
QTimertimer
QTimetimecode
int Frames
QString s1
QString s2
QStringList list

Member Function Documentation

void TimeCodePlugin::CoreInit ( const BCore core  )  [virtual]

Called by BCore Initialize - Sets variables, loads classes for message bus, and loads saved settings.

Implements CoreInterface.

Definition at line 7 of file timecodeplugin-core.cpp.

References BCore::addConfigTab(), bcore, QObject::connect(), QTime::currentTime(), Frames, getConfig(), LoadSettings(), messages, setTime(), QTimer::start(), BCore::timecode, timecode, TimeDlog, and timer.

Here is the call graph for this function:

void TimeCodePlugin::SaveSettings (  )  [virtual]

Saves state of all dialogs and any other settings this plugin needs.

Implements CoreInterface.

Definition at line 37 of file timecodeplugin-core.cpp.

References bcore, BCore::settings, BBoB_Settings::setValue(), TimeD, and TimeDlog.

Here is the call graph for this function:

void TimeCodePlugin::LoadSettings (  ) 

Loads state of all dialogs and any other settings this plugin needs.

Definition at line 49 of file timecodeplugin-core.cpp.

References bcore, commands(), getDock(), BBoB_Settings::getValue(), BCore::settings, and QVariant::toBool().

Referenced by CoreInit().

Here is the call graph for this function:

void TimeCodePlugin::Module ( const QString  name,
const QStringList  params 
) [virtual]

Implements CoreInterface.

Definition at line 56 of file timecodeplugin-core.cpp.

References QMap::contains(), and Modules.

Here is the call graph for this function:

BBoB_Channel * TimeCodePlugin::ChannelPointer ( QString  mod,
QString  input 
) const [virtual]

Implements CoreInterface.

Definition at line 5 of file timecodeplugin-module.cpp.

References QMap::contains(), and Modules.

Here is the call graph for this function:

BBoB_Module * TimeCodePlugin::ModulePointer ( const QString  mod  )  const [virtual]

Implements CoreInterface.

Definition at line 52 of file timecodeplugin-module.cpp.

References QMap::contains(), Modules, and QMap::value().

Here is the call graph for this function:

QStringList TimeCodePlugin::ModuleList (  )  const [virtual]

Implements CoreInterface.

Definition at line 15 of file timecodeplugin-module.cpp.

References QMap::keys(), and Modules.

Here is the call graph for this function:

QMap< QString, QString > TimeCodePlugin::ModuleParams ( const QString  name  )  const [virtual]

Implements CoreInterface.

Definition at line 20 of file timecodeplugin-module.cpp.

References QMap::contains(), and Modules.

Here is the call graph for this function:

QMap< QString, QString > TimeCodePlugin::ModuleInputs ( const QString  name  )  const [virtual]

Implements CoreInterface.

Definition at line 30 of file timecodeplugin-module.cpp.

References Channel_Dir_In, BBoB_Channel::dir, BBoB_Channel::getMimetype(), list, Modules, and BBoB_Channel::name.

Here is the call graph for this function:

QMap< QString, QString > TimeCodePlugin::ModuleOutputs ( const QString  name  )  const [virtual]

Implements CoreInterface.

Definition at line 41 of file timecodeplugin-module.cpp.

References Channel_Dir_Out, BBoB_Channel::dir, BBoB_Channel::getMimetype(), list, Modules, and BBoB_Channel::name.

Here is the call graph for this function:

void TimeCodePlugin::saveChannels (  ) 

bool TimeCodePlugin::loadBus ( const int  ID  )  [virtual]

Initialize BusID.

Implements MessageBusInterface.

Definition at line 5 of file timecodeplugin-messagebus.cpp.

References MyID, and QByteArray::setNum().

Here is the call graph for this function:

QString TimeCodePlugin::BusName (  )  [virtual]

Returns the name of this bus.

Implements MessageBusInterface.

Definition at line 16 of file timecodeplugin-messagebus.cpp.

void TimeCodePlugin::BitBus ( const int  FromID,
const int  bit 
) [virtual]

Receives bus data.

Implements MessageBusInterface.

Definition at line 23 of file timecodeplugin-messagebus.cpp.

References QByteArray::setNum().

Here is the call graph for this function:

void TimeCodePlugin::ByteBus ( const int  FromID,
const int  byte 
) [virtual]

Receives bus data.

Implements MessageBusInterface.

Definition at line 33 of file timecodeplugin-messagebus.cpp.

References QByteArray::setNum().

Here is the call graph for this function:

void TimeCodePlugin::StringBus ( const int  FromID,
const QString  str 
) [virtual]

Receives bus data.

Implements MessageBusInterface.

Definition at line 43 of file timecodeplugin-messagebus.cpp.

References remote_data().

Here is the call graph for this function:

const QString TimeCodePlugin::remote_protocol (  )  [inline]

Definition at line 71 of file timecodeplugin.h.

Referenced by remote_data().

void TimeCodePlugin::remote_data ( QString  data  ) 

Receives remote command string and process.

Definition at line 50 of file timecodeplugin-messagebus.cpp.

References QMultiHash::insert(), messages, remote_protocol(), QString::remove(), QString::section(), and QString::startsWith().

Referenced by StringBus().

Here is the call graph for this function:

QStringList TimeCodePlugin::commands (  )  const [virtual]

List of menu commands - Text shown in menu and in dock titlebar.

Implements DisplayInterface.

Definition at line 7 of file timecodeplugin-display.cpp.

References QObject::tr().

Referenced by getDock(), and LoadSettings().

Here is the call graph for this function:

QDockWidget * TimeCodePlugin::getDock ( const QString command  )  [virtual]

Displayable widget - Creates Dialog and connects signals/slots. Then creates QDockWidget so dock options can be set, then it's passed to BCore which can pass to the MainWindow.

Implements DisplayInterface.

Definition at line 18 of file timecodeplugin-display.cpp.

References BCore::addDock(), bcore, commands(), QDockWidget::setWidget(), timecode, and TimeDlog.

Referenced by LoadSettings().

Here is the call graph for this function:

QWidget * TimeCodePlugin::getConfig (  )  [virtual]

Implements DisplayInterface.

Definition at line 47 of file timecodeplugin-display.cpp.

Referenced by CoreInit().

void TimeCodePlugin::setTime (  )  [slot]

Definition at line 17 of file timecodeplugin.cpp.

References QTime::addMSecs(), bcore, Frames, list, messages, MyID, QMultiHash::remove(), s1, s2, QString::section(), BCore::StringBus(), timecode, QString::toAscii(), and QTime::toString().

Referenced by CoreInit().

void TimeCodePlugin::newTime ( int  hour,
int  minute,
int  second,
int  frame 
) [signal]


Member Data Documentation

TimeDisplayDialog* TimeCodePlugin::TimeDlog [private]

Definition at line 28 of file timecodeplugin.h.

Referenced by CoreInit(), getDock(), and SaveSettings().

bool TimeCodePlugin::TimeD [private]

Definition at line 29 of file timecodeplugin.h.

Referenced by SaveSettings().

QMultiHash<QString, QString>* TimeCodePlugin::messages [private]

Definition at line 31 of file timecodeplugin.h.

Referenced by CoreInit(), remote_data(), and setTime().

QTimer* TimeCodePlugin::timer [private]

Definition at line 33 of file timecodeplugin.h.

Referenced by CoreInit().

QTime* TimeCodePlugin::timecode [private]

Definition at line 34 of file timecodeplugin.h.

Referenced by CoreInit(), getDock(), and setTime().

int TimeCodePlugin::Frames [private]

Definition at line 35 of file timecodeplugin.h.

Referenced by CoreInit(), and setTime().

QString TimeCodePlugin::s1 [private]

Definition at line 38 of file timecodeplugin.h.

Referenced by setTime().

QString TimeCodePlugin::s2 [private]

Definition at line 38 of file timecodeplugin.h.

Referenced by setTime().

QStringList TimeCodePlugin::list [private]

Definition at line 39 of file timecodeplugin.h.

Referenced by ModuleInputs(), ModuleOutputs(), and setTime().

QMap<QString, BBoB_Module*> TimeCodePlugin::Modules

Definition at line 55 of file timecodeplugin.h.

Referenced by ChannelPointer(), Module(), ModuleInputs(), ModuleList(), ModuleOutputs(), ModuleParams(), and ModulePointer().

BCore* TimeCodePlugin::bcore

Definition at line 58 of file timecodeplugin.h.

Referenced by CoreInit(), getDock(), LoadSettings(), SaveSettings(), and setTime().

int TimeCodePlugin::MyID

Definition at line 68 of file timecodeplugin.h.

Referenced by loadBus(), and setTime().


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