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:
@@ -115,6 +115,8 @@ public:
|
||||
|
||||
SFXObjectDelegate::SFXObjectDelegate(QObject* parent) : BaseObjectDelegate(parent) {}
|
||||
|
||||
SFXObjectDelegate::~SFXObjectDelegate() = default;
|
||||
|
||||
ProjectModel::INode* SFXObjectDelegate::getNode(const QAbstractItemModel* __model, const QModelIndex& index) const {
|
||||
const SFXModel* model = static_cast<const SFXModel*>(__model);
|
||||
auto entry = model->m_sorted[index.row()];
|
||||
@@ -458,6 +460,8 @@ std::tuple<amuse::SFXId, std::string, amuse::SFXGroupIndex::SFXEntry> SFXModel::
|
||||
|
||||
SFXModel::SFXModel(QObject* parent) : QAbstractTableModel(parent) {}
|
||||
|
||||
SFXModel::~SFXModel() = default;
|
||||
|
||||
void SFXTableView::deleteSelection() {
|
||||
QModelIndexList list = selectionModel()->selectedRows();
|
||||
if (list.isEmpty())
|
||||
@@ -507,6 +511,8 @@ SFXTableView::SFXTableView(QWidget* parent) : QTableView(parent) {
|
||||
setItemDelegateForColumn(6, &m_127Delegate);
|
||||
}
|
||||
|
||||
SFXTableView::~SFXTableView() = default;
|
||||
|
||||
void SFXPlayerWidget::clicked() {
|
||||
if (!m_vox) {
|
||||
m_vox = g_MainWindow->startSFX(m_groupId, m_sfxId);
|
||||
@@ -634,3 +640,5 @@ SoundGroupEditor::SoundGroupEditor(QWidget* parent)
|
||||
m_addRemoveButtons.removeAction()->setToolTip(tr("Remove selected SFX entries"));
|
||||
connect(m_addRemoveButtons.removeAction(), &QAction::triggered, this, &SoundGroupEditor::itemDeleteAction);
|
||||
}
|
||||
|
||||
SoundGroupEditor::~SoundGroupEditor() = default;
|
||||
|
||||
Reference in New Issue
Block a user