#include "view.hpp"
using std::shared_ptr;
+using std::make_shared;
using sigrok::Channel;
Trace(QString::fromUtf8(channel->name().c_str())),
session_(session),
channel_(channel),
+ scale_handle_(make_shared<SignalScaleHandle>(*this)),
+ items_({scale_handle_}),
name_widget_(nullptr),
updating_name_widget_(false)
{
return channel_;
}
+const ViewItemOwner::item_list& Signal::child_items() const
+{
+ return items_;
+}
+
void Signal::populate_popup_form(QWidget *parent, QFormLayout *form)
{
name_widget_ = new QComboBox(parent);
name_widget_->setEditable(true);
name_widget_->setCompleter(0);
- for(unsigned int i = 0; i < countof(ChannelNames); i++)
+ for (unsigned int i = 0; i < countof(ChannelNames); i++)
name_widget_->insertItem(i, ChannelNames[i]);
const int index = name_widget_->findText(name_, Qt::MatchExactly);