Horizon
src
widgets
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
#include "generic_combo_box.hpp"
8
9
10
namespace
horizon {
11
class
EntityPreview
:
public
Gtk::Box,
public
PreviewBase
{
12
public
:
13
EntityPreview
(
class
Pool
&pool,
bool
show_goto =
true
);
14
15
void
load(
const
class
Entity
*entity);
16
void
load(
const
class
Part
*part);
17
void
clear();
18
19
private
:
20
void
load(
const
class
Entity
*entity,
const
class
Part
*part);
21
class
Pool
&pool;
22
const
class
Entity
*entity =
nullptr
;
23
const
class
Part
*part =
nullptr
;
24
class
PreviewCanvas
*canvas_symbol =
nullptr
;
25
GenericComboBox<UUID>
*combo_gate =
nullptr
;
26
GenericComboBox<UUID>
*combo_symbol =
nullptr
;
27
28
void
handle_gate_sel();
29
void
handle_symbol_sel();
30
};
31
}
// namespace horizon
horizon::EntityPreview
Definition:
entity_preview.hpp:11
horizon::PreviewCanvas
Definition:
preview_canvas.hpp:5
horizon::PreviewBase
Definition:
preview_base.hpp:9
horizon::Entity
Definition:
entity.hpp:13
horizon::GenericComboBox
Definition:
generic_combo_box.hpp:5
horizon::Pool
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition:
pool.hpp:21
horizon::Part
Definition:
part.hpp:13
Generated by
1.8.16