Horizon
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
horizon::ImpBoard Class Reference
Inheritance diagram for horizon::ImpBoard:
horizon::ImpLayer horizon::ImpBase

Public Member Functions

 ImpBoard (const CoreBoard::Filenames &filenames, const PoolParams &params)
 
const std::map< int, Layer > & get_layers ()
 
std::map< ObjectType, SelectionFilterInfoget_selection_filter_info () const override
 
- Public Member Functions inherited from horizon::ImpLayer
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)
 
void canvas_update_from_pp ()
 
void set_read_only (bool v)
 
void set_suggested_filename (const std::string &s)
 

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 apply_preferences () override
 
void update_highlights () override
 
void set_window_title (const std::string &s) override
 
ActionCatalogItem::Availability get_editor_type_for_action () const override
 
std::string get_hud_text (std::set< SelectableRef > &sel) override
 
ActionToolID get_doubleclick_action (ObjectType type, const UUID &uu) override
 
void get_save_meta (json &j) override
 
std::vector< std::string > get_view_hints () override
 
Searcherget_searcher_ptr () override
 
ToolID get_tool_for_drag_move (bool ctrl, const std::set< SelectableRef > &sel) const override
 
void update_monitor () override
 
- Protected Member Functions inherited from horizon::ImpLayer
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 expand_selection_for_property_panel (std::set< SelectableRef > &sel_extra, const std::set< SelectableRef > &sel)
 
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 ()
 
ObjectType get_editor_type () const
 
void layer_up_down (bool up)
 
void goto_layer (int layer)
 
Gtk::Button * create_action_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)
 
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)
 
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)
 
void load_meta ()
 
void set_window_title_from_block ()
 
void update_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 ()
 
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
 

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

Member Function Documentation

◆ apply_preferences()

void horizon::ImpBoard::apply_preferences ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ construct()

void horizon::ImpBoard::construct ( )
overrideprotectedvirtual

Implements horizon::ImpBase.

◆ get_doubleclick_action()

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

Reimplemented from horizon::ImpBase.

◆ get_editor_type_for_action()

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

Implements horizon::ImpBase.

◆ get_hud_text()

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

Reimplemented from horizon::ImpBase.

◆ get_save_meta()

void horizon::ImpBoard::get_save_meta ( json j)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ get_searcher_ptr()

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

Reimplemented from horizon::ImpBase.

◆ get_selection_filter_info()

std::map< ObjectType, ImpBase::SelectionFilterInfo > horizon::ImpBoard::get_selection_filter_info ( ) const
overridevirtual

Reimplemented from horizon::ImpBase.

◆ get_tool_for_drag_move()

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

Reimplemented from horizon::ImpBase.

◆ get_view_hints()

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

Reimplemented from horizon::ImpBase.

◆ handle_broadcast()

bool horizon::ImpBoard::handle_broadcast ( const json j)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ handle_maybe_drag()

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

Reimplemented from horizon::ImpBase.

◆ set_window_title()

void horizon::ImpBoard::set_window_title ( const std::string &  s)
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ update_action_sensitivity()

void horizon::ImpBoard::update_action_sensitivity ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ update_highlights()

void horizon::ImpBoard::update_highlights ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.

◆ update_monitor()

void horizon::ImpBoard::update_monitor ( )
overrideprotectedvirtual

Reimplemented from horizon::ImpBase.


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