btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / poorman / PoorManPreferencesWindow.h
blob7758799dda9be5433d26254264436a91f1962207
1 /* PoorManPreferencesWindow.h
3 * Philip Harrison
4 * Started: 4/27/2004
5 * Version: 0.1
6 */
9 #ifndef POOR_MAN_PREFERENCES_WINDOW_H
10 #define POOR_MAN_PREFERENCES_WINDOW_H
12 #include <Window.h>
13 #include <SupportDefs.h>
14 #include <TabView.h>
15 #include <Path.h>
16 #include <FilePanel.h>
17 #include <Button.h>
19 #include "PoorManView.h"
20 #include "PoorManSiteView.h"
21 #include "PoorManLoggingView.h"
22 #include "PoorManAdvancedView.h"
25 class PoorManPreferencesWindow: public BWindow {
26 public:
27 PoorManPreferencesWindow(BRect frame, char* name);
28 ~PoorManPreferencesWindow();
30 virtual void MessageReceived(BMessage* message);
32 void ShowWebDirFilePanel();
33 void SelectWebDir(BMessage* message);
34 void CreateLogFile(BMessage* message);
36 private:
37 PoorManView* fPrefView;
38 PoorManView* fButtonView;
40 // ------------------------------------------------
41 // Tabs
42 BTabView* fPrefTabView;
43 BTab* fSiteTab;
44 BTab* fLoggingTab;
45 BTab* fAdvancedTab;
46 // Tab Views
47 PoorManSiteView* fSiteView;
48 PoorManLoggingView* fLoggingView;
49 PoorManAdvancedView* fAdvancedView;
51 // ------------------------------------------------
52 // Buttons
53 BButton* fCancelButton;
54 BButton* fDoneButton;
56 // ------------------------------------------------
57 // FilePanels
58 BFilePanel* fWebDirFilePanel;
59 BFilePanel* fLogFilePanel;
62 // ------------------------------------------------
63 // temporary preference variables used to save and
64 // set the application to
65 // site tab
66 char fWebDirectory[B_FILE_NAME_LENGTH];
67 char fIndexFileName[64];
68 bool fSendDir;
69 // logging tab
70 bool flogToConsole;
71 bool fLogToFile;
72 char fLogFileName[B_FILE_NAME_LENGTH];
73 // advanced tab
74 int32 fMaxConnections;
77 #endif