Horizon
output_window.hpp
1 #pragma once
2 #include <array>
3 #include <gtkmm.h>
4 #include <set>
5 
6 namespace horizon {
7 
8 class OutputWindow : public Gtk::Window {
9 public:
10  OutputWindow(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &x);
11  static OutputWindow *create();
12  void handle_output(const std::string &line, bool err);
13  void clear_all();
14 
15 private:
16  Gtk::TextView *view_stdout = nullptr;
17  Gtk::TextView *view_stderr = nullptr;
18  Gtk::Stack *stack = nullptr;
19 
20  Gtk::TextView *get_view();
21 };
22 } // namespace horizon