Horizon
edit_shape.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include <array>
4 #include <set>
5 #include "common/common.hpp"
6 #include "util/uuid.hpp"
7 namespace horizon {
8 
9 class ShapeDialog : public Gtk::Dialog {
10 public:
11  ShapeDialog(Gtk::Window *parent, class Shape *sh);
12  bool valid = false;
13 
14 
15 private:
16  class Shape *shape = nullptr;
17  Gtk::ComboBoxText *w_form = nullptr;
18  std::vector<std::pair<Gtk::Widget *, Gtk::Widget *>> widgets;
19  Gtk::Grid *grid;
20  void update();
21  class SpinButtonDim *add_dim(const std::string &text, int top);
22 
23  void ok_clicked();
24 };
25 } // namespace horizon
Definition: spin_button_dim.hpp:5
For commonly used Pad shapes.
Definition: shape.hpp:19
Definition: block.cpp:7
Definition: edit_shape.hpp:9