Horizon
main_window.hpp
1 #pragma once
2 #include "common/common.hpp"
3 #include <gtkmm.h>
4 
5 namespace horizon {
6 
7 class MainWindow : public Gtk::ApplicationWindow {
8 public:
9  MainWindow(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &x);
10  static MainWindow *create();
11  class CanvasGL *canvas = nullptr;
12  Gtk::Label *tool_hint_label = nullptr;
13  Gtk::Label *cursor_label = nullptr;
14  Gtk::Box *left_panel = nullptr;
15  Gtk::Box *grid_box = nullptr;
16  Gtk::Label *grid_mul_label = nullptr;
17  Gtk::Label *selection_label = nullptr;
18  Gtk::Viewport *property_viewport = nullptr;
19  Gtk::ScrolledWindow *property_scrolled_window = nullptr;
20  Gtk::Revealer *property_throttled_revealer = nullptr;
21  Gtk::HeaderBar *header = nullptr;
22  Glib::RefPtr<Gtk::Builder> builder;
23 
24  void tool_bar_set_visible(bool v);
25  void tool_bar_set_tool_name(const std::string &s);
26  void tool_bar_set_tool_tip(const std::string &s);
27  void tool_bar_flash(const std::string &s);
28 
29  // virtual ~MainWindow();
30 private:
31  Gtk::Box *gl_container = nullptr;
32  Gtk::Revealer *tool_bar = nullptr;
33  Gtk::Label *tool_bar_name_label = nullptr;
34  Gtk::Label *tool_bar_tip_label = nullptr;
35  Gtk::Label *tool_bar_flash_label = nullptr;
36  Gtk::Stack *tool_bar_stack = nullptr;
37  sigc::connection tip_timeout_connection;
38  bool tool_bar_queue_close = false;
39 
40  void sc(void);
41  void cm(const horizon::Coordi &cursor_pos);
42 };
43 } // namespace horizon
Definition: main_window.hpp:7
Definition: canvas_gl.hpp:10
Definition: block.cpp:7