Horizon
src
pool-mgr
duplicate
duplicate_unit.hpp
1
#pragma once
2
#include <gtkmm.h>
3
#include "util/uuid.hpp"
4
5
namespace
horizon
{
6
class
DuplicateUnitWidget
:
public
Gtk::Box {
7
public
:
8
DuplicateUnitWidget
(
class
Pool
*p,
const
UUID
&unit_uuid,
bool
optional =
false
,
9
class
DuplicateWindow
*w =
nullptr
);
10
UUID
duplicate();
11
UUID
get_uuid()
const
;
12
13
static
std::string insert_filename(
const
std::string &fn,
const
std::string &ins);
14
15
private
:
16
class
Pool
*pool;
17
const
class
Unit
*unit;
18
Gtk::Entry *name_entry =
nullptr
;
19
class
LocationEntry
*location_entry =
nullptr
;
20
Gtk::Grid *grid =
nullptr
;
21
22
class
DuplicateWindow
*win =
nullptr
;
23
};
24
}
// namespace horizon
horizon::DuplicateUnitWidget
Definition:
duplicate_unit.hpp:6
horizon::LocationEntry
Definition:
location_entry.hpp:6
horizon::DuplicateWindow
Definition:
duplicate_window.hpp:7
horizon::Unit
A Unit is the template for a Gate inside of an Entity.
Definition:
unit.hpp:51
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition:
uuid.hpp:16
horizon::Pool
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition:
pool.hpp:18
horizon
Definition:
block.cpp:7
Generated by
1.8.13