Horizon
unit_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 UnitPreview : public Gtk::Box, public PreviewBase {
10 public:
11  UnitPreview(class IPool &pool);
12 
13  void load(const class Unit *unit);
14 
15 private:
16  class IPool &pool;
17  const class Unit *unit = nullptr;
18  class PreviewCanvas *canvas_symbol = nullptr;
19  Gtk::ComboBoxText *combo_symbol = nullptr;
20  Gtk::Button *goto_symbol_button = nullptr;
21 
22  void handle_symbol_sel();
23 };
24 } // namespace horizon
Definition: ipool.hpp:12
Definition: preview_base.hpp:9
Definition: preview_canvas.hpp:7
Definition: unit_preview.hpp:9
A Unit is the template for a Gate inside of an Entity.
Definition: unit.hpp:60