2 * Copyright 2013-2014, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
5 #ifndef CONSOLE_OUTPUT_VIEW_H_
6 #define CONSOLE_OUTPUT_VIEW_H_
10 #include <ObjectList.h>
18 class ConsoleOutputView
: public BGroupView
{
23 static ConsoleOutputView
* Create();
26 void ConsoleOutputReceived(
27 int32 fd
, const BString
& output
);
29 virtual void MessageReceived(BMessage
* message
);
30 virtual void AttachedToWindow();
32 void LoadSettings(const BMessage
& settings
);
33 status_t
SaveSettings(BMessage
& settings
);
37 typedef BObjectList
<OutputInfo
> OutputInfoList
;
41 static int32
_OutputWorker(void* arg
);
42 void _HandleConsoleOutput(OutputInfo
* info
);
45 BCheckBox
* fStdoutEnabled
;
46 BCheckBox
* fStderrEnabled
;
47 BTextView
* fConsoleOutput
;
48 BButton
* fClearButton
;
49 OutputInfoList
* fPendingOutput
;
51 thread_id fOutputWorker
;
56 #endif // CONSOLE_OUTPUT_VIEW_H