6#include <QItemSelectionModel>
8#include <QtQmlIntegration/qqmlintegration.h>
10namespace zrythm::gui::qquick
20 Q_INVOKABLE
static QString toPathString (
const QUrl &url);
21 Q_INVOKABLE
static QUrl localFileToQUrl (
const QString &path);
22 Q_INVOKABLE
static QString pathBasename (
const QString &path);
24 Q_INVOKABLE
static float amplitudeToDbfs (
float amplitude);
25 Q_INVOKABLE
static QStringList splitTextLines (
const QString &text);
26 Q_INVOKABLE
static QStringList removeDuplicates (
const QStringList &list);
27 Q_INVOKABLE
static QString readTextFileContent (
const QString &filePath);
29 Q_INVOKABLE
static QColor saturate (
const QColor &color,
float perc);
30 Q_INVOKABLE
static QColor makeBrighter (
const QColor &color,
float perc);
31 Q_INVOKABLE
static QColor
32 adjustOpacity (
const QColor &color,
float newOpacity);
53 const QColor &baseColor,
54 const QColor &trackColor,
55 const QColor &windowTextColor,
60 Q_INVOKABLE
static QVector<float>
61 getAutomationRegionValues (QObject * automationRegion,
int pixelWidth);
63 Q_INVOKABLE
static bool rectanglesIntersect (QRectF a, QRectF b);
64 Q_INVOKABLE
static bool rectanglesIntersect (QRect a, QRect b);
70 QAbstractItemModel * model,
71 const QList<int> &rows,
78 QAbstractItemModel * model,
static Q_INVOKABLE QItemSelection createRangeSelection(QAbstractItemModel *model, int startRow, int endRow, int startCol=0, int endCol=0)
Helper to create a contiguous block/range selection.
static Q_INVOKABLE QItemSelection createRowSelection(QAbstractItemModel *model, const QList< int > &rows, int column=0)
Helper to create a selection from a list of rows in a single column.
static Q_INVOKABLE QColor getTrackBackground(const QColor &baseColor, const QColor &trackColor, const QColor &windowTextColor, bool isSelected, bool isHovered, bool tint=true)
Computes a track background color with optional track-color tinting.