xref: /haiku/src/preferences/media/MidiSettingsView.h (revision aa3083e086e5a929c061c72983e09d916c548a38)
1 /*
2  * Copyright 2014-2016, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef MIDIVIEW_H_
7 #define MIDIVIEW_H_
8 
9 
10 #include "MediaViews.h"
11 
12 class BButton;
13 class BListView;
14 class BString;
15 class BStringView;
16 
17 class MidiSettingsView : public SettingsView {
18 public:
19 					MidiSettingsView();
20 
21 	virtual void	AttachedToWindow();
22 	virtual void	DetachedFromWindow();
23 	virtual void	MessageReceived(BMessage* message);
24 
25 private:
26 	void 			_RetrieveSoundFontList();
27 	void 			_LoadSettings();
28 	void 			_SaveSettings();
29 	void 			_WatchFolders();
30 	void			_SelectActiveSoundFont();
31 	BString			_SelectedSoundFont() const;
32 	void			_UpdateSoundFontStatus();
33 
34 	BListView*		fListView;
35 	BString*		fActiveSoundFont;
36 	BStringView*	fSoundFontStatus;
37 };
38 
39 #endif /* MIDIVIEW_H_ */
40