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
25class PoorManPreferencesWindow: public BWindow {
26public:
27							PoorManPreferencesWindow(BRect frame, char* name);
28							~PoorManPreferencesWindow();
29
30	virtual	void			MessageReceived(BMessage* message);
31
32			void			ShowWebDirFilePanel();
33			void			SelectWebDir(BMessage* message);
34			void			CreateLogFile(BMessage* message);
35
36private:
37			PoorManView*	fPrefView;
38			PoorManView*	fButtonView;
39
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;
50
51			// ------------------------------------------------
52			// Buttons
53			BButton*		fCancelButton;
54			BButton*		fDoneButton;
55
56			// ------------------------------------------------
57			// FilePanels
58			BFilePanel*		fWebDirFilePanel;
59			BFilePanel*		fLogFilePanel;
60
61
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;
75};
76
77#endif
78