3 #include "common/common.hpp"
4 #include "editor_interface.hpp"
8 class UnitEditor :
public Gtk::Box,
public PoolEditorInterface {
9 friend class PinEditor;
12 UnitEditor(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &x,
class Unit &u,
class IPool &p);
13 static UnitEditor *create(
class Unit &u,
class IPool &p);
14 void select(
const ItemSet &items)
override;
16 virtual ~UnitEditor(){};
20 Gtk::Entry *name_entry =
nullptr;
21 Gtk::Entry *manufacturer_entry =
nullptr;
22 Gtk::ListBox *pins_listbox =
nullptr;
23 Gtk::Button *refresh_button =
nullptr;
24 Gtk::Button *add_button =
nullptr;
25 Gtk::Button *delete_button =
nullptr;
26 Gtk::CheckButton *cross_probing_cb =
nullptr;
28 Glib::RefPtr<Gtk::SizeGroup> sg_direction;
29 Glib::RefPtr<Gtk::SizeGroup> sg_name;
30 Glib::RefPtr<Gtk::SizeGroup> sg_names;
35 void handle_activate(
class PinEditor *ed);