SLOT(on_view_showHoverMarker_changed(int)));
trace_view_layout->addRow(tr("Highlight mouse cursor using a vertical marker line"), cb);
+ cb = create_checkbox(GlobalSettings::Key_View_KeepRulerItemSelected,
+ SLOT(on_view_keepRulerItemSelected_changed(int)));
+ trace_view_layout->addRow(tr("Keep active item on ruler selected when editing popup is closed"), cb);
+
QSpinBox *snap_distance_sb = new QSpinBox();
snap_distance_sb->setRange(0, 1000);
snap_distance_sb->setSuffix(tr(" pixels"));
settings.setValue(GlobalSettings::Key_View_ShowHoverMarker, state ? true : false);
}
+void Settings::on_view_keepRulerItemSelected_changed(int state)
+{
+ GlobalSettings settings;
+ settings.setValue(GlobalSettings::Key_View_KeepRulerItemSelected, state ? true : false);
+}
+
void Settings::on_view_snapDistance_changed(int value)
{
GlobalSettings settings;
void on_view_fillSignalHighAreaColor_changed(QColor color);
void on_view_showAnalogMinorGrid_changed(int state);
void on_view_showHoverMarker_changed(int state);
+ void on_view_keepRulerItemSelected_changed(int state);
void on_view_snapDistance_changed(int value);
void on_view_cursorFillColor_changed(QColor color);
void on_view_conversionThresholdDispMode_changed(int state);
const QString GlobalSettings::Key_View_DefaultDivHeight = "View_DefaultDivHeight";
const QString GlobalSettings::Key_View_DefaultLogicHeight = "View_DefaultLogicHeight";
const QString GlobalSettings::Key_View_ShowHoverMarker = "View_ShowHoverMarker";
+const QString GlobalSettings::Key_View_KeepRulerItemSelected = "View_KeepRulerItemSelected";
const QString GlobalSettings::Key_View_SnapDistance = "View_SnapDistance";
const QString GlobalSettings::Key_View_CursorFillColor = "View_CursorFillColor";
const QString GlobalSettings::Key_View_CursorShowFrequency = "View_CursorShowFrequency";
if (!contains(Key_View_ShowHoverMarker))
setValue(Key_View_ShowHoverMarker, true);
+ if (!contains(Key_View_KeepRulerItemSelected))
+ setValue(Key_View_KeepRulerItemSelected, false);
+
if (!contains(Key_View_SnapDistance))
setValue(Key_View_SnapDistance, 15);
static const QString Key_View_DefaultDivHeight;
static const QString Key_View_DefaultLogicHeight;
static const QString Key_View_ShowHoverMarker;
+ static const QString Key_View_KeepRulerItemSelected;
static const QString Key_View_SnapDistance;
static const QString Key_View_CursorFillColor;
static const QString Key_View_CursorShowInterval;
void TimeMarker::on_popup_closed()
{
- select(false);
+ GlobalSettings settings;
+ if (!settings.value(GlobalSettings::Key_View_KeepRulerItemSelected).toBool())
+ select(false);
}
void TimeMarker::on_value_changed(const pv::util::Timestamp& value)