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

rename class and sources GUI/Model/Detector/ResolutionFunctionItemCatalog ->...

rename class and sources GUI/Model/Detector/ResolutionFunctionItemCatalog -> GUI/Model/Detector/ResolutionFunctionCatalog
parent 565f1e15
No related branches found
No related tags found
1 merge request!2675simplification and renaming of catalog classes
......@@ -44,7 +44,7 @@ DetectorItem::DetectorItem()
, m_prjns(std::make_unique<MasksSet>())
{
m_resolution_function.initWithArgs("Resolution function", "Detector resolution function",
ResolutionFunctionItemCatalog::Type::None);
ResolutionFunctionCatalog::Type::None);
}
DetectorItem::~DetectorItem() = default;
......
......@@ -17,7 +17,7 @@
#include "GUI/Model/Descriptor/AxisProperty.h"
#include "GUI/Model/Descriptor/PolyItem.h"
#include "GUI/Model/Detector/ResolutionFunctionItemCatalog.h"
#include "GUI/Model/Detector/ResolutionFunctionCatalog.h"
class IDetector;
class IResolutionFunction2D;
......@@ -33,7 +33,7 @@ public:
void setMasks(MasksSet* item);
PolyItem<ResolutionFunctionItemCatalog>& resolutionFunctionSelection()
PolyItem<ResolutionFunctionCatalog>& resolutionFunctionSelection()
{
return m_resolution_function;
}
......@@ -55,7 +55,7 @@ private:
AxisProperty m_phi_axis;
AxisProperty m_alpha_axis;
PolyItem<ResolutionFunctionItemCatalog> m_resolution_function;
PolyItem<ResolutionFunctionCatalog> m_resolution_function;
std::unique_ptr<MasksSet> m_masks;
std::unique_ptr<MasksSet> m_prjns; //!< projections
......
......@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/Model/Detector/ResolutionFunctionItemCatalog.cpp
//! @brief Implements class ResolutionFunctionItemCatalog.
//! @file GUI/Model/Detector/ResolutionFunctionCatalog.cpp
//! @brief Implements class ResolutionFunctionCatalog.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
......@@ -12,11 +12,11 @@
//
// ************************************************************************************************
#include "GUI/Model/Detector/ResolutionFunctionItemCatalog.h"
#include "GUI/Model/Detector/ResolutionFunctionCatalog.h"
#include "Base/Util/Assert.h"
#include "GUI/Model/Detector/ResolutionFunctionItems.h"
ResolutionFunctionItem* ResolutionFunctionItemCatalog::create(Type type)
ResolutionFunctionItem* ResolutionFunctionCatalog::create(Type type)
{
switch (type) {
case Type::None:
......@@ -27,12 +27,12 @@ ResolutionFunctionItem* ResolutionFunctionItemCatalog::create(Type type)
ASSERT_NEVER;
}
QVector<ResolutionFunctionItemCatalog::Type> ResolutionFunctionItemCatalog::types()
QVector<ResolutionFunctionCatalog::Type> ResolutionFunctionCatalog::types()
{
return {Type::None, Type::Gaussian};
}
UiInfo ResolutionFunctionItemCatalog::uiInfo(Type type)
UiInfo ResolutionFunctionCatalog::uiInfo(Type type)
{
switch (type) {
case Type::None:
......@@ -43,8 +43,7 @@ UiInfo ResolutionFunctionItemCatalog::uiInfo(Type type)
ASSERT_NEVER;
}
ResolutionFunctionItemCatalog::Type
ResolutionFunctionItemCatalog::type(const ResolutionFunctionItem* item)
ResolutionFunctionCatalog::Type ResolutionFunctionCatalog::type(const ResolutionFunctionItem* item)
{
if (dynamic_cast<const ResolutionFunctionNoneItem*>(item))
return Type::None;
......
......@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/Model/Detector/ResolutionFunctionItemCatalog.h
//! @brief Defines class ResolutionFunctionItemCatalog.
//! @file GUI/Model/Detector/ResolutionFunctionCatalog.h
//! @brief Defines class ResolutionFunctionCatalog.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
......@@ -12,15 +12,15 @@
//
// ************************************************************************************************
#ifndef BORNAGAIN_GUI_MODEL_DETECTOR_RESOLUTIONFUNCTIONITEMCATALOG_H
#define BORNAGAIN_GUI_MODEL_DETECTOR_RESOLUTIONFUNCTIONITEMCATALOG_H
#ifndef BORNAGAIN_GUI_MODEL_DETECTOR_RESOLUTIONFUNCTIONCATALOG_H
#define BORNAGAIN_GUI_MODEL_DETECTOR_RESOLUTIONFUNCTIONCATALOG_H
#include "GUI/Model/Type/UiInfo.h"
#include <QVector>
class ResolutionFunctionItem;
class ResolutionFunctionItemCatalog {
class ResolutionFunctionCatalog {
public:
// used in PolyItem<Catalog>
using BaseType = ResolutionFunctionItem;
......@@ -41,4 +41,4 @@ public:
static Type type(const ResolutionFunctionItem* item);
};
#endif // BORNAGAIN_GUI_MODEL_DETECTOR_RESOLUTIONFUNCTIONITEMCATALOG_H
#endif // BORNAGAIN_GUI_MODEL_DETECTOR_RESOLUTIONFUNCTIONCATALOG_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