SignalBase::SignalBase(shared_ptr<sigrok::Channel> channel) :
channel_(channel)
{
+ if (channel_)
+ internal_name_ = QString::fromStdString(channel_->name());
}
shared_ptr<sigrok::Channel> SignalBase::channel() const
return (channel_) ? QString::fromStdString(channel_->name()) : name_;
}
+QString SignalBase::internal_name() const
+{
+ return internal_name_;
+}
+
void SignalBase::set_name(QString name)
{
if (channel_)
*/
QString name() const;
+ /**
+ * Gets the internal name of this signal, i.e. how the device calls it.
+ */
+ QString internal_name() const;
+
/**
* Sets the name of the signal.
*/
std::shared_ptr<pv::data::DecoderStack> decoder_stack_;
#endif
- QString name_;
+ QString internal_name_, name_;
QColor colour_, bgcolour_;
};