Horizon
Loading...
Searching...
No Matches
symbol_preview.hpp
1#pragma once
2#include <gtkmm.h>
3#include <set>
4#include "common/common.hpp"
5#include "util/uuid.hpp"
6#include "util/pool_goto_provider.hpp"
7
8namespace horizon {
9class SymbolPreview : public Gtk::Box, public PoolGotoProvider {
10public:
11 SymbolPreview(class IPool &pool);
12
13 void load(const UUID &uu);
14
15private:
16 UUID symbol;
17 class IPool &pool;
18 class PreviewCanvas *canvas_symbol = nullptr;
19
20 Gtk::RadioButton *rb_normal = nullptr;
21 Gtk::RadioButton *rb_mirrored = nullptr;
22
23 std::array<Gtk::RadioButton *, 4> rb_angles;
24
25 Gtk::Label *unit_label = nullptr;
26
27 void update(bool fit = false);
28};
29} // namespace horizon
Definition ipool.hpp:15
Definition pool_goto_provider.hpp:7
Definition preview_canvas.hpp:7
Definition symbol_preview.hpp:9
This class encapsulates a UUID and allows it to be uses as a value type.
Definition uuid.hpp:16