Horizon
prj-mgr_views.hpp
1 #pragma once
2 #include "project/project.hpp"
3 #include <gtkmm.h>
4 #include <memory>
5 #include <zmq.hpp>
6 
7 namespace horizon {
8 
10 public:
11  PoolProjectManagerViewCreateProject(const Glib::RefPtr<Gtk::Builder> &refBuilder,
13  void clear();
14  std::pair<bool, std::string> create();
15  typedef sigc::signal<void, bool> type_signal_valid_change;
16  type_signal_valid_change signal_valid_change()
17  {
18  return s_signal_valid_change;
19  }
20  void populate_pool_combo(const Glib::RefPtr<Gtk::Application> &app);
21  void update();
22 
23 private:
24  PoolProjectManagerAppWindow *win = nullptr;
25  Gtk::Entry *project_name_entry = nullptr;
26  Gtk::Entry *project_description_entry = nullptr;
27  Gtk::FileChooserButton *project_path_chooser = nullptr;
28  Gtk::Label *project_dir_label = nullptr;
29  Gtk::ComboBoxText *project_pool_combo = nullptr;
30 
31 
32  type_signal_valid_change s_signal_valid_change;
33 };
34 
36 public:
37  PoolProjectManagerViewProject(const Glib::RefPtr<Gtk::Builder> &refBuilder, class PoolProjectManagerAppWindow *w);
38  Gtk::Entry *entry_project_title = nullptr;
39  Gtk::Label *label_pool_name = nullptr;
40  Gtk::Label *label_pool_path = nullptr;
41  Gtk::Label *label_project_directory = nullptr;
42  Gtk::InfoBar *pool_info_bar = nullptr;
43  Gtk::Label *pool_info_bar_label = nullptr;
44 
45  void open_top_schematic();
46  void open_board();
47 
48 private:
49  PoolProjectManagerAppWindow *win = nullptr;
50  Gtk::Button *button_top_schematic = nullptr;
51  Gtk::Button *button_board = nullptr;
52  Gtk::Button *button_part_browser = nullptr;
53  Gtk::Button *button_pool_cache = nullptr;
54  Gtk::Button *button_change_pool = nullptr;
55 
56  void handle_button_part_browser();
57  void handle_button_pool_cache();
58  void handle_button_change_pool();
59 };
60 } // namespace horizon
horizon::PoolProjectManagerViewCreateProject
Definition: prj-mgr_views.hpp:9
horizon::PoolProjectManagerViewProject
Definition: prj-mgr_views.hpp:35
horizon::PoolProjectManagerAppWindow
Definition: pool-prj-mgr-app_win.hpp:24