Horizon
Loading...
Searching...
No Matches
pool-prj-mgr-process.hpp
1#pragma once
2#include "util/editor_process.hpp"
3#include "util/uuid.hpp"
4
5namespace horizon {
7public:
8 enum class Type {
9 IMP_SYMBOL,
10 IMP_PADSTACK,
11 IMP_PACKAGE,
12 IMP_SCHEMATIC,
13 IMP_BOARD,
14 IMP_FRAME,
15 IMP_DECAL,
16 UNIT,
17 ENTITY,
18 PART
19 };
20 PoolProjectManagerProcess(const UUID &uu, Type ty, const std::vector<std::string> &args,
21 const std::vector<std::string> &env, class IPool *pool,
22 class PoolParametric *pool_parametric, bool read_only, bool is_temp);
23 UUID uuid;
24 Type type;
25 std::unique_ptr<EditorProcess> proc = nullptr;
26 class EditorWindow *win = nullptr;
27 typedef sigc::signal<void, int, bool> type_signal_exited;
28 type_signal_exited signal_exited()
29 {
30 return s_signal_exited;
31 }
32 typedef sigc::signal<void, std::string, bool> type_signal_output;
33 type_signal_output signal_output()
34 {
35 return s_signal_output;
36 }
37 typedef sigc::signal<void> type_signal_ready;
38 type_signal_ready signal_ready()
39 {
40 return s_signal_ready;
41 }
42 void reload();
43 std::string get_filename() const;
44 void set_filename(const std::string &s);
45
46private:
47 type_signal_exited s_signal_exited;
48 type_signal_output s_signal_output;
49 type_signal_ready s_signal_ready;
50 Glib::TimeVal mtime;
51 std::string filename;
52};
53} // namespace horizon
Definition editor_window.hpp:12
Definition ipool.hpp:15
Definition pool_parametric.hpp:10
Definition pool-prj-mgr-process.hpp:6
This class encapsulates a UUID and allows it to be uses as a value type.
Definition uuid.hpp:16