#include <libsigrokdecode/libsigrokdecode.h>
#endif
+using std::shared_ptr;
+
namespace pv {
namespace dialogs {
pages = new QStackedWidget;
create_pages();
+ page_list->setCurrentIndex(page_list->model()->index(0, 0));
QHBoxLayout *tab_layout = new QHBoxLayout;
tab_layout->addWidget(page_list);
connect(sticky_scrolling_cb, SIGNAL(stateChanged(int)), this, SLOT(on_view_stickyScrolling_changed(int)));
trace_view_layout->addRow(tr("Always keep &newest samples at the right edge during capture"), sticky_scrolling_cb);
+ QCheckBox *show_sampling_points_cb = new QCheckBox();
+ show_sampling_points_cb->setChecked(settings.value(GlobalSettings::Key_View_ShowSamplingPoints).toBool());
+ connect(show_sampling_points_cb, SIGNAL(stateChanged(int)), this, SLOT(on_view_showSamplingPoints_changed(int)));
+ trace_view_layout->addRow(tr("Show data &sampling points"), show_sampling_points_cb);
+
return form;
}
QApplication::organizationDomain()));
version_info->setOpenExternalLinks(true);
- std::shared_ptr<sigrok::Context> context = device_manager_.context();
+ shared_ptr<sigrok::Context> context = device_manager_.context();
QString s;
s.append("<table>");
+ /* Library info */
+ s.append("<tr><td colspan=\"2\"><b>" +
+ tr("Used libraries:") +
+ "</b></td></tr>");
+ s.append(QString("<tr><td><i>%1</i></td><td>%2</td></tr>")
+ .arg(QString("Qt"), qVersion()));
+
/* Set up the supported field */
s.append("<tr><td colspan=\"2\"><b>" +
tr("Supported hardware drivers:") +
settings.setValue(GlobalSettings::Key_View_StickyScrolling, state ? true : false);
}
+void Settings::on_view_showSamplingPoints_changed(int state)
+{
+ GlobalSettings settings;
+ settings.setValue(GlobalSettings::Key_View_ShowSamplingPoints, state ? true : false);
+}
} // namespace dialogs
} // namespace pv