DataRecorderChannelFloat::DataRecorderChannelFloat(DataRecorder * recorder)
    :	DataRecorderChannelBase(recorder),
      m_propertyWidget(0)
{
    setChannelType(CT_Float);
    m_input = new ConnectorFloatIn(recorder,QString::fromLatin1("Floating Point"),
                                   i18n("DataRecorder-Connector", "Floating Point"),
                                   QPoint());
    m_input->setErasable(true);
    m_input->getAction().disable(KSimAction::STORAGE);
    connect(m_input, SIGNAL(signalDeleteRequest(ConnectorBase *)),
            recorder, SLOT(slotRemoveChannelConn(ConnectorBase *)));
    m_data = new FloatStorage();

    counter++;

    if (counter > 15) counter = 1;

    setVerticalGain(1);
    setVerticalOffset(0.5 * counter);
}
Esempio n. 2
0
void CameraInfoChannel::setChannelType(const QString &channelTypeName)
{
    setChannelType(channelTypeFromString(channelTypeName));
}
Esempio n. 3
0
CameraInfoChannel::CameraInfoChannel(const QString &channelTypeName, int id)
{
    setChannelType(channelTypeFromString(channelTypeName));
    _id = id;
}