1 /* 2 * Copyright 2004-2012 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Jérôme Duval 7 */ 8 #ifndef _EXPANDER_PREFERENCES_H 9 #define _EXPANDER_PREFERENCES_H 10 11 12 #include <Entry.h> 13 #include <Window.h> 14 15 16 class BButton; 17 class BCheckBox; 18 class BMessage; 19 class BRadioButton; 20 class BTextControl; 21 class DirectoryFilePanel; 22 23 24 class ExpanderPreferences : public BWindow { 25 public: 26 ExpanderPreferences(BMessage* settings); 27 virtual ~ExpanderPreferences(); 28 29 virtual void MessageReceived(BMessage* message); 30 31 private: 32 void _ReadSettings(); 33 void _WriteSettings(); 34 35 BButton* fSelect; 36 BCheckBox* fAutoExpand; 37 BCheckBox* fCloseWindow; 38 BCheckBox* fAutoShow; 39 BCheckBox* fOpenDest; 40 BMessage* fSettings; 41 BRadioButton* fDestUse; 42 BRadioButton* fSameDest; 43 BRadioButton* fLeaveDest; 44 BTextControl* fDestText; 45 DirectoryFilePanel* fUsePanel; 46 entry_ref fRef; 47 }; 48 49 50 #endif // _EXPANDER_PREFERENCES_H 51