Horizon
pad_editor.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include "common/common.hpp"
4 #include <set>
5 #include "widgets/pin_names_editor.hpp"
6 
7 
8 namespace horizon {
9 class PadEditor : public Gtk::Box {
10  friend class PartWizard;
11 
12 public:
13  PadEditor(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &x, const class Pad *p, class PartWizard *pa);
14  static PadEditor *create(const class Pad *p, PartWizard *pa);
15  std::string get_gate_name();
16  const std::set<const Pad *> get_pads() const
17  {
18  return pads;
19  }
20 
21 private:
22  class PartWizard *parent;
23  std::set<const Pad *> pads;
24  std::vector<std::string> names;
25  void update_names();
26 
27  PinNamesEditor::PinNames pin_names;
28 
29  Gtk::Label *pad_names_label = nullptr;
30  Gtk::Entry *pin_name_entry = nullptr;
31  PinNamesEditor *pin_names_editor = nullptr;
32  Gtk::ComboBoxText *dir_combo = nullptr;
33  Gtk::SpinButton *swap_group_spin_button = nullptr;
34  Gtk::ComboBox *combo_gate = nullptr;
35  Gtk::Entry *combo_gate_entry = nullptr;
36 };
37 } // namespace horizon
Definition: pad_editor.hpp:9
Definition: pad.hpp:12
Definition: part_wizard.hpp:16
Definition: pin_names_editor.hpp:7