for (const shared_ptr<views::ViewBase>& view : views_) {
if (view != main_view_) {
settings.beginGroup("view" + QString::number(views++));
+ settings.setValue("type", view->get_type());
view->save_settings(settings);
settings.endGroup();
}
{
}
+ViewType View::get_type() const
+{
+ return ViewTypeDecoderOutput;
+}
+
void View::reset_view_state()
{
ViewBase::reset_view_state();
~View();
+ virtual ViewType get_type() const;
+
/**
* Resets the view to its default state after construction. It does however
* not reset the signal bases or any other connections with the session.
GlobalSettings::remove_change_handler(this);
}
+ViewType View::get_type() const
+{
+ return ViewTypeTrace;
+}
+
void View::reset_view_state()
{
ViewBase::reset_view_state();
~View();
+ virtual ViewType get_type() const;
+
/**
* Resets the view to its default state after construction. It does however
* not reset the signal bases or any other connections with the session.
public:
explicit ViewBase(Session &session, bool is_main_view = false, QMainWindow *parent = nullptr);
+ virtual ViewType get_type() const = 0;
+
/**
* Resets the view to its default state after construction. It does however
* not reset the signal bases or any other connections with the session.