1 /* 2 * Copyright 2013, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef CONSOLE_OUTPUT_VIEW_H_ 6 #define CONSOLE_OUTPUT_VIEW_H_ 7 8 9 #include <GroupView.h> 10 11 12 class BButton; 13 class BCheckBox; 14 class BTextView; 15 16 17 class ConsoleOutputView : public BGroupView { 18 public: 19 ConsoleOutputView(); 20 ~ConsoleOutputView(); 21 22 static ConsoleOutputView* Create(); 23 // throws 24 25 void ConsoleOutputReceived( 26 int32 fd, const BString& output); 27 28 virtual void MessageReceived(BMessage* message); 29 virtual void AttachedToWindow(); 30 31 void LoadSettings(const BMessage& settings); 32 status_t SaveSettings(BMessage& settings); 33 34 private: 35 void _Init(); 36 37 private: 38 BCheckBox* fStdoutEnabled; 39 BCheckBox* fStderrEnabled; 40 BTextView* fConsoleOutput; 41 BButton* fClearButton; 42 }; 43 44 45 46 #endif // CONSOLE_OUTPUT_VIEW_H 47