3 #include "common/common.hpp"
4 #include "editor_interface.hpp"
8 class EntityEditor :
public Gtk::Box,
public PoolEditorInterface {
9 friend class GateEditor;
12 EntityEditor(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &x,
class Entity &e,
class IPool &p);
13 static EntityEditor *create(
class Entity &e,
class IPool &p);
14 void reload()
override;
16 virtual ~EntityEditor(){};
20 Gtk::Entry *name_entry =
nullptr;
21 Gtk::Entry *manufacturer_entry =
nullptr;
22 Gtk::Entry *prefix_entry =
nullptr;
23 class TagEntry *tag_entry =
nullptr;
25 Gtk::ListBox *gates_listbox =
nullptr;
26 Gtk::ToolButton *refresh_button =
nullptr;
27 Gtk::ToolButton *add_button =
nullptr;
28 Gtk::ToolButton *delete_button =
nullptr;
30 Glib::RefPtr<Gtk::SizeGroup> sg_name;
31 Glib::RefPtr<Gtk::SizeGroup> sg_suffix;
32 Glib::RefPtr<Gtk::SizeGroup> sg_swap_group;
33 Glib::RefPtr<Gtk::SizeGroup> sg_unit;
39 void bind_entry(Gtk::Entry *e, std::string &s);