1 |
// qsamplerChannel.h |
// qsamplerChannel.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2019, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
155 |
static QString loadingInstrument(); |
static QString loadingInstrument(); |
156 |
|
|
157 |
// Check whether a given file is an instrument file. |
// Check whether a given file is an instrument file. |
158 |
static bool isInstrumentFile (const QString& sInstrumentFile); |
static bool isDlsInstrumentFile (const QString& sInstrumentFile); |
159 |
|
static bool isSf2InstrumentFile (const QString& sInstrumentFile); |
160 |
|
|
161 |
// Retrieve the available instrument name(s) of an instrument file (.gig). |
// Retrieve the available instrument name(s) of an instrument file (.gig). |
162 |
static QString getInstrumentName (const QString& sInstrumentFile, |
static QString getInstrumentName (const QString& sInstrumentFile, |
206 |
Q_OBJECT |
Q_OBJECT |
207 |
public: |
public: |
208 |
|
|
209 |
ChannelRoutingModel(QObject* pParent = NULL); |
ChannelRoutingModel(QObject* pParent = nullptr); |
210 |
|
|
211 |
// overridden methods from subclass(es) |
// overridden methods from subclass(es) |
212 |
int rowCount(const QModelIndex& parent = QModelIndex()) const; |
int rowCount(const QModelIndex& parent = QModelIndex()) const; |
245 |
|
|
246 |
public: |
public: |
247 |
|
|
248 |
ChannelRoutingDelegate(QObject* pParent = NULL); |
ChannelRoutingDelegate(QObject* pParent = nullptr); |
249 |
|
|
250 |
QWidget* createEditor(QWidget *pParent, |
QWidget* createEditor(QWidget *pParent, |
251 |
const QStyleOptionViewItem& option, const QModelIndex& index) const; |
const QStyleOptionViewItem& option, const QModelIndex& index) const; |