shared_ptr<data::SignalBase> signalbase, int index) :
Trace(signalbase),
session_(session),
- signalbase_(signalbase),
row_height_(0),
max_visible_rows_(0),
delete_mapper_(this),
show_hide_mapper_(this)
{
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
// Determine shortest string we want to see displayed in full
QFontMetrics m(QApplication::font());
min_useful_label_width_ = m.width("XX"); // e.g. two hex characters
- signalbase_->set_name(QString::fromUtf8(decoder_stack->stack().front()->decoder()->name));
- signalbase_->set_colour(DecodeColours[index % countof(DecodeColours)]);
+ base_->set_name(QString::fromUtf8(decoder_stack->stack().front()->decoder()->name));
+ base_->set_colour(DecodeColours[index % countof(DecodeColours)]);
connect(decoder_stack.get(), SIGNAL(new_decode_data()),
this, SLOT(on_new_decode_data()));
using namespace pv::data::decode;
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
const int text_height = ViewItemPaintParams::text_height();
row_height_ = (text_height * 6) / 4;
using pv::data::decode::Decoder;
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
assert(form);
assert(parent);
double samples_per_pixel, pixels_offset;
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
assert(decoder_stack);
pair<double, double> DecodeTrace::get_pixels_offset_samples_per_pixel() const
{
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
assert(owner_);
assert(decoder_stack);
vector<pv::data::decode::Annotation> annotations;
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
assert(decoder_stack);
decoder_stack->get_annotation_subset(annotations, visible_rows_[row],
}
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
// Add the options
shared_ptr<binding::Decoder> binding(
void DecodeTrace::commit_channels()
{
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
assert(decoder_stack);
for (shared_ptr<data::decode::Decoder> dec : decoder_stack->stack())
void DecodeTrace::on_stack_decoder(srd_decoder *decoder)
{
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
assert(decoder);
assert(decoder_stack);
void DecodeTrace::on_delete_decoder(int index)
{
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
decoder_stack->remove(index);
using pv::data::decode::Decoder;
std::shared_ptr<pv::data::DecoderStack> decoder_stack =
- signalbase_->decoder_stack();
+ base_->decoder_stack();
const list< shared_ptr<Decoder> > stack(decoder_stack->stack());