Horizon
gate_editor.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include "common/common.hpp"
4 #include <set>
5 #include "util/uuid_ptr.hpp"
6 #include "pool/gate.hpp"
7 
8 
9 namespace horizon {
10 class GateEditorWizard : public Gtk::Box {
11  friend class PartWizard;
12 
13 public:
14  GateEditorWizard(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &x, Gate *g, class PartWizard *pa);
15  static GateEditorWizard *create(Gate *g, PartWizard *pa);
16  void load();
17 
18  virtual ~GateEditorWizard()
19  {
20  }
21 
22 private:
23  PartWizard *parent;
24  uuid_ptr<Gate> gate;
25 
26  Gtk::Label *gate_label = nullptr;
27  Gtk::Button *edit_symbol_button = nullptr;
28  class LocationEntry *unit_location_entry = nullptr;
29  class LocationEntry *symbol_location_entry = nullptr;
30  Gtk::Entry *unit_name_entry = nullptr;
31  Gtk::Button *unit_name_from_mpn_button = nullptr;
32  Gtk::Entry *suffix_entry = nullptr;
33 
34  std::string get_suffixed_filename_from_part();
35 };
36 } // namespace horizon
Definition: location_entry.hpp:6
Definition: gate_editor.hpp:10
Definition: gate.hpp:14
Definition: part_wizard.hpp:16
Definition: uuid_ptr.hpp:9
Definition: block.cpp:9