24#if defined(Q_OS_LINUX)
27#if defined(Q_OS_MACOS)
51 if (driver ==
"Network") {
60 auto metaObj = obj->metaObject();
61 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
62 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
63 auto configurable = obj->property(
"isconfigurable");
64 if (configurable.isValid()) {
65 return configurable.toBool();
79 if ((driver ==
"Network")
80#
if defined(Q_OS_LINUX)
81 || (driver ==
"SonivoxEAS")
83#
if defined(Q_OS_MACOS)
84 || (driver ==
"DLS Synth")
86 || (driver ==
"FluidSynth")) {
95 auto metaObj = obj->metaObject();
96 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
97 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
98 auto configurable = obj->property(
"isconfigurable");
99 if (configurable.isValid()) {
100 return configurable.toBool();
118 if (driver ==
"Network") {
119 NetworkSettingsDialog dlg(
true, parent);
120 return (dlg.exec() == QDialog::Accepted);
125 if (obj ==
nullptr) {
128 auto metaObj = obj->metaObject();
129 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
130 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
131 auto configurable = obj->property(
"isconfigurable");
132 if (configurable.isValid() && configurable.toBool()) {
134 QMetaObject::invokeMethod(obj,
"configure", Q_RETURN_ARG(
bool, ret), Q_ARG(QWidget*, parent));
154 if (driver ==
"Network") {
155 NetworkSettingsDialog dlg(
false, parent);
156 return (dlg.exec() == QDialog::Accepted);
157 }
else if (driver ==
"FluidSynth") {
158 FluidSettingsDialog dlg(parent);
159 return (dlg.exec() == QDialog::Accepted);
160#if defined(Q_OS_LINUX)
161 }
else if (driver ==
"SonivoxEAS") {
162 SonivoxSettingsDialog dlg(parent);
163 return (dlg.exec() == QDialog::Accepted);
165#if defined(Q_OS_MACOS)
166 }
else if (driver ==
"DLS Synth") {
167 MacSynthSettingsDialog dlg(parent);
168 return (dlg.exec() == QDialog::Accepted);
174 if (obj ==
nullptr) {
177 auto metaObj = obj->metaObject();
178 if ((metaObj->indexOfProperty(
"isconfigurable") != -1) &&
179 (metaObj->indexOfMethod(
"configure(QWidget*)") != -1)) {
180 auto configurable = obj->property(
"isconfigurable");
181 if (configurable.isValid() && configurable.toBool()) {
183 QMetaObject::invokeMethod(obj,
"configure", Q_RETURN_ARG(
bool, ret), Q_ARG(QWidget*, parent));
202 if (driver ==
"FluidSynth") {
203 FluidSettingsDialog dlg(parent);
204 dlg.changeSoundFont(fileName);
205#if defined(Q_OS_MACOS)
206 }
else if (driver ==
"DLS Synth") {
207 MacSynthSettingsDialog dlg(parent);
208 dlg.changeSoundFont(fileName);
219 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.