File indexing completed on 2024-10-06 07:29:58

0001 /*
0002     SPDX-FileCopyrightText: 2022 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 "doc/kdenlivedoc.h"
0010 #include "ui_guidecategories_ui.h"
0011 
0012 /** @class GuideCategories
0013     @brief A widget allowing to configure guide categories
0014     @author Jean-Baptiste Mardelle
0015  */
0016 class GuideCategories : public QWidget, public Ui::GuideCategories_UI
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit GuideCategories(KdenliveDoc *doc, QWidget *parent = nullptr);
0021     ~GuideCategories() override;
0022     const QStringList updatedGuides() const;
0023     const QMap<int, int> remapedGuides() const;
0024 
0025 protected:
0026 public Q_SLOTS:
0027 
0028 private:
0029     /** @brief Create a colored guide icon. */
0030     QIcon buildIcon(const QColor &col);
0031     /** @brief The incremental index for newly created categories. */
0032     int m_categoryIndex;
0033     QMap<int, int> m_remapCategories;
0034 
0035 Q_SIGNALS:
0036 };