File indexing completed on 2024-05-05 04:54:18

0001 /*
0002     SPDX-FileCopyrightText: 2017 Jean-Baptiste Mardelle
0003     SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 */
0005 
0006 #pragma once
0007 
0008 #include "assets/view/assetparameterview.hpp"
0009 #include "definitions.h"
0010 
0011 class QComboBox;
0012 
0013 class TransitionStackView : public AssetParameterView
0014 {
0015     Q_OBJECT
0016 
0017 public:
0018     TransitionStackView(QWidget *parent = nullptr);
0019     void setModel(const std::shared_ptr<AssetParameterModel> &model, QSize frameSize, bool addSpacer = false) override;
0020     void unsetModel();
0021     ObjectId stackOwner() const;
0022     void refreshTracks();
0023 
0024 private Q_SLOTS:
0025     void updateTrack(int newTrack);
0026     void checkCompoTrack();
0027 
0028 Q_SIGNALS:
0029     void seekToTransPos(int pos);
0030 
0031 private:
0032     QComboBox *m_trackBox{nullptr};
0033 };