Horizon
|
Public Member Functions | |
CoreSchematic (const std::string &schematic_filename, const std::string &block_filename, const std::string &pictures_dir, IPool &pool) | |
bool | has_object_type (ObjectType ty) const override |
Junction * | get_junction (const UUID &uu) override |
Line * | get_line (const UUID &uu) override |
Arc * | get_arc (const UUID &uu) override |
SchematicSymbol * | get_schematic_symbol (const UUID &uu) override |
Schematic * | get_schematic () override |
Sheet * | get_sheet () override |
const Sheet * | get_sheet () const |
Text * | get_text (const UUID &uu) override |
Junction * | insert_junction (const UUID &uu) override |
void | delete_junction (const UUID &uu) override |
Line * | insert_line (const UUID &uu) override |
void | delete_line (const UUID &uu) override |
Arc * | insert_arc (const UUID &uu) override |
void | delete_arc (const UUID &uu) override |
SchematicSymbol * | insert_schematic_symbol (const UUID &uu, const Symbol *sym) override |
void | delete_schematic_symbol (const UUID &uu) override |
LineNet * | insert_line_net (const UUID &uu) override |
void | delete_line_net (const UUID &uu) override |
Text * | insert_text (const UUID &uu) override |
void | delete_text (const UUID &uu) override |
class Picture * | insert_picture (const UUID &uu) override |
class Picture * | get_picture (const UUID &uu) override |
void | delete_picture (const UUID &uu) override |
std::vector< Line * > | get_lines () override |
std::vector< Arc * > | get_arcs () override |
std::vector< LineNet * > | get_net_lines () override |
std::vector< NetLabel * > | get_net_labels () override |
class Block * | get_block () override |
class LayerProvider & | get_layer_provider () override |
bool | set_property (ObjectType type, const UUID &uu, ObjectProperty::ID property, const class PropertyValue &value) override |
bool | get_property (ObjectType type, const UUID &uu, ObjectProperty::ID property, class PropertyValue &value) override |
bool | get_property_meta (ObjectType type, const UUID &uu, ObjectProperty::ID property, class PropertyMeta &meta) override |
std::string | get_display_name (ObjectType type, const UUID &uu) override |
std::string | get_display_name (ObjectType type, const UUID &uu, const UUID &sheet) override |
class Rules * | get_rules () override |
BOMExportSettings * | get_bom_export_settings () |
PDFExportSettings * | get_pdf_export_settings () |
void | rebuild (bool from_undo=false) override |
Expands the non-working document. More... | |
void | add_sheet () |
void | delete_sheet (const UUID &uu) |
void | set_sheet (const UUID &uu) |
const Sheet * | get_canvas_data () |
std::pair< Coordi, Coordi > | get_bbox () override |
const std::string & | get_filename () const override |
bool | get_project_meta_loaded_from_block () const |
ObjectType | get_object_type () const override |
const FileVersion & | get_version () const override |
CoreSchematic (const std::string &schematic_filename, const std::string &block_filename, const std::string &pictures_dir, IPool &pool) | |
bool | has_object_type (ObjectType ty) const override |
Junction * | get_junction (const UUID &uu) override |
Line * | get_line (const UUID &uu) override |
Arc * | get_arc (const UUID &uu) override |
SchematicSymbol * | get_schematic_symbol (const UUID &uu) override |
Schematic * | get_schematic () override |
Sheet * | get_sheet () override |
const Sheet * | get_sheet () const |
Text * | get_text (const UUID &uu) override |
Junction * | insert_junction (const UUID &uu) override |
void | delete_junction (const UUID &uu) override |
Line * | insert_line (const UUID &uu) override |
void | delete_line (const UUID &uu) override |
Arc * | insert_arc (const UUID &uu) override |
void | delete_arc (const UUID &uu) override |
SchematicSymbol * | insert_schematic_symbol (const UUID &uu, const Symbol *sym) override |
void | delete_schematic_symbol (const UUID &uu) override |
LineNet * | insert_line_net (const UUID &uu) override |
void | delete_line_net (const UUID &uu) override |
Text * | insert_text (const UUID &uu) override |
void | delete_text (const UUID &uu) override |
class Picture * | insert_picture (const UUID &uu) override |
class Picture * | get_picture (const UUID &uu) override |
void | delete_picture (const UUID &uu) override |
std::vector< Line * > | get_lines () override |
std::vector< Arc * > | get_arcs () override |
std::vector< LineNet * > | get_net_lines () override |
std::vector< NetLabel * > | get_net_labels () override |
class Block * | get_block () override |
class LayerProvider & | get_layer_provider () override |
bool | set_property (ObjectType type, const UUID &uu, ObjectProperty::ID property, const class PropertyValue &value) override |
bool | get_property (ObjectType type, const UUID &uu, ObjectProperty::ID property, class PropertyValue &value) override |
bool | get_property_meta (ObjectType type, const UUID &uu, ObjectProperty::ID property, class PropertyMeta &meta) override |
std::string | get_display_name (ObjectType type, const UUID &uu) override |
std::string | get_display_name (ObjectType type, const UUID &uu, const UUID &sheet) override |
class Rules * | get_rules () override |
BOMExportSettings * | get_bom_export_settings () |
PDFExportSettings * | get_pdf_export_settings () |
void | rebuild (bool from_undo=false) override |
Expands the non-working document. More... | |
void | add_sheet () |
void | delete_sheet (const UUID &uu) |
void | set_sheet (const UUID &uu) |
const Sheet * | get_canvas_data () |
std::pair< Coordi, Coordi > | get_bbox () override |
const std::string & | get_filename () const override |
bool | get_project_meta_loaded_from_block () const |
ObjectType | get_object_type () const override |
const FileVersion & | get_version () const override |
![]() | |
class IPool & | get_pool () override |
ToolResponse | tool_begin (ToolID tool_id, const ToolArgs &args, class ImpInterface *imp, bool transient=false) |
ToolResponse | tool_update (const ToolArgs &args) |
std::pair< bool, bool > | tool_can_begin (ToolID tool_id, const std::set< SelectableRef > &selection) |
void | save () |
void | autosave () |
void | undo () |
void | redo () |
bool | can_undo () const |
bool | can_redo () const |
bool | tool_is_active () |
void | set_property_begin () |
void | set_property_commit () |
bool | get_property_transaction () const |
virtual json | get_meta () |
virtual void | update_rules () |
std::set< SelectableRef > & | get_tool_selection () |
std::set< InToolActionID > | get_tool_actions () const |
bool | get_needs_save () const |
void | set_needs_save () |
type_signal_tool_changed | signal_tool_changed () |
type_signal_rebuilt | signal_rebuilt () |
type_signal_rebuilt | signal_save () |
Gets emitted right before saving. More... | |
type_signal_rebuilt | signal_modified () |
type_signal_rebuilt | signal_can_undo_redo () |
type_signal_needs_save | signal_needs_save () |
type_signal_load_tool_settings | signal_load_tool_settings () |
type_signal_save_tool_settings | signal_save_tool_settings () |
virtual void | reload_pool () |
class IPool & | get_pool () override |
ToolResponse | tool_begin (ToolID tool_id, const ToolArgs &args, class ImpInterface *imp, bool transient=false) |
ToolResponse | tool_update (const ToolArgs &args) |
std::pair< bool, bool > | tool_can_begin (ToolID tool_id, const std::set< SelectableRef > &selection) |
void | save () |
void | autosave () |
void | undo () |
void | redo () |
bool | can_undo () const |
bool | can_redo () const |
bool | tool_is_active () |
void | set_property_begin () |
void | set_property_commit () |
bool | get_property_transaction () const |
virtual json | get_meta () |
virtual void | update_rules () |
std::set< SelectableRef > & | get_tool_selection () |
std::set< InToolActionID > | get_tool_actions () const |
bool | get_needs_save () const |
void | set_needs_save () |
type_signal_tool_changed | signal_tool_changed () |
type_signal_rebuilt | signal_rebuilt () |
type_signal_rebuilt | signal_save () |
Gets emitted right before saving. More... | |
type_signal_rebuilt | signal_modified () |
type_signal_rebuilt | signal_can_undo_redo () |
type_signal_needs_save | signal_needs_save () |
type_signal_load_tool_settings | signal_load_tool_settings () |
type_signal_save_tool_settings | signal_save_tool_settings () |
virtual void | reload_pool () |
![]() | |
class Junction * | insert_junction (const class UUID &uu) override |
class Polygon * | insert_polygon (const UUID &uu) override |
class Polygon * | get_polygon (const UUID &uu) override |
void | delete_polygon (const UUID &uu) override |
class Hole * | insert_hole (const UUID &uu) override |
class Hole * | get_hole (const UUID &uu) override |
void | delete_hole (const UUID &uu) override |
class Dimension * | insert_dimension (const UUID &uu) override |
class Dimension * | get_dimension (const UUID &uu) override |
void | delete_dimension (const UUID &uu) override |
class Keepout * | insert_keepout (const UUID &uu) override |
class Keepout * | get_keepout (const UUID &uu) override |
void | delete_keepout (const UUID &uu) override |
std::vector< Keepout * > | get_keepouts () override |
class Junction * | insert_junction (const class UUID &uu) override |
class Junction * | get_junction (const UUID &uu) override |
void | delete_junction (const UUID &uu) override |
class Line * | insert_line (const UUID &uu) override |
class Line * | get_line (const UUID &uu) override |
void | delete_line (const UUID &uu) override |
class Arc * | insert_arc (const UUID &uu) override |
class Arc * | get_arc (const UUID &uu) override |
void | delete_arc (const UUID &uu) override |
class Text * | insert_text (const UUID &uu) override |
class Text * | get_text (const UUID &uu) override |
void | delete_text (const UUID &uu) override |
class Polygon * | insert_polygon (const UUID &uu) override |
class Polygon * | get_polygon (const UUID &uu) override |
void | delete_polygon (const UUID &uu) override |
class Hole * | insert_hole (const UUID &uu) override |
class Hole * | get_hole (const UUID &uu) override |
void | delete_hole (const UUID &uu) override |
class Dimension * | insert_dimension (const UUID &uu) override |
class Dimension * | get_dimension (const UUID &uu) override |
void | delete_dimension (const UUID &uu) override |
class Keepout * | insert_keepout (const UUID &uu) override |
class Keepout * | get_keepout (const UUID &uu) override |
void | delete_keepout (const UUID &uu) override |
class Picture * | insert_picture (const UUID &uu) override |
class Picture * | get_picture (const UUID &uu) override |
void | delete_picture (const UUID &uu) override |
std::vector< Line * > | get_lines () override |
std::vector< Arc * > | get_arcs () override |
std::vector< Keepout * > | get_keepouts () override |
std::string | get_display_name (ObjectType type, const UUID &uu) override |
std::string | get_display_name (ObjectType type, const UUID &uu, const UUID &sheet) override |
![]() | |
virtual class SchematicSymbol * | insert_schematic_symbol (const class UUID &uu, const class Symbol *sym)=0 |
virtual class SchematicSymbol * | insert_schematic_symbol (const class UUID &uu, const class Symbol *sym)=0 |
Additional Inherited Members | |
![]() | |
typedef sigc::signal< void, ToolID > | type_signal_tool_changed |
typedef sigc::signal< void > | type_signal_rebuilt |
typedef sigc::signal< void, bool > | type_signal_needs_save |
typedef sigc::signal< json, ToolID > | type_signal_load_tool_settings |
typedef sigc::signal< void, ToolID, json > | type_signal_save_tool_settings |
typedef sigc::signal< void, ToolID > | type_signal_tool_changed |
typedef sigc::signal< void > | type_signal_rebuilt |
typedef sigc::signal< void, bool > | type_signal_needs_save |
typedef sigc::signal< json, ToolID > | type_signal_load_tool_settings |
typedef sigc::signal< void, ToolID, json > | type_signal_save_tool_settings |
![]() | |
Core (class IPool &pool) | |
void | set_needs_save (bool v) |
void | history_clear () |
void | history_trim () |
void | layers_to_meta (class PropertyMeta &meta) |
void | get_placement (const Placement &placement, class PropertyValue &value, ObjectProperty::ID property) |
void | set_placement (Placement &placement, const class PropertyValue &value, ObjectProperty::ID property) |
json | get_meta_from_file (const std::string &filename) |
Core (class IPool &pool) | |
void | set_needs_save (bool v) |
void | history_clear () |
void | history_trim () |
void | layers_to_meta (class PropertyMeta &meta) |
void | get_placement (const Placement &placement, class PropertyValue &value, ObjectProperty::ID property) |
void | set_placement (Placement &placement, const class PropertyValue &value, ObjectProperty::ID property) |
json | get_meta_from_file (const std::string &filename) |
![]() | |
virtual std::map< UUID, Junction > * | get_junction_map () |
virtual std::map< UUID, Line > * | get_line_map () |
virtual std::map< UUID, Arc > * | get_arc_map () |
virtual std::map< UUID, Text > * | get_text_map () |
virtual std::map< UUID, Polygon > * | get_polygon_map () |
virtual std::map< UUID, Hole > * | get_hole_map () |
virtual std::map< UUID, Dimension > * | get_dimension_map () |
virtual std::map< UUID, Keepout > * | get_keepout_map () |
virtual std::map< UUID, Picture > * | get_picture_map () |
virtual std::map< UUID, Junction > * | get_junction_map () |
virtual std::map< UUID, Line > * | get_line_map () |
virtual std::map< UUID, Arc > * | get_arc_map () |
virtual std::map< UUID, Text > * | get_text_map () |
virtual std::map< UUID, Polygon > * | get_polygon_map () |
virtual std::map< UUID, Hole > * | get_hole_map () |
virtual std::map< UUID, Dimension > * | get_dimension_map () |
virtual std::map< UUID, Keepout > * | get_keepout_map () |
virtual std::map< UUID, Picture > * | get_picture_map () |
![]() | |
class IPool & | m_pool |
std::unique_ptr< ToolBase > | tool = nullptr |
type_signal_tool_changed | s_signal_tool_changed |
type_signal_rebuilt | s_signal_rebuilt |
type_signal_rebuilt | s_signal_save |
type_signal_rebuilt | s_signal_modified |
type_signal_rebuilt | s_signal_can_undo_redo |
type_signal_needs_save | s_signal_needs_save |
type_signal_load_tool_settings | s_signal_load_tool_settings |
type_signal_save_tool_settings | s_signal_save_tool_settings |
bool | needs_save = false |
std::deque< std::unique_ptr< HistoryItem > > | history |
int | history_current = -1 |
bool | property_transaction = false |
![]() | |
static const std::string | autosave_suffix = ".autosave" |
|
overridevirtual |
Expands the non-working document.
And copies the non-working document to the working document.
Reimplemented from horizon::Core.
|
overridevirtual |
Expands the non-working document.
And copies the non-working document to the working document.
Reimplemented from horizon::Core.