Horizon
project_meta_editor.hpp
1 #pragma once
2 #include <gtkmm.h>
3 #include "util/changeable.hpp"
4 #include <set>
5 
6 namespace horizon {
7 
8 class ProjectMetaEditor : public Gtk::Grid, public Changeable {
9 public:
10  ProjectMetaEditor(std::map<std::string, std::string> &v);
11  void clear();
12  void preset();
13 
14 private:
15  Gtk::Entry *add_editor(const std::string &title, const std::string &descr, const std::string &key);
16  class CustomFieldEditor *add_custom_editor(const std::string &key);
17  std::map<std::string, Gtk::Entry *> entries;
18  std::map<std::string, std::string> &values;
19  int top = 0;
20  Gtk::Box *custom_box = nullptr;
21 };
22 } // namespace horizon
horizon::ProjectMetaEditor
Definition: project_meta_editor.hpp:8
horizon::Changeable
Definition: changeable.hpp:5
horizon::CustomFieldEditor
Definition: project_meta_editor.cpp:25