MiniGraph

Detailed Description

Classes

class  MiniGraph
 
class  MiniGraphSidebarWidgetType
 

Class Documentation

◆ MiniGraph

class MiniGraph

Public Slots

void notifyUpdate ()
 
void graphDestroyed ()
 
void newPane ()
 

Public Member Functions

 MiniGraph (bool popout=false)
 
 ~MiniGraph ()
 
virtual void notifyViewChanged (ViewFrame *frame) override
 
virtual void OnViewChange (UIContext *context, ViewFrame *frame, const QString &type) override
 Callback when the ui changes views. More...
 
virtual QSize sizeHint () const override
 
void setSource (ViewFrame *frame, FlowGraphWidget *graphView)
 
- Public Member Functions inherited from SidebarWidget
 SidebarWidget (const QString &title)
 
 ~SidebarWidget ()
 
const QString & title () const
 
void enableRefreshTimer (int interval)
 
void setRefreshQuiesce (bool enable)
 
virtual void notifyRefresh ()
 
virtual void notifyFontChanged ()
 
virtual void notifyOffsetChanged (uint64_t)
 
virtual void notifyThemeChanged ()
 
virtual void notifyViewChanged (ViewFrame *)
 
virtual void notifyViewLocationChanged (View *, const ViewLocation &)
 
virtual void focus ()
 
virtual void closing ()
 
virtual void setPrimaryOrientation (Qt::Orientation)
 
virtual QWidget * headerWidget ()
 
- Public Member Functions inherited from UIContextNotification
virtual ~UIContextNotification ()
 
virtual void OnContextOpen (UIContext *context)
 Callback after a UIContext is opened (eg MainWindow) More...
 
virtual void OnContextClose (UIContext *context)
 Callback right before closing a UIContext. More...
 
virtual bool OnBeforeOpenDatabase (UIContext *context, FileMetadataRef metadata)
 Callback before a database (specifically a database, not a raw file) is opened. More...
 
virtual bool OnAfterOpenDatabase (UIContext *context, FileMetadataRef metadata, BinaryViewRef data)
 Callback after a database (specifically a database, not a raw file) is opened. More...
 
virtual void OnAfterOpenProject (UIContext *context, ProjectRef project)
 Callback after a project is opened. More...
 
virtual bool OnBeforeOpenProjectFile (UIContext *context, ProjectFileRef projectFile)
 Callback before a project file is opened. More...
 
virtual void OnAfterOpenProjectFile (UIContext *context, ProjectFileRef projectFile, ViewFrame *frame)
 Callback after a project file is opened. More...
 
virtual bool OnBeforeOpenFile (UIContext *context, FileContext *file)
 Callback before a file (raw or database) is opened (after OnAfterOpenDatabase if opening a database) More...
 
virtual void OnAfterOpenFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback after a file (raw or database) is opened. More...
 
virtual bool OnBeforeSaveFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback before a file is saved (either as a database or raw) More...
 
virtual void OnAfterSaveFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback after a file is saved (either as a database or raw) More...
 
virtual bool OnBeforeCloseFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback before a file is closed. More...
 
virtual void OnAfterCloseFile (UIContext *context, FileContext *file, ViewFrame *frame)
 Callback after a file is closed. More...
 
