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