btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / poorman / PoorManSiteView.h
blob87653472191f9e517923417a58ada1b6263b2908
1 /* PoorManView.h
3 * Philip Harrison
4 * Started: 5/07/2004
5 * Version: 0.1
6 */
8 #ifndef POOR_MAN_SITE_VIEW_H
9 #define POOR_MAN_SITE_VIEW_H
11 #include <View.h>
12 #include <TextControl.h>
13 #include <Button.h>
14 #include <CheckBox.h>
17 class PoorManSiteView: public BView {
18 public:
19 PoorManSiteView(const char *name);
21 void SetSendDirValue(bool state)
23 if (state)
24 fSendDir->SetValue(B_CONTROL_ON);
25 else
26 fSendDir->SetValue(B_CONTROL_OFF);
29 bool SendDirValue()
31 return (fSendDir->Value() == B_CONTROL_ON);
34 const char* IndexFileName()
36 return fIndexFileName->Text();
39 void SetIndexFileName(const char* name)
41 fIndexFileName->SetText(name);
44 const char* WebDir()
46 return fWebDir->Text();
49 void SetWebDir(const char* dir)
51 fWebDir->SetText(dir);
54 private:
55 // Site Tab
56 // Web Site Location
57 BTextControl* fWebDir;
58 BTextControl* fIndexFileName;
59 BButton* fSelectWebDir;
61 // Web Site Options
62 BCheckBox* fSendDir;
66 #endif