Warning, file /multimedia/kdenlive/src/timeline2/view/dialogs/trackdialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2008 Jean-Baptiste Mardelle <jb@kdenlive.org> 0003 0004 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "timeline2/model/timelineitemmodel.hpp" 0010 #include "ui_addtrack_ui.h" 0011 0012 class TrackDialog : public QDialog, public Ui::AddTrack_UI 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 explicit TrackDialog(std::shared_ptr<TimelineItemModel> model, int trackIndex = -1, QWidget *parent = nullptr, bool deleteMode = false, int activeTrack = -1); 0018 /** @brief: returns the selected position in MLT 0019 */ 0020 int selectedTrackPosition() const; 0021 /** @brief: returns the selected track's trackId 0022 */ 0023 int selectedTrackId() const; 0024 0025 /** @brief: returns true if we want to insert an audio track 0026 */ 0027 bool addAudioTrack() const; 0028 /** @brief: returns true if we want to insert an audio record track 0029 */ 0030 bool addRecTrack() const; 0031 /** @brief: returns true if we want to insert an audio and video track 0032 */ 0033 bool addAVTrack() const; 0034 /** @brief: returns the newly created track name 0035 */ 0036 const QString trackName() const; 0037 /** @brief: returns all the selected ids 0038 */ 0039 QList<int> toDeleteTrackIds(); 0040 /** @brief: returns the number of tracks to be inserted 0041 */ 0042 int tracksCount() const; 0043 0044 private: 0045 int m_trackIndex; 0046 std::shared_ptr<TimelineItemModel> m_model; 0047 bool m_deleteMode; 0048 int m_activeTrack; 0049 QMap<int, int> m_positionByIndex; 0050 QMap<QString,int> m_idByTrackname; 0051 0052 private Q_SLOTS: 0053 /** @brief: Fill track list combo 0054 */ 0055 void buildCombo(); 0056 };