virtual void OnViewReplaced (UIContext *context, FileContext *file, ViewFrame *oldFrame, ViewFrame *newFrame)
 Callback after a ViewFrame is replaced in an open file (e.g. More...
 
virtual void OnDataViewReplaced (UIContext *context, FileContext *file, BinaryViewRef oldData, BinaryViewRef newData)
 Callback after a BinaryView is replaced in an open file (e.g. More...
 
virtual void OnViewChange (UIContext *context, ViewFrame *frame, const QString &type)
 Callback when the ui changes views. More...
 
virtual void OnAddressChange (UIContext *context, ViewFrame *frame, View *view, const ViewLocation &location)
 Callback when the ui changes address. More...
 
virtual bool GetNameForFile (UIContext *context, FileContext *file, QString &name)
 Callback to modify the displayed file name for a FileContext (eg in the window title or tab title) Note: Due to the out param &name, this is not usable from Python with PySide. More...
 
virtual bool GetNameForPath (UIContext *context, const QString &path, QString &name)
 Callback to modify the displayed file name for a file path (eg in the new tab widget) Note: Due to the out param &name, this is not usable from Python with PySide. More...
 
virtual void OnNewSelectionForXref (UIContext *context, ViewFrame *frame, View *view, const SelectionInfoForXref &selection)
 Callback when the ui changes selection and should update cross references. More...
 
virtual void OnActionExecuted (UIContext *context, UIActionHandler *handler, const QString &name, const UIActionContext &ctx, std::function< void(const UIActionContext &)> &action)
 Callback when an action is executed, allowing plugins to intercept and modify the behavior of the action. More...
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void scrollTo (int x, int y)
 

Additional Inherited Members

- Protected Attributes inherited from SidebarWidget
QString m_title
 
UIActionHandler m_actionHandler
 
ContextMenuManagerm_contextMenuManager = nullptr
 
Menum_menu = nullptr
 
QTimer * m_updateTimer = nullptr
 

Constructor & Destructor Documentation

◆ MiniGraph()

MiniGraph::MiniGraph ( bool  popout = false)

◆ ~MiniGraph()

MiniGraph::~MiniGraph ( )

Member Function Documentation

◆ notifyViewChanged()

virtual void MiniGraph::notifyViewChanged ( ViewFrame frame)
overridevirtual

Reimplemented from SidebarWidget.

◆ OnViewChange()

virtual void MiniGraph::OnViewChange ( UIContext context,
ViewFrame frame,
const QString &  type 
)
overridevirtual

Callback when the ui changes views.

Parameters
contextContext changing views
frameViewFrame which changed views
typeNew view name

Reimplemented from UIContextNotification.

◆ sizeHint()

virtual QSize MiniGraph::sizeHint ( ) const
inlineoverridevirtual

◆ setSource()

void MiniGraph::setSource ( ViewFrame frame,
FlowGraphWidget graphView 
)

◆ contextMenuEvent()

virtual void MiniGraph::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotectedvirtual

◆ mouseMoveEvent()

virtual void MiniGraph::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mousePressEvent()

virtual void MiniGraph::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ paintEvent()

virtual void MiniGraph::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

◆ scrollTo()

virtual void MiniGraph::scrollTo ( int  x,
int  y 
)
protectedvirtual

◆ notifyUpdate

void MiniGraph::notifyUpdate ( )
slot

◆ graphDestroyed

void MiniGraph::graphDestroyed ( )
slot

◆ newPane

void MiniGraph::newPane ( )
slot

◆ MiniGraphSidebarWidgetType

class MiniGraphSidebarWidgetType

Public Member Functions

 MiniGraphSidebarWidgetType ()
 
virtual SidebarWidgetcreateWidget (ViewFrame *frame, BinaryViewRef data) override
 
virtual SidebarWidgetLocation defaultLocation () const override
 
virtual bool canUseAsPane (SplitPaneWidget *, BinaryViewRef) const override
 
virtual PanecreatePane (SplitPaneWidget *pane, BinaryViewRef data) override
 
- Public Member Functions inherited from SidebarWidgetType
 SidebarWidgetType (const QImage &icon, const QString &name)
 
virtual ~SidebarWidgetType ()
 
const SidebarIconicon () const
 
const QString & name () const
 
virtual bool isInReferenceArea () const
 
virtual bool viewSensitive () const
 
virtual SidebarWidgetLocation defaultLocation () const
 
virtual SidebarContextSensitivity contextSensitivity () const
 
virtual bool alwaysShowTabs () const
 
virtual bool hideIfNoContent () const
 
virtual SidebarWidgetcreateWidget (ViewFrame *, BinaryViewRef)
 
virtual SidebarWidgetcreateInvalidContextWidget ()
 
virtual QWidget * headerWidget (SplitPaneWidget *, ViewFrame *, BinaryViewRef)
 
virtual bool focusHeaderWidget () const
 
virtual QString noWidgetMessage () const
 
virtual DockableTabStyletabStyle () const
 
virtual bool canUseAsPane (SplitPaneWidget *, BinaryViewRef) const
 
virtual PanecreatePane (SplitPaneWidget *, BinaryViewRef)
 
void updateTheme ()
 

Constructor & Destructor Documentation

◆ MiniGraphSidebarWidgetType()

MiniGraphSidebarWidgetType::MiniGraphSidebarWidgetType ( )

Member Function Documentation

◆ createWidget()

virtual SidebarWidget * MiniGraphSidebarWidgetType::createWidget ( ViewFrame frame,
BinaryViewRef  data 
)
overridevirtual

Reimplemented from SidebarWidgetType.

◆ defaultLocation()

virtual SidebarWidgetLocation MiniGraphSidebarWidgetType::defaultLocation ( ) const
inlineoverridevirtual

Reimplemented from SidebarWidgetType.

◆ canUseAsPane()

virtual bool MiniGraphSidebarWidgetType::canUseAsPane ( SplitPaneWidget ,
BinaryViewRef   
) const
inlineoverridevirtual

Reimplemented from SidebarWidgetType.

◆ createPane()

virtual Pane * MiniGraphSidebarWidgetType::createPane ( SplitPaneWidget pane,
BinaryViewRef  data 
)
overridevirtual

Reimplemented from SidebarWidgetType.