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

ctd, plus some complex fwd decl

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