3 #include "util/uuid.hpp"
4 #include "common/common.hpp"
5 #include "util/uuid_path.hpp"
6 #include "block/component.hpp"
7 #include "parameter/set.hpp"
18 void set_parent(Gtk::Window *w);
21 std::pair<bool, UUID> map_pin(
const std::vector<std::pair<const Pin *, bool>> &pins);
22 std::pair<bool, UUIDPath<2>> map_symbol(
const std::map<
UUIDPath<2>, std::string> &gates);
23 std::pair<bool, UUID> map_package(
const std::vector<std::pair<Component *, bool>> &components);
24 std::pair<bool, UUID> select_symbol(
class Pool *p,
const UUID &unit_uuid);
25 std::pair<bool, UUID> select_part(
class Pool *p,
const UUID &entity_uuid,
const UUID &part_uuid,
26 bool show_none =
false);
27 std::pair<bool, UUID> select_entity(
class Pool *pool);
28 std::pair<bool, UUID> select_unit(
class Pool *pool);
29 std::pair<bool, UUID> select_padstack(
class Pool *pool,
const UUID &package_uuid);
30 std::pair<bool, UUID> select_hole_padstack(
class Pool *pool);
32 std::pair<bool, UUID> select_net(
class Block *block,
bool power_only,
const UUID &net_default =
UUID());
33 std::pair<bool, UUID> select_bus(
class Block *block);
34 std::pair<bool, UUID> select_bus_member(
class Block *block,
const UUID &bus_uuid);
35 std::pair<bool, UUID> select_group_tag(
const class Block *block,
bool tag_mode,
const UUID ¤t);
36 unsigned int ask_net_merge(
class Net *net,
class Net *into);
37 bool ask_delete_component(
Component *comp);
38 bool manage_buses(
class Block *b);
39 bool manage_net_classes(
class Block *b);
40 bool manage_power_nets(
class Block *b);
43 bool edit_parameter_set(ParameterSet *pset);
44 bool edit_pad_parameter_set(std::set<class Pad *> &pads,
class Pool *pool,
class Package *pkg);
45 bool edit_board_hole(std::set<class BoardHole *> &holes,
class Pool *pool,
class Block *block);
47 bool edit_plane(
class Plane *plane,
class Board *brd,
class Block *block);
48 bool edit_keepout(
class Keepout *keepout,
class Core *c,
bool add_mode);
50 bool edit_schematic_properties(
class Schematic *s,
class Pool *pool);
51 bool edit_frame_properties(
class Frame *fr);
52 std::pair<bool, int64_t> ask_datum(
const std::string &label,
int64_t def = 0);
53 std::pair<bool, Coordi> ask_datum_coord(
const std::string &label,
Coordi def =
Coordi());
54 std::tuple<bool, Coordi, std::pair<bool, bool>> ask_datum_coord2(
const std::string &label,
Coordi def =
Coordi());
55 std::pair<bool, std::string> ask_datum_string_multiline(
const std::string &label,
const std::string &def);
56 std::pair<bool, std::string> ask_datum_string(
const std::string &label,
const std::string &def);
57 std::pair<bool, int> ask_datum_angle(
const std::string &label,
int def = 0);
58 bool edit_shapes(std::set<class Shape *> shapes);
60 std::pair<bool, std::string> ask_dxf_filename();
61 std::pair<bool, std::string> ask_kicad_package_filename();
65 void close_nonmodal();
68 Gtk::Window *parent =
nullptr;
70 Gtk::Window *window_nonmodal =
nullptr;