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 17class PoorManSiteView: public BView { 18public: 19 PoorManSiteView(const char *name); 20 21 void SetSendDirValue(bool state) 22 { 23 if (state) 24 fSendDir->SetValue(B_CONTROL_ON); 25 else 26 fSendDir->SetValue(B_CONTROL_OFF); 27 } 28 29 bool SendDirValue() 30 { 31 return (fSendDir->Value() == B_CONTROL_ON); 32 } 33 34 const char* IndexFileName() 35 { 36 return fIndexFileName->Text(); 37 } 38 39 void SetIndexFileName(const char* name) 40 { 41 fIndexFileName->SetText(name); 42 } 43 44 const char* WebDir() 45 { 46 return fWebDir->Text(); 47 } 48 49 void SetWebDir(const char* dir) 50 { 51 fWebDir->SetText(dir); 52 } 53 54private: 55 // Site Tab 56 // Web Site Location 57 BTextControl* fWebDir; 58 BTextControl* fIndexFileName; 59 BButton* fSelectWebDir; 60 61 // Web Site Options 62 BCheckBox* fSendDir; 63 64}; 65 66#endif 67