mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-09 05:27:57 +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,14 +1,17 @@
|
||||
#include "SoundMacroEditor.hpp"
|
||||
#include "MainWindow.hpp"
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QGridLayout>
|
||||
#include <QLayoutItem>
|
||||
#include <QLineEdit>
|
||||
#include <QPainter>
|
||||
#include <QPropertyAnimation>
|
||||
#include <QGridLayout>
|
||||
#include <QLineEdit>
|
||||
#include <QSplitter>
|
||||
#include <QScrollArea>
|
||||
#include <QScrollBar>
|
||||
#include <QApplication>
|
||||
#include <QCheckBox>
|
||||
#include <QSplitter>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "MainWindow.hpp"
|
||||
|
||||
TargetButton::TargetButton(QWidget* parent) : QPushButton(parent) {
|
||||
QIcon targetIcon(QStringLiteral(":/icons/IconSoundMacroTarget.svg"));
|
||||
@@ -267,6 +270,8 @@ CommandWidget::CommandWidget(QWidget* parent, amuse::SoundMacro::ICmd* cmd, Soun
|
||||
CommandWidget::CommandWidget(QWidget* parent, amuse::SoundMacro::CmdOp op, SoundMacroListing* listing)
|
||||
: CommandWidget(parent, nullptr, op, listing) {}
|
||||
|
||||
CommandWidget::~CommandWidget() = default;
|
||||
|
||||
class ValChangedUndoCommand : public EditorUndoCommand {
|
||||
amuse::SoundMacro::ICmd* m_cmd;
|
||||
const amuse::SoundMacro::CmdIntrospection::Field& m_field;
|
||||
@@ -500,6 +505,8 @@ CommandWidgetContainer::CommandWidgetContainer(QWidget* parent, _Args&&... args)
|
||||
setLayout(outerLayout);
|
||||
}
|
||||
|
||||
CommandWidgetContainer::~CommandWidgetContainer() = default;
|
||||
|
||||
void SoundMacroListing::startAutoscroll(QWidget* source, QMouseEvent* event, int delta) {
|
||||
if (m_autoscrollTimer == -1)
|
||||
m_autoscrollTimer = startTimer(50);
|
||||
@@ -781,6 +788,8 @@ SoundMacroListing::SoundMacroListing(QWidget* parent) : QWidget(parent), m_layou
|
||||
reindex();
|
||||
}
|
||||
|
||||
SoundMacroListing::~SoundMacroListing() = default;
|
||||
|
||||
CatalogueItem::CatalogueItem(amuse::SoundMacro::CmdOp op, const QString& name, const QString& doc, QWidget* parent)
|
||||
: QWidget(parent), m_op(op), m_label(name) {
|
||||
QHBoxLayout* layout = new QHBoxLayout;
|
||||
@@ -809,6 +818,8 @@ CatalogueItem::CatalogueItem(const CatalogueItem& other, QWidget* parent) : QWid
|
||||
setLayout(layout);
|
||||
}
|
||||
|
||||
CatalogueItem::~CatalogueItem() = default;
|
||||
|
||||
static const char* CategoryStrings[] = {
|
||||
QT_TRANSLATE_NOOP("SoundMacroCatalogue", "Control"), QT_TRANSLATE_NOOP("SoundMacroCatalogue", "Pitch"),
|
||||
QT_TRANSLATE_NOOP("SoundMacroCatalogue", "Sample"), QT_TRANSLATE_NOOP("SoundMacroCatalogue", "Setup"),
|
||||
@@ -1045,3 +1056,5 @@ SoundMacroEditor::SoundMacroEditor(QWidget* parent)
|
||||
layout->addWidget(m_splitter);
|
||||
setLayout(layout);
|
||||
}
|
||||
|
||||
SoundMacroEditor::~SoundMacroEditor() = default;
|
||||
|
||||
Reference in New Issue
Block a user