1 /* PoorManPreferencesWindow.h 2 * 3 * Philip Harrison 4 * Started: 4/27/2004 5 * Version: 0.1 6 */ 7 8 9 #ifndef POOR_MAN_PREFERENCES_WINDOW_H 10 #define POOR_MAN_PREFERENCES_WINDOW_H 11 12 #include <Window.h> 13 #include <SupportDefs.h> 14 #include <TabView.h> 15 #include <Path.h> 16 #include <FilePanel.h> 17 #include <Button.h> 18 19 #include "PoorManView.h" 20 #include "PoorManSiteView.h" 21 #include "PoorManLoggingView.h" 22 #include "PoorManAdvancedView.h" 23 24 25 26 27 class PoorManPreferencesWindow: public BWindow 28 { 29 private: 30 31 PoorManView * prefView; 32 PoorManView * buttonView; 33 34 // ------------------------------------------------ 35 // Tabs 36 BTabView * prefTabView; 37 BTab * siteTab; 38 BTab * loggingTab; 39 BTab * advancedTab; 40 // Tab Views 41 PoorManSiteView * siteView; 42 PoorManLoggingView * loggingView; 43 PoorManAdvancedView * advancedView; 44 45 // ------------------------------------------------ 46 // Buttons 47 BButton * cancelButton; 48 BButton * doneButton; 49 50 // ------------------------------------------------ 51 // FilePanels 52 BFilePanel * webDirFilePanel; 53 BFilePanel * logFilePanel; 54 55 56 // ------------------------------------------------ 57 // temporary preference variables used to save and 58 // set the application to 59 // site tab 60 char web_directory[B_FILE_NAME_LENGTH]; 61 char index_file_name[64]; 62 bool send_dir; 63 // logging tab 64 bool log_to_console; 65 bool log_to_file; 66 char log_file_name[B_FILE_NAME_LENGTH]; 67 // advanced tab 68 int32 max_connections; 69 public: 70 PoorManPreferencesWindow(BRect frame, char * name); 71 virtual void MessageReceived(BMessage * message); 72 73 void ShowWebDirFilePanel() { if (!webDirFilePanel->IsShowing()) webDirFilePanel->Show(); } 74 void SelectWebDir(BMessage * message); 75 void CreateLogFile(BMessage * message); 76 }; 77 78 #endif 79