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

Revert "ctd, plus some complex fwd decl"

This reverts commit 08dfccce.
parent 91b0df94
No related branches found
No related tags found
1 merge request!1456Restore some Q_OBJECT macros (#516)
Showing
with 33 additions and 34 deletions
......@@ -23,10 +23,12 @@ class IntensityDataItem;
class PlotStatusLabel;
class QCustomPlot;
//! Contains ColorMap for intensity data presentation, and provide control
//! of font size, status string appearance
//! The ColorMapCanvas class contains ColorMap for intensity data presentation, and provide
//! control of font size, status string appearance
class ColorMapCanvas : public QWidget {
Q_OBJECT
public:
explicit ColorMapCanvas(QWidget* parent = nullptr);
......
......@@ -17,14 +17,15 @@
#include "GUI/View/Common/DataAccessWidget.h"
class ColorMapCanvas;
class IntensityDataItem;
class ColorMapCanvas;
class QAction;
//! The IntensityDataCanvas class represents IntensityDataItem as color map,
//! provides standard actions (reset view, save as) for external toolbars and context menus.
class IntensityDataCanvas : public DataAccessWidget {
Q_OBJECT
public:
explicit IntensityDataCanvas(QWidget* parent = nullptr);
......
......@@ -18,7 +18,6 @@
#include "GUI/View/Common/IntensityDataPropertyWidget.h"
#include "GUI/View/Plot2D/IntensityDataCanvas.h"
#include "GUI/View/Plot2D/IntensityDataFFTPresenter.h"
#include <QAction>
#include <QBoxLayout>
#include <QMenu>
......
......@@ -16,17 +16,17 @@
#define BORNAGAIN_GUI_VIEW_PLOT2D_INTENSITYDATAWIDGET_H
#include "GUI/View/Common/DataAccessWidget.h"
#include <QList>
#include <QAction>
class IntensityDataCanvas;
class IntensityDataPropertyWidget;
class IntensityDataFFTPresenter;
class QAction;
//! A common widget to display color map (IntensityDataCanvas) and properties
//! (ItemPropertyWidget) of intensity data item.
class IntensityDataWidget : public DataAccessWidget {
Q_OBJECT
public:
IntensityDataWidget(QWidget* parent = nullptr);
......
......@@ -18,8 +18,8 @@
#include "GUI/View/SampleDesigner/FormLayouter.h"
#include "GUI/View/SampleDesigner/LayerEditorUtils.h"
#include "GUI/View/Tool/GroupBoxCollapser.h"
#include <QAction>
#include <QFormLayout>
#include <QPushButton>
CompoundForm::CompoundForm(QWidget* parent, CompoundItem* compositionItem,
......
......@@ -15,17 +15,16 @@
#ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_COMPOUNDFORM_H
#define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_COMPOUNDFORM_H
#include <QFormLayout>
#include <QGroupBox>
#include <QList>
class SampleEditorController;
class CompoundItem;
class ItemWithParticles;
class QAction;
class QFormLayout;
class SampleEditorController;
//! Form for editing a particle composition
class CompoundForm : public QGroupBox {
Q_OBJECT
public:
CompoundForm(QWidget* parent, CompoundItem* compositionItem, SampleEditorController* ec,
bool allowRemove = true);
......
......@@ -19,13 +19,14 @@
#include <QGroupBox>
#include <memory>
class CoreAndShellItem;
class FormLayouter;
class GroupBoxCollapser;
class CoreAndShellItem;
class SampleEditorController;
//! Form for editing a core/shell particle
class CoreAndShellForm : public QGroupBox {
Q_OBJECT
public:
CoreAndShellForm(QWidget* parent, CoreAndShellItem* item, SampleEditorController* ec,
bool allowRemove = true);
......@@ -43,6 +44,7 @@ private:
void showCoreInRealspace();
void showShellInRealspace();
private:
CoreAndShellItem* m_item;
QAction* m_removeAction = nullptr;
SampleEditorController* m_ec;
......
......@@ -21,7 +21,6 @@
#include "GUI/Support/Util/ActionFactory.h"
#include "GUI/Support/Util/WidgetMoverButton.h"
#include "GUI/View/Numeric/NumWidgetUtils.h"
#include "GUI/View/SampleDesigner/FormLayouter.h"
#include "GUI/View/SampleDesigner/MaterialInplaceForm.h"
#include "GUI/View/SampleDesigner/ParticleLayoutForm.h"
#include "GUI/View/Tool/GroupBoxCollapser.h"
......
......@@ -15,18 +15,16 @@
#ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_LAYERFORM_H
#define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_LAYERFORM_H
#include "GUI/View/SampleDesigner/FormLayouter.h"
#include <QGroupBox>
#include <memory>
class FormLayouter;
class GroupBoxCollapser;
class LayerItem;
class ParticleLayoutItem;
class SampleEditorController;
class WidgetMoverButton;
//! Form for editing a layer
class LayerForm : public QGroupBox {
Q_OBJECT
public:
LayerForm(QWidget* parent, LayerItem* layer, SampleEditorController* ec);
......
......@@ -15,14 +15,15 @@
#ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MATERIALINPLACEFORM_H
#define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MATERIALINPLACEFORM_H
#include <QGridLayout>
#include <QWidget>
class ItemWithMaterial;
class QGridLayout;
class SampleEditorController;
//! Form to select a material and to edit it in-place
class MaterialInplaceForm : public QWidget {
Q_OBJECT
public:
MaterialInplaceForm(QWidget* parent, ItemWithMaterial* item, SampleEditorController* ec);
......
......@@ -22,6 +22,7 @@ class SampleEditorController;
//! Form for editing a particle
class ParticleForm : public QGroupBox {
Q_OBJECT
public:
ParticleForm(QWidget* parent, ParticleItem* item, bool allowAbundance,
SampleEditorController* ec, bool allowRemove = true);
......
......@@ -20,7 +20,6 @@
#include "GUI/Model/Sample/ParticleLayoutItem.h"
#include "GUI/Support/Util/ActionFactory.h"
#include "GUI/View/Numeric/DoubleSpinBox.h"
#include "GUI/View/SampleDesigner/FormLayouter.h"
#include "GUI/View/SampleDesigner/InterferenceForm.h"
#include "GUI/View/SampleDesigner/LayerEditorUtils.h"
#include "GUI/View/SampleDesigner/LayerForm.h"
......
......@@ -19,16 +19,17 @@
#include <QGroupBox>
#include <QList>
class DoubleSpinBox;
class GroupBoxCollapser;
class ItemWithParticles;
class SampleEditorController;
class ParticleLayoutItem;
class LayerForm;
class ItemWithParticles;
class DoubleSpinBox;
class LayerItem;
class ParticleLayoutItem;
class SampleEditorController;
class GroupBoxCollapser;
//! Form for editing a particle layout
class ParticleLayoutForm : public QGroupBox {
Q_OBJECT
public:
ParticleLayoutForm(LayerForm* parent, ParticleLayoutItem* layoutItem,
SampleEditorController* ec);
......
......@@ -19,19 +19,16 @@
#include "GUI/View/Numeric/DoubleSpinBox.h"
#include "GUI/View/SampleDesigner/CompoundForm.h"
#include "GUI/View/SampleDesigner/CoreAndShellForm.h"
#include "GUI/View/SampleDesigner/FormLayouter.h"
#include "GUI/View/SampleDesigner/LayerForm.h"
#include "GUI/View/SampleDesigner/MesocrystalForm.h"
#include "GUI/View/SampleDesigner/ParticleForm.h"
#include "GUI/View/SampleDesigner/ParticleLayoutForm.h"
#include "GUI/View/SampleDesigner/SampleEditorController.h"
#include "GUI/View/Tool/GroupBoxCollapser.h"
#include "GUI/View/Tool/LayoutUtils.h"
#include <QBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QTextEdit>
#include <QVBoxLayout>
namespace {
......
......@@ -15,17 +15,17 @@
#ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLEFORM_H
#define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLEFORM_H
#include <QWidget>
#include <QPushButton>
#include <QVBoxLayout>
class LayerForm;
class LayerItem;
class QPushButton;
class QVBoxLayout;
class SampleEditorController;
class SampleItem;
class SampleEditorController;
class LayerItem;
class LayerForm;
//! Form to present/edit a sample
class SampleForm : public QWidget {
Q_OBJECT
public:
SampleForm(QWidget* parent, SampleItem* sampleItem, SampleEditorController* ec);
......
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