Horizon
Loading...
Searching...
No Matches
src
widgets
pin_names_editor.hpp
1
#pragma once
2
#include <gtkmm.h>
3
#include "pool/unit.hpp"
4
#include "util/changeable.hpp"
5
6
namespace
horizon {
7
class
PinNamesEditor
:
public
Gtk::MenuButton,
public
Changeable
{
8
public
:
9
using
PinNames = std::map<UUID, Pin::AlternateName>;
10
PinNamesEditor
(PinNames &names);
11
void
reload();
12
13
private
:
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
horizon::Changeable
Definition
changeable.hpp:5
horizon::PinNameEditor
Definition
pin_names_editor.cpp:7
horizon::PinNamesEditor
Definition
pin_names_editor.hpp:7
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition
uuid.hpp:16
Generated by
1.9.8