Horizon
Loading...
Searching...
No Matches
pin_names_editor.hpp
1#pragma once
2#include <gtkmm.h>
3#include "pool/unit.hpp"
4#include "util/changeable.hpp"
5
6namespace horizon {
7class PinNamesEditor : public Gtk::MenuButton, public Changeable {
8public:
9 using PinNames = std::map<UUID, Pin::AlternateName>;
10 PinNamesEditor(PinNames &names);
11 void reload();
12
13private:
14 PinNames &names;
15 void update_label();
16 Gtk::Label *label = nullptr;
17 Gtk::Popover *popover = nullptr;
18 Gtk::Box *box = nullptr;
19
20 class PinNameEditor *create_name_editor(const UUID &uu);
21 void add_name();
22};
23} // namespace horizon
Definition changeable.hpp:5
Definition pin_names_editor.cpp:7
Definition pin_names_editor.hpp:7
This class encapsulates a UUID and allows it to be uses as a value type.
Definition uuid.hpp:16