Horizon
Loading...
Searching...
No Matches
horizon::ImpSchematic Class Reference
Inheritance diagram for horizon::ImpSchematic:
horizon::ImpBase

Public Member Functions

 ImpSchematic (const CoreSchematic::Filenames &filenames, const PoolParams &params)
Public Member Functions inherited from horizon::ImpBase
 ImpBase (const PoolParams &params)
void run (int argc, char *argv[])
void canvas_update_from_pp ()
void set_read_only (bool v)
void set_suggested_filename (const std::string &s)
virtual bool is_layered () const
LayerProviderget_layer_provider () const

Protected Member Functions

void construct () override
bool handle_broadcast (const json &j) override
void handle_maybe_drag (bool ctrl) override
void update_action_sensitivity () override
void update_highlights () override
void clear_highlights () override
ActionCatalogItem::Availability get_editor_type_for_action () const override
std::string get_hud_text (std::set< SelectableRef > &sel) override
void search_center (const Searcher::SearchResult &res) override
ActionToolID get_doubleclick_action (ObjectType type, const UUID &uu) override
void expand_selection_for_property_panel (std::set< SelectableRef > &sel_extra, const std::set< SelectableRef > &sel) override
Searcherget_searcher_ptr () override
ToolID get_tool_for_drag_move (bool ctrl, const std::set< SelectableRef > &sel) const override
void update_monitor () override
std::map< ObjectType, ImpBase::SelectionFilterInfoget_selection_filter_info () const override
void apply_preferences () override
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)
void handle_selection_changed (void)
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)
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 const CanvasPreferencesget_canvas_preferences ()
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
type_signal_action_sensitive signal_action_sensitive ()
std::string get_hud_text_for_component (const Component *comp)
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)
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)
void load_meta ()
virtual void get_save_meta (json &j)
virtual void set_window_title (const std::string &s)
void set_window_title_from_block ()
void update_view_hints ()
virtual std::vector< std::string > get_view_hints ()
void view_options_menu_append_action (const std::string &label, const std::string &action)
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 ()
bool force_end_tool ()
void reset_tool_hint_label ()
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)

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)
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
Static Protected Attributes inherited from horizon::ImpBase
static const std::string meta_suffix = ".imp_meta"

Member Function Documentation

◆ apply_preferences()

void horizon::ImpSchematic::apply_preferences ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ clear_highlights()

void horizon::ImpSchematic::clear_highlights ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ construct()

void horizon::ImpSchematic::construct ( )
overrideprotectedvirtual

Implements horizon::ImpBase.

◆ expand_selection_for_property_panel()

void horizon::ImpSchematic::expand_selection_for_property_panel ( std::set< SelectableRef > & sel_extra,
const std::set< SelectableRef > & sel )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_doubleclick_action()

ActionToolID horizon::ImpSchematic::get_doubleclick_action ( ObjectType type,
const UUID & uu )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_editor_type_for_action()

ActionCatalogItem::Availability horizon::ImpSchematic::get_editor_type_for_action ( ) const
inlineoverrideprotectedvirtual

Implements horizon::ImpBase.

◆ get_hud_text()

std::string horizon::ImpSchematic::get_hud_text ( std::set< SelectableRef > & sel)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_searcher_ptr()

Searcher * horizon::ImpSchematic::get_searcher_ptr ( )
inlineoverrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_selection_filter_info()

std::map< ObjectType, ImpBase::SelectionFilterInfo > horizon::ImpSchematic::get_selection_filter_info ( ) const
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_tool_for_drag_move()

ToolID horizon::ImpSchematic::get_tool_for_drag_move ( bool ctrl,
const std::set< SelectableRef > & sel ) const
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ handle_broadcast()

bool horizon::ImpSchematic::handle_broadcast ( const json & j)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ handle_maybe_drag()

void horizon::ImpSchematic::handle_maybe_drag ( bool ctrl)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ search_center()

void horizon::ImpSchematic::search_center ( const Searcher::SearchResult & res)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ update_action_sensitivity()

void horizon::ImpSchematic::update_action_sensitivity ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ update_highlights()

void horizon::ImpSchematic::update_highlights ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ update_monitor()

void horizon::ImpSchematic::update_monitor ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.


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