1/* 2 * Copyright 2014-2017, 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 <String.h> 11 12#include "MediaViews.h" 13 14class BButton; 15class BListView; 16class BStringView; 17 18class MidiSettingsView : public SettingsView { 19public: 20 MidiSettingsView(); 21 22 virtual void AttachedToWindow(); 23 virtual void DetachedFromWindow(); 24 virtual void MessageReceived(BMessage* message); 25 26private: 27 void _RetrieveSoundFontList(); 28 void _LoadSettings(); 29 void _SaveSettings(); 30 void _WatchFolders(); 31 void _SelectActiveSoundFont(); 32 BString _SelectedSoundFont() const; 33 void _UpdateSoundFontStatus(); 34 35 BListView* fListView; 36 BString fActiveSoundFont; 37 BStringView* fSoundFontStatus; 38}; 39 40#endif /* MIDIVIEW_H_ */ 41