Horizon
Loading...
Searching...
No Matches
horizon::ImpLayer Class Reference
Inheritance diagram for horizon::ImpLayer:
horizon::ImpBase horizon::ImpBoard horizon::ImpDecal horizon::ImpPackage horizon::ImpPadstack

Public Member Functions

bool is_layered () const override
 ImpBase (const PoolParams &params)
Public Member Functions inherited from horizon::ImpBase
 ImpBase (const PoolParams &params)
void run (int argc, char *argv[])
virtual void handle_tool_change (ToolID id)
virtual void construct ()=0
void canvas_update_from_pp ()
void set_read_only (bool v)
void set_suggested_filename (const std::string &s)
virtual std::map< ObjectType, SelectionFilterInfoget_selection_filter_info () const
LayerProviderget_layer_provider () const

Protected Member Functions

void construct_layer_box (bool pack=true)
void apply_preferences () override
void get_save_meta (json &j) override
virtual void load_default_layers ()
void add_view_angle_actions ()
const CanvasPreferencesget_canvas_preferences () override
void handle_extra_button (const GdkEventButton *button_event) override
std::vector< std::string > get_view_hints () override
void set_view_angle (int angle)
Protected Member Functions inherited from horizon::ImpBase
ActionConnectionconnect_action (ToolID tool_id)
ActionConnectionconnect_action (ActionToolID id, std::function< void(const ActionConnection &)> cb)
ActionConnectionconnect_action_with_source (ActionToolID id, std::function< void(const ActionConnection &, ActionSource)> cb)
virtual void canvas_update ()=0
virtual void expand_selection_for_property_panel (std::set< SelectableRef > &sel_extra, const std::set< SelectableRef > &sel)
void handle_selection_changed (void)
virtual void handle_selection_cross_probe ()
bool handle_key_press (const GdkEventKey *key_event)
void handle_cursor_move (const Coordi &pos)
bool handle_click (const GdkEventButton *button_event)
bool handle_click_release (const GdkEventButton *button_event)
bool handle_context_menu (const GdkEventButton *button_event)
void tool_process (ToolResponse &resp)
void tool_begin (ToolID id, bool override_selection=false, const std::set< SelectableRef > &sel={}, std::unique_ptr< ToolData > data=nullptr)
void add_tool_button (ToolID id, const std::string &label, bool left=true)
void handle_warning_selected (const Coordi &pos)
virtual bool handle_broadcast (const json &j)
bool handle_close (const GdkEventAny *ev)
json send_json (const json &j)
bool trigger_action (ActionToolID action, ActionSource source=ActionSource::UNKNOWN)
void connect_go_to_project_manager_action ()
void add_tool_action (ActionToolID id, const std::string &action)
void add_hamburger_menu ()
virtual void handle_maybe_drag (bool ctrl)
virtual ActionCatalogItem::Availability get_editor_type_for_action () const =0
ObjectType get_editor_type () const
void layer_up_down (bool up)
void goto_layer (int layer)
Gtk::Button * create_action_button (ActionToolID action)
void attach_action_button (Gtk::Button &button, ActionToolID action)
void set_action_sensitive (ActionID, bool v)
bool get_action_sensitive (ActionID) const
virtual void update_action_sensitivity ()
type_signal_action_sensitive signal_action_sensitive ()
virtual std::string get_hud_text (std::set< SelectableRef > &sel)
std::string get_hud_text_for_component (const Component *comp)
virtual const Blockget_block_for_group_tag_names ()
std::string get_hud_text_for_net (const Net *net)
std::string get_hud_text_for_layers (const std::set< int > &layers)
void set_monitor_files (const std::set< std::string > &files)
void set_monitor_items (const ItemSet &items)
virtual void update_monitor ()
void edit_pool_item (ObjectType type, const UUID &uu)
void parameter_window_add_polygon_expand (class ParameterWindow *parameter_window)
void tool_update_data (std::unique_ptr< ToolData > data)
virtual void search_center (const Searcher::SearchResult &res)
virtual ActionToolID get_doubleclick_action (ObjectType type, const UUID &uu)
void load_meta ()
virtual void set_window_title (const std::string &s)
void set_window_title_from_block ()
void update_view_hints ()
void view_options_menu_append_action (const std::string &label, const std::string &action)
virtual Searcherget_searcher_ptr ()
bool has_searcher ()
Searcherget_searcher ()
class ActionButtonadd_action_button (ActionToolID action)
class ActionButtonMenuadd_action_button_menu (const char *icon_name)
class ActionButtonadd_action_button_polygon ()
class ActionButtonadd_action_button_line ()
virtual ToolID get_tool_for_drag_move (bool ctrl, const std::set< SelectableRef > &sel) const
bool force_end_tool ()
void reset_tool_hint_label ()
virtual void update_highlights ()
virtual void clear_highlights ()
void show_in_pool_manager (ObjectType type, const UUID &uu, ShowInPoolManagerPool p)
virtual bool uses_dynamic_version () const
virtual unsigned int get_required_version () const
void selection_load (const HistoryManager::HistoryItem &it)

