23#if defined(ENABLE_FLUIDSYNTH)
26#if defined(ENABLE_NETWORK)
29#if defined(ENABLE_SONIVOX)
32#if defined(Q_OS_MACOS)
56 if (driver ==
"Network") {
65 auto metaObj = obj->metaObject();
66 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
67 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
68 auto configurable = obj->property(
"isconfigurable");
69 if (configurable.isValid()) {
70 return configurable.toBool();
84 if ((driver ==
"Network")
85#
if defined(ENABLE_SONIVOX)
86 || (driver ==
"SonivoxEAS")
88#
if defined(Q_OS_MACOS)
89 || (driver ==
"DLS Synth")
91#
if defined(ENABLE_FLUIDSYNTH)
92 || (driver ==
"FluidSynth")
100 if (obj ==
nullptr) {
103 auto metaObj = obj->metaObject();
104 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
105 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
106 auto configurable = obj->property(
"isconfigurable");
107 if (configurable.isValid()) {
108 return configurable.toBool();
126#if defined(ENABLE_NETWORK)
127 if (driver ==
"Network") {
128 NetworkSettingsDialog dlg(
true, parent);
129 return (dlg.exec() == QDialog::Accepted);
135 if (obj ==
nullptr) {
138 auto metaObj = obj->metaObject();
139 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
140 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
141 auto configurable = obj->property(
"isconfigurable");
142 if (configurable.isValid() && configurable.toBool()) {
144 QMetaObject::invokeMethod(obj,
"configure", Q_RETURN_ARG(
bool, ret), Q_ARG(QWidget*, parent));
164#if defined(ENABLE_NETWORK)
165 if (driver ==
"Network") {
166 NetworkSettingsDialog dlg(
false, parent);
167 return (dlg.exec() == QDialog::Accepted);
170#if defined(ENABLE_FLUIDSYNTH)
171 if (driver ==
"FluidSynth") {
172 FluidSettingsDialog dlg(parent);
173 return (dlg.exec() == QDialog::Accepted);
176#if defined(ENABLE_SONIVOX)
177 if (driver ==
"SonivoxEAS") {
178 SonivoxSettingsDialog dlg(parent);
179 return (dlg.exec() == QDialog::Accepted);
182#if defined(Q_OS_MACOS)
183 if (driver ==
"DLS Synth") {
184 MacSynthSettingsDialog dlg(parent);
185 return (dlg.exec() == QDialog::Accepted);
191 if (obj ==
nullptr) {
194 auto metaObj = obj->metaObject();
195 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
196 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
197 auto configurable = obj->property(
"isconfigurable");
198 if (configurable.isValid() && configurable.toBool()) {
200 QMetaObject::invokeMethod(obj,
"configure", Q_RETURN_ARG(
bool, ret), Q_ARG(QWidget*, parent));
219#if defined(ENABLE_FLUIDSYNTH)
220 if (driver ==
"FluidSynth") {
221 FluidSettingsDialog dlg(parent);
222 dlg.changeSoundFont(fileName);
225#if defined(ENABLE_SONIVOX)
226 if (driver ==
"SonivoxEAS") {
227 SonivoxSettingsDialog dlg(parent);
228 dlg.changeSoundFont(fileName);
231#if defined(Q_OS_MACOS)
232 if (driver ==
"DLS Synth") {
233 MacSynthSettingsDialog dlg(parent);
234 dlg.changeSoundFont(fileName);
245 return QStringLiteral(QT_STRINGIFY(VERSION));
BackendManager class declaration.
The BackendManager class manages lists of dynamic and static backends for applications based on drums...
MIDIOutput * outputBackendByName(const QString name)
outputBackendByName
MIDIInput * inputBackendByName(const QString name)
inputBackendByName
Functions providing configuration dialogs.
Declaration of the Fluidsynth configuration dialog.
Declaration of the Mac Synth configuration dialog.
Declaration of the Network configuration dialog.
Definition of the Sonivox Synth configuration dialog.