Horizon
duplicate_entity.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include "util/uuid.hpp"
4 
5 namespace horizon {
6 class DuplicateEntityWidget : public Gtk::Box {
7 public:
8  DuplicateEntityWidget(class Pool *p, const UUID &entity_uuid, Gtk::Box *ubox, bool optional = false,
9  class DuplicateWindow *w = nullptr);
10 
11  UUID duplicate();
12  UUID get_uuid() const;
13 
14 private:
15  class Pool *pool;
16  const class Entity *entity;
17  Gtk::Entry *name_entry = nullptr;
18  class LocationEntry *location_entry = nullptr;
19  Gtk::Grid *grid = nullptr;
20  Gtk::Box *unit_box = nullptr;
21 
22  class DuplicateWindow *win;
23 };
24 } // namespace horizon
Definition: location_entry.hpp:6
Definition: duplicate_window.hpp:7
Definition: duplicate_entity.hpp:6
Definition: entity.hpp:13
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:18
Definition: block.cpp:7