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 
8 namespace horizon {
9 class PartPreview : public Gtk::Box, public PreviewBase {
10 public:
11  PartPreview(class Pool &pool, bool show_goto = true);
12 
13  void load(const class Part *part);
14 
15 private:
16  class Pool &pool;
17  const class Part *part = nullptr;
18  class EntityPreview *entity_preview = nullptr;
19 
20  class PreviewCanvas *canvas_package = nullptr;
21  Gtk::ComboBoxText *combo_package = nullptr;
22 
23  Gtk::Label *label_MPN = nullptr;
24  Gtk::Label *label_manufacturer = nullptr;
25  Gtk::Label *label_value = nullptr;
26  Gtk::Label *label_description = nullptr;
27  Gtk::Label *label_datasheet = nullptr;
28  Gtk::Label *label_entity = nullptr;
29 
30  void handle_package_sel();
31 };
32 } // namespace horizon
Definition: preview_canvas.hpp:5
Definition: entity_preview.hpp:9
Definition: part_preview.hpp:9
Definition: part.hpp:13
Definition: preview_base.hpp:9
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:19
Definition: block.cpp:9