1 /* PoorManLoggingView.h
8 #ifndef POOR_MAN_LOGGING_VIEW_H
9 #define POOR_MAN_LOGGING_VIEW_H
12 #include <TextControl.h>
17 class PoorManLoggingView
: public BView
{
19 PoorManLoggingView(const char* name
);
21 void SetLogConsoleValue(bool state
)
24 fLogConsole
->SetValue(B_CONTROL_ON
);
26 fLogConsole
->SetValue(B_CONTROL_OFF
);
29 bool LogConsoleValue()
31 return (fLogConsole
->Value() == B_CONTROL_ON
);
34 void SetLogFileValue(bool state
)
37 fLogFile
->SetValue(B_CONTROL_ON
);
39 fLogFile
->SetValue(B_CONTROL_OFF
);
44 return (fLogFile
->Value() == B_CONTROL_ON
);
47 const char* LogFileName()
49 return fLogFileName
->Text();
52 void SetLogFileName(const char* log
)
54 fLogFileName
->SetText(log
);
60 BCheckBox
* fLogConsole
;
63 BTextControl
* fLogFileName
;
64 BButton
* fCreateLogFile
;