if (type == views::ViewTypeTrace)
// This view will be the main view if there's no main bar yet
- v = make_shared<views::TraceView::View>(session,
+ v = make_shared<views::trace::View>(session,
(main_bar ? false : true), dock_main);
if (!v)
SLOT(trigger_event(util::Timestamp)));
if (type == views::ViewTypeTrace) {
- views::TraceView::View *tv =
- qobject_cast<views::TraceView::View*>(v.get());
+ views::trace::View *tv =
+ qobject_cast<views::trace::View*>(v.get());
tv->enable_coloured_bg(settings.value(GlobalSettings::Key_View_ColouredBG).toBool());
tv->enable_show_sampling_points(settings.value(GlobalSettings::Key_View_ShowSamplingPoints).toBool());
shared_ptr<views::ViewBase> viewbase = entry.second;
// Only trace views have this setting
- views::TraceView::View* view =
- qobject_cast<views::TraceView::View*>(viewbase.get());
+ views::trace::View* view =
+ qobject_cast<views::trace::View*>(viewbase.get());
if (view)
view->enable_coloured_bg(state);
}
shared_ptr<views::ViewBase> viewbase = entry.second;
// Only trace views have this setting
- views::TraceView::View* view =
- qobject_cast<views::TraceView::View*>(viewbase.get());
+ views::trace::View* view =
+ qobject_cast<views::trace::View*>(viewbase.get());
if (view)
view->enable_show_sampling_points(state);
}
shared_ptr<views::ViewBase> viewbase = entry.second;
// Only trace views have this setting
- views::TraceView::View* view =
- qobject_cast<views::TraceView::View*>(viewbase.get());
+ views::trace::View* view =
+ qobject_cast<views::trace::View*>(viewbase.get());
if (view)
view->enable_show_analog_minor_grid(state);
}
// Make the signals list
for (shared_ptr<views::ViewBase> viewbase : views_) {
- views::TraceView::View *trace_view =
- qobject_cast<views::TraceView::View*>(viewbase.get());
+ views::trace::View *trace_view =
+ qobject_cast<views::trace::View*>(viewbase.get());
if (trace_view) {
- unordered_set< shared_ptr<views::TraceView::Signal> >
+ unordered_set< shared_ptr<views::trace::Signal> >
prev_sigs(trace_view->signals());
trace_view->clear_signals();
for (auto channel : sr_dev->channels()) {
shared_ptr<data::SignalBase> signalbase;
- shared_ptr<views::TraceView::Signal> signal;
+ shared_ptr<views::trace::Signal> signal;
// Find the channel in the old signals
const auto iter = find_if(
prev_sigs.cbegin(), prev_sigs.cend(),
- [&](const shared_ptr<views::TraceView::Signal> &s) {
+ [&](const shared_ptr<views::trace::Signal> &s) {
return s->base()->channel() == channel;
});
if (iter != prev_sigs.end()) {
signalbase.get(), SLOT(on_capture_state_changed(int)));
}
- signal = shared_ptr<views::TraceView::Signal>(
- new views::TraceView::LogicSignal(*this,
+ signal = shared_ptr<views::trace::Signal>(
+ new views::trace::LogicSignal(*this,
device_, signalbase));
trace_view->add_signal(signal);
break;
signalbase.get(), SLOT(on_capture_state_changed(int)));
}
- signal = shared_ptr<views::TraceView::Signal>(
- new views::TraceView::AnalogSignal(
+ signal = shared_ptr<views::trace::Signal>(
+ new views::trace::AnalogSignal(
*this, signalbase));
trace_view->add_signal(signal);
break;
const char *MainBar::SettingSaveDirectory = "MainWindow/SaveDirectory";
MainBar::MainBar(Session &session, QWidget *parent,
- pv::views::TraceView::View *view) :
+ pv::views::trace::View *view) :
StandardBar(session, parent, view, false),
action_new_view_(new QAction(this)),
action_open_(new QAction(this)),
// Selection only? Verify that the cursors are active and fetch their values
if (selection_only) {
- views::TraceView::View *trace_view =
- qobject_cast<views::TraceView::View*>(session_.main_view().get());
+ views::trace::View *trace_view =
+ qobject_cast<views::trace::View*>(session_.main_view().get());
if (!trace_view->cursors()->enabled()) {
show_session_error(tr("Missing Cursors"), tr("You need to set the " \
class Session;
namespace views {
-namespace TraceView {
+namespace trace {
class View;
}
}
public:
MainBar(Session &session, QWidget *parent,
- pv::views::TraceView::View *view);
+ pv::views::trace::View *view);
void update_device_list();
#include <pv/mainwindow.hpp>
-using pv::views::TraceView::View;
+using pv::views::trace::View;
namespace pv {
namespace views {
namespace views {
-namespace TraceView {
+namespace trace {
class View;
}
public:
StandardBar(Session &session, QWidget *parent,
- TraceView::View *view, bool add_default_widgets = true);
+ trace::View *view, bool add_default_widgets = true);
Session &session() const;
virtual void add_toolbar_widgets();
Session &session_;
- TraceView::View *view_;
+ trace::View *view_;
QAction *const action_view_zoom_in_;
QAction *const action_view_zoom_out_;
#include "pv/views/trace/ruler.hpp"
#include "test/test.hpp"
-using namespace pv::views::TraceView;
+using namespace pv::views::trace;
namespace {
QString format(const pv::util::Timestamp& t)