Skip to content
Snippets Groups Projects
Commit e352fc95 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov Committed by Wuttke, Joachim
Browse files

add log range to panel

parent b26af1ba
No related branches found
No related tags found
No related merge requests found
......@@ -165,15 +165,27 @@ void IntensityDataPropertyWidget::createPanelElements()
},
&m_updaters));
auto* logRangeSpinbox = GUI::Util::createDoubleSpinbox(
[this] { return currentIntensityDataItem()->zAxisItem()->logRange(); },
[this](double newValue) {
for (auto item : mainIntensityDataItems())
item->zAxisItem()->setLogRange(newValue);
gProjectDocument.value()->setModified();
},
&m_updaters);
zFormLayout->addRow(GUI::Util::createCheckBox(
"log10", [this] { return currentIntensityDataItem()->zAxisItem()->isLogScale(); },
[this](bool b) {
[this, logRangeSpinbox](bool b) {
logRangeSpinbox->setEnabled(b);
for (auto item : allIntensityDataItems())
item->zAxisItem()->setLogScale(b);
gProjectDocument.value()->setModified();
},
&m_updaters));
zFormLayout->addRow("Log range:", logRangeSpinbox);
zFormLayout->addRow(GUI::Util::createCheckBox(
"Visible", [this] { return currentIntensityDataItem()->zAxisItem()->isVisible(); },
[this](bool b) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment