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 IPool &pool, bool show_goto = true);
14 
15  void load(const class Part *part);
16 
17 private:
18  class IPool &pool;
19  const bool show_goto;
20  const class Part *part = nullptr;
21  class EntityPreview *entity_preview = nullptr;
22 
23  class PreviewCanvas *canvas_package = nullptr;
24  GenericComboBox<UUID> *combo_package = nullptr;
25 
26  Gtk::Label *label_MPN = nullptr;
27  Gtk::Label *label_manufacturer = nullptr;
28  Gtk::Label *label_value = nullptr;
29  Gtk::Label *label_description = nullptr;
30  Gtk::Label *label_datasheet = nullptr;
31  Gtk::Label *label_entity = nullptr;
32  Gtk::Box *box_orderable_MPNs = nullptr;
33  Gtk::Label *label_orderable_MPNs_title = nullptr;
34 
35  void handle_package_sel();
36 };
37 } // namespace horizon
horizon::EntityPreview
Definition: entity_preview.hpp:11
horizon::PreviewCanvas
Definition: preview_canvas.hpp:7
horizon::PreviewBase
Definition: preview_base.hpp:9
horizon::IPool
Definition: ipool.hpp:12
horizon::GenericComboBox
Definition: generic_combo_box.hpp:5
horizon::PartPreview
Definition: part_preview.hpp:11
horizon::Part
Definition: part.hpp:14