Horizon
src
widgets
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
Pool
&pool);
12
13
void
load(
const
class
Unit
*unit);
14
15
private
:
16
class
Pool
&pool;
17
const
class
Unit
*unit =
nullptr
;
18
class
PreviewCanvas
*canvas_symbol =
nullptr
;
19
Gtk::ComboBoxText *combo_symbol =
nullptr
;
20
21
void
handle_symbol_sel();
22
};
23
}
// namespace horizon
horizon::PreviewCanvas
Definition:
preview_canvas.hpp:5
horizon::PreviewBase
Definition:
preview_base.hpp:9
horizon::Unit
A Unit is the template for a Gate inside of an Entity.
Definition:
unit.hpp:63
horizon::Pool
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition:
pool.hpp:21
horizon::UnitPreview
Definition:
unit_preview.hpp:9
Generated by
1.8.16