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

rename class and sources GUI/View/Instrument/GISASInstrumentEditor ->...

rename class and sources GUI/View/Instrument/GISASInstrumentEditor -> GUI/View/Instrument/Scatter2DInstrumentEditor
parent 9f4d80ac
No related branches found
No related tags found
1 merge request!2387unify code for list views
......@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/View/Instrument/GISASInstrumentEditor.cpp
//! @brief Implements class GISASInstrumentEditor.
//! @file GUI/View/Instrument/Scatter2DInstrumentEditor.cpp
//! @brief Implements class Scatter2DInstrumentEditor.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
......@@ -12,7 +12,7 @@
//
// ************************************************************************************************
#include "GUI/View/Instrument/GISASInstrumentEditor.h"
#include "GUI/View/Instrument/Scatter2DInstrumentEditor.h"
#include "Base/Util/Assert.h"
#include "GUI/Model/Device/InstrumentItems.h"
#include "GUI/View/Device/BackgroundForm.h"
......@@ -20,7 +20,7 @@
#include "GUI/View/Device/GISASBeamEditor.h"
#include "GUI/View/Device/PolarizationAnalysisEditor.h"
GISASInstrumentEditor::GISASInstrumentEditor(GISASInstrumentItem* instrument)
Scatter2DInstrumentEditor::Scatter2DInstrumentEditor(GISASInstrumentItem* instrument)
{
ASSERT(instrument);
auto* layout = new QVBoxLayout(this);
......
......@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file GUI/View/Instrument/GISASInstrumentEditor.h
//! @brief Defines class GISASInstrumentEditor.
//! @file GUI/View/Instrument/Scatter2DInstrumentEditor.h
//! @brief Defines class Scatter2DInstrumentEditor.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
......@@ -12,8 +12,8 @@
//
// ************************************************************************************************
#ifndef BORNAGAIN_GUI_VIEW_INSTRUMENT_GISASINSTRUMENTEDITOR_H
#define BORNAGAIN_GUI_VIEW_INSTRUMENT_GISASINSTRUMENTEDITOR_H
#ifndef BORNAGAIN_GUI_VIEW_INSTRUMENT_SCATTER2DINSTRUMENTEDITOR_H
#define BORNAGAIN_GUI_VIEW_INSTRUMENT_SCATTER2DINSTRUMENTEDITOR_H
#include "GUI/View/Widget/IComponentEditor.h"
......@@ -21,10 +21,10 @@ class GISASInstrumentItem;
//! Editor for GISAS instruments, for use in main scroll area of InstrumentView.
class GISASInstrumentEditor : public IComponentEditor {
class Scatter2DInstrumentEditor : public IComponentEditor {
Q_OBJECT
public:
GISASInstrumentEditor(GISASInstrumentItem* instrument);
Scatter2DInstrumentEditor(GISASInstrumentItem* instrument);
};
#endif // BORNAGAIN_GUI_VIEW_INSTRUMENT_GISASINSTRUMENTEDITOR_H
#endif // BORNAGAIN_GUI_VIEW_INSTRUMENT_SCATTER2DINSTRUMENTEDITOR_H
......@@ -18,8 +18,8 @@
#include "GUI/Model/Device/InstrumentsSet.h"
#include "GUI/Model/Project/ProjectDocument.h"
#include "GUI/View/Instrument/DepthprobeInstrumentEditor.h"
#include "GUI/View/Instrument/GISASInstrumentEditor.h"
#include "GUI/View/Instrument/OffspecInstrumentEditor.h"
#include "GUI/View/Instrument/Scatter2DInstrumentEditor.h"
#include "GUI/View/Instrument/SpecularInstrumentEditor.h"
#include "GUI/View/Layout/ApplicationSettings.h"
#include "GUI/View/List/InstrumentsQListView.h"
......@@ -120,7 +120,7 @@ void InstrumentView::createWidgetsForCurrentInstrument()
else if (auto* ii = dynamic_cast<OffspecInstrumentItem*>(currentInstrument))
editor = new OffspecInstrumentEditor(ii);
else if (auto* ii = dynamic_cast<GISASInstrumentItem*>(currentInstrument))
editor = new GISASInstrumentEditor(ii);
editor = new Scatter2DInstrumentEditor(ii);
else if (auto* ii = dynamic_cast<DepthprobeInstrumentItem*>(currentInstrument))
editor = new DepthprobeInstrumentEditor(ii);
else
......
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