280
284
configGeometryMain = readGeometry(xml);
281
285
else if (tag == "theme")
282
286
configTheme = xml.parse1();
283
else if (tag == "fontSize")
284
configFontSize = xml.parseInt();
287
else if (tag == "fontSize") // obsolete
289
else if (tag == "font0")
290
font0.fromString(xml.parse1());
291
else if (tag == "font1")
292
font1.fromString(xml.parse1());
293
else if (tag == "font2")
294
font2.fromString(xml.parse1());
295
else if (tag == "font3")
296
font3.fromString(xml.parse1());
297
else if (tag == "font4")
298
font4.fromString(xml.parse1());
299
else if (tag == "font5")
300
font5.fromString(xml.parse1());
285
301
else if (tag == "activityMode")
286
302
configActivityMode = xml.parseInt();
287
303
else if (tag == "activityColor")
288
304
configActivityColor = readColor(xml);
289
305
else if (tag == "selectedTrackColor")
290
configSelectedTrackColor = readColor(xml);
306
/*configSelectedTrackColor =*/ readColor(xml);
291
307
else if (tag == "extendedMidi")
292
308
extendedMidi = xml.parseInt();
293
309
else if (tag == "midiExportDivision")
312
328
readConfigTransport(xml);
313
329
else if (tag == "bigtime")
314
330
readConfigBigTime(xml);
315
else if (tag == "deviceid")
316
deviceId = xml.parseInt();
317
else if (tag == "syncport")
318
extSyncPort= xml.parseInt();
331
else if (tag == "deviceid") // obsolete
333
else if (tag == "txDeviceId")
334
txDeviceId = xml.parseInt();
335
else if (tag == "rxDeviceId")
336
rxDeviceId = xml.parseInt();
337
else if (tag == "syncport") // obsolete
339
else if (tag == "txSyncPort")
340
txSyncPort= xml.parseInt();
341
else if (tag == "rxSyncPort")
342
rxSyncPort= xml.parseInt();
319
343
else if (tag == "mtctype")
320
344
mtcType= xml.parseInt();
321
345
else if (tag == "extSync")
367
391
division = xml.parseInt();
368
392
else if (tag == "samplerate")
369
393
sampleRate = xml.parseInt();
394
else if (tag == "useAlsa") {
395
useAlsaAudio = xml.parseInt();
396
useJackAudio = !useAlsaAudio;
398
else if (tag == "useJack") {
399
useJackAudio = xml.parseInt();
400
useAlsaAudio = ! useJackAudio;
370
402
else if (tag == "segmentsize")
371
403
segmentSize = xml.parseInt();
372
404
else if (tag == "rtcTicks")
374
406
else if (tag == "minMeter")
375
407
minMeter = xml.parseInt();
376
408
else if (tag == "minSlider")
377
minSlider = xml.parseInt();
409
minSlider = xml.parseDouble();
378
410
else if (tag == "guiRefresh")
379
411
guiRefresh = xml.parseInt();
412
else if (tag == "helpBrowser")
413
helpBrowser = xml.parse1();
414
else if (tag == "audioInput") {
415
QString s = xml.parse1();
417
audioDevice->setInputPort(s);
419
else if (tag == "audioOutput") {
420
QString s = xml.parse1();
422
audioDevice->setOutputPort(s);
380
424
else if (tag == "serialPort")
381
425
readSerialPort(xml);
382
426
else if (tag == "midiTransform")
445
489
xml.intTag(level, "segmentsize", segmentSize);
446
490
if (rtcTicks != 4096)
447
491
xml.intTag(level, "rtcTicks", rtcTicks);
493
xml.intTag(level, "useAlsa", useAlsaAudio);
495
xml.intTag(level, "useJack", useJackAudio);
448
496
if (minMeter != -60)
449
497
xml.intTag(level, "minMeter", minMeter);
450
if (minSlider != -60)
451
xml.intTag(level, "minSlider", minSlider);
498
if (minSlider != -60.0)
499
xml.doubleTag(level, "minSlider", minSlider);
452
500
if (guiRefresh != 20)
453
501
xml.intTag(level, "guiRefresh", guiRefresh);
502
if (helpBrowser != QString("konqueror"))
503
xml.strTag(level, "helpBrowser", helpBrowser);
505
xml.strTag(level, "audioInput", audioDevice->inputPort());
506
xml.strTag(level, "audioOutput", audioDevice->outputPort());
455
508
xml.intTag(level, "extendedMidi", extendedMidi);
456
509
xml.intTag(level, "midiExportDivision", midiDivision);
457
510
xml.intTag(level, "midiInputDevice", midiInputPorts);
462
515
xml.intTag(level, "midiFilterCtrl2", midiFilterCtrl2);
463
516
xml.intTag(level, "midiFilterCtrl3", midiFilterCtrl3);
464
517
xml.intTag(level, "midiFilterCtrl4", midiFilterCtrl4);
465
xml.intTag(level, "deviceid", deviceId);
466
xml.nput(level, "<theme>%s</theme>\n", _currentTheme.data());
467
xml.nput(level, "<fontSize>%d</fontSize>\n", configFontSize);
518
xml.intTag(level, "txDeviceId", txDeviceId);
519
xml.intTag(level, "rxDeviceId", rxDeviceId);
520
xml.nput(level, "<theme>%s</theme>\n", _currentTheme.ascii());
522
xml.strTag(level, "font0", font0.toString());
523
xml.strTag(level, "font1", font1.toString());
524
xml.strTag(level, "font2", font2.toString());
525
xml.strTag(level, "font3", font3.toString());
526
xml.strTag(level, "font4", font4.toString());
527
xml.strTag(level, "font5", font5.toString());
468
529
xml.nput(level, "<activityColor r=\"%d\" g=\"%d\" b=\"%d\"></activityColor>\n",
469
530
arranger->getActivityColor().red(),
470
531
arranger->getActivityColor().green(),
471
532
arranger->getActivityColor().blue());
472
xml.nput(level, "<selectedTrackColor r=\"%d\" g=\"%d\" b=\"%d\"></selectedTrackColor>\n",
533
/* xml.nput(level, "<selectedTrackColor r=\"%d\" g=\"%d\" b=\"%d\"></selectedTrackColor>\n",
473
534
arranger->getSelectedTrackColor().red(),
474
535
arranger->getSelectedTrackColor().green(),
475
536
arranger->getSelectedTrackColor().blue());
476
538
xml.intTag(level, "activityMode", arranger->getActivityMode());
478
xml.intTag(level, "syncport", extSyncPort);
540
xml.intTag(level, "txSyncPort", txSyncPort);
541
xml.intTag(level, "rxSyncPort", rxSyncPort);
479
542
xml.intTag(level, "mtctype", mtcType);
480
543
xml.nput(level, "<mtcoffset>%02d:%02d:%02d:%02d:%02d</mtcoffset>\n",
481
544
mtcOffset.h(), mtcOffset.m(), mtcOffset.s(),
583
646
//---------------------------------------------------------
585
648
MidiFileConfig::MidiFileConfig()
586
: QGroupBox(2, Horizontal, "Config exported Midi Files", 0)
649
: QGroupBox(2, Horizontal, tr("Config exported Midi Files"), 0)
651
setCaption(tr("MusE: Config exported Midi Files"));
589
652
QWidget* w = new QWidget(this);
590
653
QGridLayout* grid = new QGridLayout(w);
591
654
grid->setSpacing(5);