Horizon
parametric.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include <map>
4 #include <string>
5 #include "pool/pool_parametric.hpp"
6 #include "util/changeable.hpp"
7 
8 namespace horizon {
9 
10 
11 class ParametricEditor : public Gtk::Grid, public Changeable {
12 public:
13  ParametricEditor(PoolParametric &p, const std::string &t);
14 
15  void update(const std::map<std::string, std::string> &params);
16 
17  std::map<std::string, std::string> get_values();
18 
19 private:
20  PoolParametric &pool;
21  const PoolParametric::Table &table;
22  std::map<std::string, class ParametricParamEditor *> editors;
23 };
24 } // namespace horizon