Horizon
part_preview.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include <set>
4 #include "common/common.hpp"
5 #include "util/uuid.hpp"
6 #include "preview_base.hpp"
7 #include "generic_combo_box.hpp"
8 
9 
10 namespace horizon {
11 class PartPreview : public Gtk::Box, public PreviewBase {
12 public:
13  PartPreview(class Pool &pool, bool show_goto = true);
14 
15  void load(const class Part *part);
16 
17 private:
18  class Pool &pool;
19  const class Part *part = nullptr;
20  class EntityPreview *entity_preview = nullptr;
21 
22  class PreviewCanvas *canvas_package = nullptr;
23  GenericComboBox<UUID> *combo_package = nullptr;
24 
25  Gtk::Label *label_MPN = nullptr;
26  Gtk::Label *label_manufacturer = nullptr;
27  Gtk::Label *label_value = nullptr;
28  Gtk::Label *label_description = nullptr;
29  Gtk::Label *label_datasheet = nullptr;
30  Gtk::Label *label_entity = nullptr;
31  Gtk::Box *box_orderable_MPNs = nullptr;
32  Gtk::Label *label_orderable_MPNs_title = nullptr;
33 
34  void handle_package_sel();
35 };
36 } // namespace horizon
horizon::EntityPreview
Definition: entity_preview.hpp:11
horizon::PreviewCanvas
Definition: preview_canvas.hpp:5
horizon::PreviewBase
Definition: preview_base.hpp:9
horizon::GenericComboBox
Definition: generic_combo_box.hpp:5
horizon::PartPreview
Definition: part_preview.hpp:11
horizon::Pool
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:21
horizon::Part
Definition: part.hpp:13