xref: /haiku/src/apps/poorman/PoorManSiteView.h (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 /* PoorManView.h
2  *
3  *	Philip Harrison
4  *	Started: 5/07/2004
5  *	Version: 0.1
6  */
7 
8 #ifndef POOR_MAN_SITE_VIEW_H
9 #define POOR_MAN_SITE_VIEW_H
10 
11 #include <View.h>
12 #include <TextControl.h>
13 #include <Button.h>
14 #include <CheckBox.h>
15 
16 
17 class PoorManSiteView: public BView
18 {
19 public:
20 				PoorManSiteView(BRect, const char *name);
21 		void	SetSendDirValue(bool state) {if (state) sendDir->SetValue(B_CONTROL_ON);
22 												else sendDir->SetValue(B_CONTROL_OFF); }
23 		bool	SendDirValue()	{ return (sendDir->Value() == B_CONTROL_ON) ? true : false; }
24 const	char *	IndexFileName()	{ return indexFileName->Text(); }
25 		void	SetIndexFileName(const char * name) { indexFileName->SetText(name); }
26 const	char *	WebDir() 		{ return webDir->Text(); }
27 		void	SetWebDir(const char * dir) { webDir->SetText(dir); }
28 private:
29 		// Site Tab
30 			// Web Site Location
31 			BTextControl	*	webDir;
32 			BTextControl	*	indexFileName;
33 			BButton			*	selectWebDir;
34 
35 			// Web Site Options
36 			BCheckBox		*	sendDir;
37 
38 };
39 
40 #endif
41