mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-18 01:15:41 +00:00
Editor: Include headers where necessary
Avoids propagating dependencies through indirect inclusions, and also gets rid of some header dependencies entirely.
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "EditorWidget.hpp"
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include <QFrame>
|
||||
#include <QSpinBox>
|
||||
#include <QDoubleSpinBox>
|
||||
#include <QCheckBox>
|
||||
#include <QLabel>
|
||||
#include <QStaticText>
|
||||
|
||||
#include "EditorWidget.hpp"
|
||||
#include "ProjectModel.hpp"
|
||||
|
||||
#include <amuse/Common.hpp>
|
||||
|
||||
class ADSREditor;
|
||||
|
||||
class QCheckBox;
|
||||
class QDoubleSpinBox;
|
||||
class QLabel;
|
||||
|
||||
class ADSRView : public QWidget {
|
||||
Q_OBJECT
|
||||
friend class ADSRControls;
|
||||
@@ -23,6 +30,8 @@ class ADSRView : public QWidget {
|
||||
|
||||
public:
|
||||
explicit ADSRView(QWidget* parent = Q_NULLPTR);
|
||||
~ADSRView() override;
|
||||
|
||||
void loadData(ProjectModel::ADSRNode* node);
|
||||
void unloadData();
|
||||
ProjectModel::INode* currentNode() const;
|
||||
@@ -53,8 +62,11 @@ class ADSRControls : public QFrame {
|
||||
|
||||
public:
|
||||
explicit ADSRControls(QWidget* parent = Q_NULLPTR);
|
||||
~ADSRControls() override;
|
||||
|
||||
void loadData();
|
||||
void unloadData();
|
||||
|
||||
public slots:
|
||||
void attackChanged(double val);
|
||||
void decayChanged(double val);
|
||||
@@ -74,6 +86,8 @@ class ADSREditor : public EditorWidget {
|
||||
|
||||
public:
|
||||
explicit ADSREditor(QWidget* parent = Q_NULLPTR);
|
||||
~ADSREditor() override;
|
||||
|
||||
bool loadData(ProjectModel::ADSRNode* node);
|
||||
void unloadData() override;
|
||||
ProjectModel::INode* currentNode() const override;
|
||||
|
||||
Reference in New Issue
Block a user