Protected Attributes

class LayerBoxlayer_box
Glib::RefPtr< Glib::Binding > work_layer_binding
Glib::RefPtr< Glib::Binding > layer_opacity_binding
int view_angle = 1
Gtk::Label * view_angle_label = nullptr
Gtk::Button * view_angle_button = nullptr
class ViewAngleWindowview_angle_window = nullptr
sigc::connection view_angle_window_conn
Protected Attributes inherited from horizon::ImpBase
MainWindowmain_window
CanvasGLcanvas
class PropertyPanelspanels
WarningsBoxwarnings_box
class ToolPopovertool_popover
Gtk::Menu * context_menu = nullptr
std::unique_ptr< SelectionFilterDialogselection_filter_dialog
std::optional< GridControllergrid_controller
class GridsWindowgrids_window = nullptr
std::unique_ptr< Poolpool
Poolpool_caching
class Corecore = nullptr
std::unique_ptr< ClipboardBaseclipboard = nullptr
std::unique_ptr< ClipboardHandlerclipboard_handler = nullptr
std::unique_ptr< KeySequenceDialogkey_sequence_dialog = nullptr
std::unique_ptr< ImpInterface > imp_interface = nullptr
Glib::RefPtr< Glib::Binding > grid_spacing_binding
std::map< ActionToolID, ActionConnectionaction_connections
class RulesWindowrules_window = nullptr
zmq::context_t zctx
zmq::socket_t sock_broadcast_rx
zmq::socket_t sock_project
bool sockets_connected = false
int mgr_pid = -1
UUID ipc_cookie
bool no_update = false
bool distraction_free = false
Preferences preferences
std::unique_ptr< WindowStateStorestate_store = nullptr
bool read_only = false
Glib::RefPtr< Gio::Menu > hamburger_menu
json m_meta
Gtk::Box * view_options_menu = nullptr
std::set< ObjectRefhighlights
bool temp_mode = false
std::string suggested_filename
bool selection_loading = false

Friends

class ImpInterface

Additional Inherited Members

Public Types inherited from horizon::ImpBase
enum class  TempMode { YES , NO }
Protected Types inherited from horizon::ImpBase
enum class  ShowInPoolManagerPool { CURRENT , LAST }
typedef sigc::signal< void > type_signal_action_sensitive
Static Protected Member Functions inherited from horizon::ImpBase
static void selection_push (HistoryManager &mgr, const std::set< SelectableRef > &selection)
Static Protected Attributes inherited from horizon::ImpBase
static const std::string meta_suffix = ".imp_meta"

Member Function Documentation

◆ apply_preferences()

void horizon::ImpLayer::apply_preferences ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_canvas_preferences()

const CanvasPreferences & horizon::ImpLayer::get_canvas_preferences ( )
inlineoverrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_save_meta()

void horizon::ImpLayer::get_save_meta ( json & j)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_view_hints()

std::vector< std::string > horizon::ImpLayer::get_view_hints ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ handle_extra_button()

void horizon::ImpLayer::handle_extra_button ( const GdkEventButton * button_event)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ is_layered()

bool horizon::ImpLayer::is_layered ( ) const
inlineoverridevirtual

Reimplemented from horizon::ImpBase.


The documentation for this class was generated from the following files: