Skip to content
Snippets Groups Projects
Commit 88e97a7e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rename class and sources GUI/View/Device/SpanPropertyForm -> GUI/View/Device/SpanForm

parent b84d0c2f
No related branches found
No related tags found
1 merge request!2637rename form-related classes; simplify span property construction
......@@ -17,7 +17,7 @@
#include "GUI/Model/Detector/DetectorItem.h"
#include "GUI/Model/Detector/ResolutionFunctionItems.h"
#include "GUI/Model/Sim/InstrumentItems.h"
#include "GUI/View/Device/SpanPropertyForm.h"
#include "GUI/View/Device/SpanForm.h"
#include "GUI/View/Numeric/ComboUtil.h"
#include "GUI/View/Numeric/DoubleSpinBox.h"
#include "GUI/View/Numeric/NumWidgetUtil.h"
......@@ -36,12 +36,10 @@ DetectorEditor::DetectorEditor(QWidget* parent, Scatter2DInstrumentItem* instrIt
auto* xyrow = new QHBoxLayout;
layout->addLayout(xyrow);
auto* phiForm =
new SpanPropertyForm(this, u8"\u03c6 axis", &detectorItem->phiAxis(), "phi axis");
auto* phiForm = new SpanForm(this, u8"\u03c6 axis", &detectorItem->phiAxis(), "phi axis");
xyrow->addWidget(phiForm);
auto* alphaForm =
new SpanPropertyForm(this, u8"\u03b1 axis", &detectorItem->alphaAxis(), "alpha axis");
auto* alphaForm = new SpanForm(this, u8"\u03b1 axis", &detectorItem->alphaAxis(), "alpha axis");
xyrow->addWidget(alphaForm);
//... resolution controls
......
......@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/View/Device/SpanPropertyForm.cpp
//! @brief Implement class SpanPropertyForm
//! @file GUI/View/Device/SpanForm.cpp
//! @brief Implement class SpanForm
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
......@@ -12,7 +12,7 @@
//
// ************************************************************************************************
#include "GUI/View/Device/SpanPropertyForm.h"
#include "GUI/View/Device/SpanForm.h"
#include "Base/Util/Assert.h"
#include "GUI/Model/Descriptor/SpanProperty.h"
#include "GUI/Model/Project/ProjectDocument.h"
......@@ -20,8 +20,8 @@
#include "GUI/View/Numeric/NumWidgetUtil.h"
#include <QFormLayout>
SpanPropertyForm::SpanPropertyForm(QWidget* parent, const QString& group_title,
SpanProperty* span_property, QString nbins_tooltip)
SpanForm::SpanForm(QWidget* parent, const QString& group_title, SpanProperty* span_property,
QString nbins_tooltip)
: StaticGroupBox(group_title, parent)
, m_span_property(span_property)
{
......
......@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/View/Device/SpanPropertyForm.h
//! @brief Defines class SpanPropertyForm.
//! @file GUI/View/Device/SpanForm.h
//! @brief Defines class SpanForm.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
......@@ -12,8 +12,8 @@
//
// ************************************************************************************************
#ifndef BORNAGAIN_GUI_VIEW_DEVICE_SPANPROPERTYFORM_H
#define BORNAGAIN_GUI_VIEW_DEVICE_SPANPROPERTYFORM_H
#ifndef BORNAGAIN_GUI_VIEW_DEVICE_SPANFORM_H
#define BORNAGAIN_GUI_VIEW_DEVICE_SPANFORM_H
#include "GUI/View/Widget/GroupBoxes.h"
#include <QSpinBox>
......@@ -26,11 +26,11 @@ class SpanProperty;
//! An SpanProperty handles values for a EquiDivision. The values will be already written into the
//! data element. For each change of values, a signal will be emitted. Use this e.g. to update
//! dependent values or to set the document to modified.
class SpanPropertyForm : public StaticGroupBox {
class SpanForm : public StaticGroupBox {
Q_OBJECT
public:
SpanPropertyForm(QWidget* parent, const QString& group_title, SpanProperty* span_property,
QString nbins_tooltip = "");
SpanForm(QWidget* parent, const QString& group_title, SpanProperty* span_property,
QString nbins_tooltip = "");
signals:
void changedSpanData(); // TODO is UNUSED
......@@ -45,4 +45,4 @@ private:
};
#endif // BORNAGAIN_GUI_VIEW_DEVICE_SPANPROPERTYFORM_H
#endif // BORNAGAIN_GUI_VIEW_DEVICE_SPANFORM_H
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