/* * Copyright 2013, Rene Gollent, rene@gollent.com. * Distributed under the terms of the MIT License. */ #ifndef CONSOLE_OUTPUT_VIEW_H_ #define CONSOLE_OUTPUT_VIEW_H_ #include class BButton; class BCheckBox; class BTextView; class ConsoleOutputView : public BGroupView { public: ConsoleOutputView(); ~ConsoleOutputView(); static ConsoleOutputView* Create(); // throws void ConsoleOutputReceived( int32 fd, const BString& output); virtual void MessageReceived(BMessage* message); virtual void AttachedToWindow(); void LoadSettings(const BMessage& settings); status_t SaveSettings(BMessage& settings); private: void _Init(); private: BCheckBox* fStdoutEnabled; BCheckBox* fStderrEnabled; BTextView* fConsoleOutput; BButton* fClearButton; }; #endif // CONSOLE_OUTPUT_VIEW_H