2 * Copyright (c) 2004 Matthijs Hollemans
3 * Copyright (c) 2008-2014 Haiku, Inc. All rights reserved.
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
23 #ifndef _MIDI_PLAYER_WINDOW_H
24 #define _MIDI_PLAYER_WINDOW_H
27 #include <InterfaceKit.h>
28 #include <MidiSynthFile.h>
31 #define SETTINGS_FILE "/boot/home/config/settings/MidiPlayerSettings"
52 class MidiPlayerWindow
: public BWindow
{
55 virtual ~MidiPlayerWindow();
57 virtual bool QuitRequested();
58 virtual void MessageReceived(BMessage
* message
);
59 virtual void FrameMoved(BPoint origin
);
60 virtual void MenusBeginning();
63 typedef BWindow super
;
65 void CreateInputMenu();
66 void CreateReverbMenu();
72 void LoadFile(entry_ref
* ref
);
76 static void _StopHook(int32 arg
);
81 void OnInputChanged(BMessage
* message
);
82 void OnReverb(reverb_mode mode
);
84 void OnDrop(BMessage
* message
);
86 ScopeView
* fScopeView
;
87 BCheckBox
* fShowScopeCheckBox
;
88 BMenuField
* fInputMenuField
;
89 BPopUpMenu
* fInputPopUpMenu
;
90 BMenuItem
* fInputOffMenuItem
;
91 BMenuField
* fReverbMenuField
;
92 BMenuItem
* fReverbNoneMenuItem
;
93 BMenuItem
* fReverbClosetMenuItem
;
94 BMenuItem
* fReverbGarageMenuItem
;
95 BMenuItem
* fReverbIgorMenuItem
;
96 BMenuItem
* fReverbCavern
;
97 BMenuItem
* fReverbDungeon
;
98 BSlider
* fVolumeSlider
;
104 reverb_mode fReverbMode
;
108 BMidiSynthFile fMidiSynthFile
;
109 SynthBridge
* fSynthBridge
;
110 bool fInstrumentLoaded
;
114 #endif // _MIDI_PLAYER_WINDOW_H