4 #include "util/uuid.hpp"
5 #include "pool/part.hpp"
6 #include "pool/unit.hpp"
7 #include "pool/entity.hpp"
8 #include "pool/symbol.hpp"
9 #include "pool/package.hpp"
10 #include "pool/padstack.hpp"
12 #include "pool/pool.hpp"
13 #include "pool/pool_parametric.hpp"
14 #include "util/editor_process.hpp"
16 #include "util/win32_undef.hpp"
17 #include "util/paned_state_store.hpp"
27 bool get_close_prohibited()
const;
29 void pool_update(
const std::vector<std::string> &filenames = {});
30 bool get_needs_save()
const;
32 void go_to(ObjectType type,
const UUID &uu);
33 const UUID &get_pool_uuid()
const;
37 typedef sigc::signal<void> type_signal_saved;
38 type_signal_saved signal_saved()
40 return s_signal_saved;
44 const std::string base_path;
47 std::map<ObjectType, class PoolBrowser *> browsers;
48 std::map<std::string, class PoolBrowserParametric *> browsers_parametric;
56 std::function<void()> pool_update_done_cb =
nullptr;
58 void show_duplicate_window(ObjectType ty,
const UUID &uu);
60 void construct_units();
61 void handle_create_unit();
62 void handle_edit_unit(
const UUID &uu);
63 void handle_create_symbol_for_unit(
const UUID &uu);
64 void handle_create_entity_for_unit(
const UUID &uu);
65 void handle_duplicate_unit(
const UUID &uu);
67 void construct_symbols();
68 void handle_edit_symbol(
const UUID &uu);
69 void handle_create_symbol();
70 void handle_duplicate_symbol(
const UUID &uu);
72 void construct_entities();
73 void handle_edit_entity(
const UUID &uu);
74 void handle_create_entity();
75 void handle_duplicate_entity(
const UUID &uu);
77 void construct_padstacks();
78 void handle_edit_padstack(
const UUID &uu);
79 void handle_create_padstack();
80 void handle_duplicate_padstack(
const UUID &uu);
82 void construct_packages();
83 void handle_edit_package(
const UUID &uu);
84 void handle_create_package();
85 void handle_create_padstack_for_package(
const UUID &uu);
86 void handle_duplicate_package(
const UUID &uu);
87 void handle_import_kicad_package();
89 void handle_part_wizard();
90 void handle_kicad_symbol_import_wizard();
92 void construct_parts();
93 void handle_edit_part(
const UUID &uu);
94 void handle_create_part();
95 void handle_create_part_from_part(
const UUID &uu);
96 void handle_duplicate_part(
const UUID &uu);
98 void construct_frames();
99 void handle_edit_frame(
const UUID &uu);
100 void handle_create_frame();
101 void handle_duplicate_frame(
const UUID &uu);
103 void construct_decals();
104 void handle_edit_decal(
const UUID &uu);
105 void handle_create_decal();
106 void handle_duplicate_decal(
const UUID &uu);
108 void construct_parametric();
110 Gtk::Button *add_action_button(
const std::string &label, Gtk::Box *bbox, sigc::slot0<void>);
111 Gtk::Button *add_action_button(
const std::string &label, Gtk::Box *bbox,
class PoolBrowser *br,
112 sigc::slot1<void, UUID>);
113 Gtk::Button *add_merge_button(Gtk::Box *bbox,
class PoolBrowser *br, std::function<
void(
UUID)> cb =
nullptr);
114 void add_preview_stack_switcher(Gtk::Box *bbox, Gtk::Stack *stack);
116 void handle_delete(ObjectType ty,
const UUID &uu);
117 void handle_move_rename(ObjectType ty,
const UUID &uu);
118 void handle_copy_path(ObjectType ty,
const UUID &uu);
122 void handle_edit_item(ObjectType ty,
const UUID &uu);
123 void handle_duplicate_item(ObjectType ty,
const UUID &uu);
125 void install_search_once(Gtk::Widget *page,
PoolBrowser *browser);
126 bool widget_is_visible(Gtk::Widget *widget);
128 void create_paned_state_store(Gtk::Paned *paned,
const std::string &prefix);
129 std::vector<std::unique_ptr<PanedStateStore>> paned_state_stores;
131 std::string remote_repo;
140 bool pool_busy =
false;
142 type_signal_saved s_signal_saved;
Definition: duplicate_window.hpp:7
Definition: import_kicad_package_window.hpp:9
Definition: kicad_symbol_import_wizard.hpp:14
Definition: part_wizard.hpp:16
Definition: pool_browser.hpp:15
Definition: pool_cache_box.hpp:14
Definition: pool_git_box.hpp:16
Definition: pool_notebook.hpp:20
Definition: pool_parametric.hpp:10
Definition: pool-prj-mgr-app_win.hpp:21
Definition: pool_remote_box.hpp:18
Definition: pool_settings_box.hpp:13
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:22
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16