Debian Codegraph @

src/pool-prj-mgr/pool-mgr/kicad_symbol_import_wizard/gate_editor.hpp

raw
1 #pragma once
2 #include <gtkmm.h>
3 #include "common/common.hpp"
4 #include <set>
5 #include "util/uuid.hpp"
6 #include "pool/entity.hpp"
7
8 namespace horizon {
9 class GateEditorImportWizard : public Gtk::Box {
10 friend class KiCadSymbolImportWizard;
11
12 public:
13 GateEditorImportWizard(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &x, const UUID &g,
14 const UUID &unit_uu, class KiCadSymbolImportWizard &pa);
15 static GateEditorImportWizard *create(const UUID &g, const UUID &unit_uu, KiCadSymbolImportWizard &pa);
16 void handle_edit_symbol();
17 void handle_edit_unit();
18
19
20 private:
21 KiCadSymbolImportWizard &parent;
22 const UUID gate_uu;
23 const UUID unit_uu;
24
25 Gtk::Label *gate_label = nullptr;
26 Gtk::Button *edit_unit_button = nullptr;
27 Gtk::Button *edit_symbol_button = nullptr;
28 class LocationEntry *unit_location_entry = nullptr;
29 class LocationEntry *symbol_location_entry = nullptr;
30 std::string get_suffixed_filename_from_entity();
31 };
32 } // namespace horizon