sync_two_graphs

summary: follow the movements of one graph, in another

description:

Since it is possible to be notified of movements that happen take place in a widget, it’s possible to “replay” those movements in another.

In this case, “IDA View-B” (will be opened if necessary) will show the same contents as “IDA View-A”, slightly zoomed out.

keywords: graph, idaview

see_also: wrap_idaview

level: intermediate

Attributes

wrap_a

title

widget_a

widget_b

wrap_a

Classes

IDAViewA_monitor_t

Deprecated. Use View_Hooks instead.

Functions

fit_widget_a()

Module Contents

sync_two_graphs.wrap_a = None
class sync_two_graphs.IDAViewA_monitor_t

Bases: ida_kernwin.IDAViewWrapper

Deprecated. Use View_Hooks instead.

Because the lifecycle of an IDAView is not trivial to track (e.g., a user might close, then re-open the same disassembly view), this wrapper doesn’t bring anything superior to the View_Hooks: quite the contrary, as the latter is much more generic (and better maps IDA’s internal model.)

OnViewLocationChanged(now, was)
update_widget_b()
sync_two_graphs.title = 'IDA View-A'
sync_two_graphs.widget_a
sync_two_graphs.widget_b
sync_two_graphs.wrap_a
sync_two_graphs.fit_widget_a()