Horizon
entity_preview.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include <set>
4 #include "common/common.hpp"
5 #include "util/uuid.hpp"
6 #include "preview_base.hpp"
7 
8 namespace horizon {
9 class EntityPreview : public Gtk::Box, public PreviewBase {
10 public:
11  EntityPreview(class Pool &pool, bool show_goto = true);
12 
13  void load(const class Entity *entity);
14 
15 private:
16  class Pool &pool;
17  const class Entity *entity = nullptr;
18  class PreviewCanvas *canvas_symbol = nullptr;
19  Gtk::ComboBoxText *combo_gate = nullptr;
20  Gtk::ComboBoxText *combo_symbol = nullptr;
21 
22  void handle_gate_sel();
23  void handle_symbol_sel();
24 };
25 } // namespace horizon
Definition: preview_canvas.hpp:5
Definition: entity_preview.hpp:9
Definition: entity.hpp:13
Definition: preview_base.hpp:8
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:18
Definition: block.cpp:7