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