//============================================================================== ApplicationSettingsWindow::ApplicationSettingsWindow (OwlControlSettings& settings, AudioDeviceManager& deviceManager) : theSettings(settings) { //[Constructor_pre] You can add your own custom stuff here.. //[/Constructor_pre] addAndMakeVisible (audioSelector = new AudioDeviceSelectorComponent (deviceManager,0,0,0,0,true,true,false,false)); audioSelector->setName ("new component"); addAndMakeVisible (midiDeviceBox = new ComboBox ("new combo box")); midiDeviceBox->setEditableText (false); midiDeviceBox->setJustificationType (Justification::centredLeft); midiDeviceBox->setTextWhenNothingSelected (String()); midiDeviceBox->setTextWhenNoChoicesAvailable (TRANS("(no choices)")); midiDeviceBox->addItem (TRANS("OMNI"), 1); midiDeviceBox->addItem (TRANS("1"), 2); midiDeviceBox->addItem (TRANS("2"), 3); midiDeviceBox->addItem (TRANS("3"), 4); midiDeviceBox->addItem (TRANS("4"), 5); midiDeviceBox->addItem (TRANS("5"), 6); midiDeviceBox->addItem (TRANS("6"), 7); midiDeviceBox->addItem (TRANS("7"), 8); midiDeviceBox->addItem (TRANS("8"), 9); midiDeviceBox->addItem (TRANS("9"), 10); midiDeviceBox->addItem (TRANS("10"), 11); midiDeviceBox->addItem (TRANS("11"), 12); midiDeviceBox->addItem (TRANS("12"), 13); midiDeviceBox->addItem (TRANS("13"), 14); midiDeviceBox->addItem (TRANS("14"), 15); midiDeviceBox->addItem (TRANS("15"), 16); midiDeviceBox->addItem (TRANS("16"), 17); midiDeviceBox->addListener (this); addAndMakeVisible (label = new Label ("new label", TRANS("MIDI Device"))); label->setFont (Font (15.00f, Font::plain)); label->setJustificationType (Justification::centredLeft); label->setEditable (false, false, false); label->setColour (TextEditor::textColourId, Colours::black); label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); //[UserPreSize] //[/UserPreSize] setSize (600, 400); //[Constructor] You can add your own custom stuff here.. PropertySet* properties = ApplicationConfiguration::getApplicationProperties(); deviceManager.setDefaultMidiOutput(properties->getValue("midi-output")); deviceManager.setMidiInputEnabled(properties->getValue("midi-input"), 1); //[/Constructor] }
//============================================================================== ApplicationSettingsWindow::ApplicationSettingsWindow (AudioDeviceManager& deviceManager) { addAndMakeVisible (audioSelector = new AudioDeviceSelectorComponent (deviceManager,0,2,0,2,true,true,false,false)); audioSelector->setName ("new component"); //[UserPreSize] //[/UserPreSize] setSize (600, 400); //[Constructor] You can add your own custom stuff here.. PropertySet* properties = ApplicationConfiguration::getApplicationProperties(); deviceManager.setDefaultMidiOutput(properties->getValue("midi-output")); deviceManager.setMidiInputEnabled(properties->getValue("midi-input"), 1); //[/Constructor] }