StringsView

Detailed Description

Classes

class  StringsListModel
 
class  StringItemDelegate
 
class  StringsView
 
class  StringsContainer
 
class  StringsViewType
 
class  StringsViewSidebarWidget
 
class  StringsViewSidebarWidgetType
 

Class Documentation

◆ StringsListModel

class StringsListModel

Public Member Functions

 StringsListModel (QWidget *parent, BinaryViewRef data)
 
virtual ~StringsListModel ()
 
virtual QModelIndex index (int row, int col, const QModelIndex &parent) const override
 
virtual QModelIndex parent (const QModelIndex &i) const override
 
virtual bool hasChildren (const QModelIndex &parent) const override
 
virtual int rowCount (const QModelIndex &parent) const override
 
virtual int columnCount (const QModelIndex &parent) const override
 
virtual QVariant data (const QModelIndex &i, int role) const override
 
BNStringReference getStringAt (const QModelIndex &i)
 
QModelIndex findString (const BNStringReference &ref)
 
virtual void OnStringFound (BinaryNinja::BinaryView *data, BNStringType type, uint64_t offset, size_t len) override
 
virtual void OnStringRemoved (BinaryNinja::BinaryView *data, BNStringType type, uint64_t offset, size_t len) override
 
void updateStrings ()
 
void setFilter (const std::string &filter)
 
void updateFilter ()
 
size_t getFilteredStringCount () const
 
size_t getStringCount () const
 
void toggleIncludeStringsOverlappingCode ()
 
void toggleIncludeOnlyReferenced ()
 
void toggleIncludeOnlyFromCurrentFunction ()
 
void includeStringsOverlappingCode (bool exclude)
 
void includeOnlyReferenced (bool exclude)
 
void includeOnlyFromCurrentFunction (bool exclude)
 
bool getIncludeStringsOverlappingCode () const
 
bool getIncludeOnlyReferenced () const
 
bool getIncludeOnlyFromCurrentFunction () const
 
- Public Member Functions inherited from BinaryNinja::BinaryDataNotification
 BinaryDataNotification ()
 
 BinaryDataNotification (NotificationTypes notifications)
 
virtual ~BinaryDataNotification ()
 
BNBinaryDataNotificationGetCallbacks ()
 
virtual uint64_t OnNotificationBarrier (BinaryView *view)
 
virtual void OnBinaryDataWritten (BinaryView *view, uint64_t offset, size_t len)
 
virtual void OnBinaryDataInserted (BinaryView *view, uint64_t offset, size_t len)
 
virtual void OnBinaryDataRemoved (BinaryView *view, uint64_t offset, uint64_t len)
 
virtual void OnAnalysisFunctionAdded (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionRemoved (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionUpdated (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionUpdateRequested (BinaryView *view, Function *func)
 
virtual void OnDataVariableAdded (BinaryView *view, const DataVariable &var)
 
virtual void OnDataVariableRemoved (BinaryView *view, const DataVariable &var)
 
virtual void OnDataVariableUpdated (BinaryView *view, const DataVariable &var)
 
virtual void OnDataMetadataUpdated (BinaryView *view, uint64_t offset)
 
virtual void OnTagTypeUpdated (BinaryView *view, Ref< TagType > tagTypeRef)
 
virtual void OnTagAdded (BinaryView *view, const TagReference &tagRef)
 
virtual void OnTagRemoved (BinaryView *view, const TagReference &tagRef)
 
virtual void OnTagUpdated (BinaryView *view, const TagReference &tagRef)
 
virtual void OnSymbolAdded (BinaryView *view, Symbol *sym)
 
virtual void OnSymbolRemoved (BinaryView *view, Symbol *sym)
 
virtual void OnSymbolUpdated (BinaryView *view, Symbol *sym)
 
virtual void OnStringFound (BinaryView *data, BNStringType type, uint64_t offset, size_t len)
 
virtual void OnStringRemoved (BinaryView *data, BNStringType type, uint64_t offset, size_t len)
 
virtual void OnTypeDefined (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeUndefined (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeReferenceChanged (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeFieldReferenceChanged (BinaryView *data, const QualifiedName &name, uint64_t offset)
 
virtual void OnSegmentAdded (BinaryView *data, Segment *segment)
 
virtual void OnSegmentRemoved (BinaryView *data, Segment *segment)
 
virtual void OnSegmentUpdated (BinaryView *data, Segment *segment)
 
virtual void OnSectionAdded (BinaryView *data, Section *section)
 
virtual void OnSectionRemoved (BinaryView *data, Section *section)
 
virtual void OnSectionUpdated (BinaryView *data, Section *section)
 
virtual void OnComponentNameUpdated (BinaryView *data, std::string &previousName, Component *component)
 This notification is posted after the display name for a component is updated. More...
 
virtual void OnComponentAdded (BinaryView *data, Component *component)
 This notification is posted after a Component is added to the tree. More...
 
virtual void OnComponentRemoved (BinaryView *data, Component *formerParent, Component *component)
 This notification is posted after a Component is removed from the tree. More...
 
virtual void OnComponentMoved (BinaryView *data, Component *formerParent, Component *newParent, Component *component)
 This notification is posted whenever a component is moved from one component to another. More...
 
virtual void OnComponentFunctionAdded (BinaryView *data, Component *component, Function *function)
 This notification is posted whenever a Function is added to a Component. More...
 
virtual void OnComponentFunctionRemoved (BinaryView *data, Component *component, Function *function)
 This notification is posted whenever a Function is removed from a Component. More...
 
virtual void OnComponentDataVariableAdded (BinaryView *data, Component *component, const DataVariable &var)
 This notification is posted whenever a DataVariable is added to a Component. More...
 
virtual void OnComponentDataVariableRemoved (BinaryView *data, Component *component, const DataVariable &var)
 This notification is posted whenever a DataVariable is removed from a Component. More...
 
virtual void OnExternalLibraryAdded (BinaryView *data, ExternalLibrary *library)
 
virtual void OnExternalLibraryRemoved (BinaryView *data, ExternalLibrary *library)
 
virtual void OnExternalLibraryUpdated (BinaryView *data, ExternalLibrary *library)
 
virtual void OnExternalLocationAdded (BinaryView *data, ExternalLocation *location)
 
virtual void OnExternalLocationRemoved (BinaryView *data, ExternalLocation *location)
 
virtual void OnExternalLocationUpdated (BinaryView *data, ExternalLocation *location)
 
virtual void OnTypeArchiveAttached (BinaryView *data, const std::string &id, const std::string &path)
 This notification is posted whenever a Type Archive is attached to a Binary View. More...
 
virtual void OnTypeArchiveDetached (BinaryView *data, const std::string &id, const std::string &path)
 This notification is posted whenever a Type Archive is detached to a Binary View. More...
 
virtual void OnTypeArchiveConnected (BinaryView *data, TypeArchive *archive)
 This notification is posted whenever a previously disconnected Type Archive attached to the Binary View is connected. More...
 
virtual void OnTypeArchiveDisconnected (BinaryView *data, TypeArchive *archive)
 This notification is posted whenever a previously connected Type Archive attached to the Binary View is disconnected. More...
 
virtual void OnUndoEntryAdded (BinaryView *data, UndoEntry *entry)
 This notification is posted whenever an entry is added to undo history. More...
 
virtual void OnUndoEntryTaken (BinaryView *data, UndoEntry *entry)
 This notification is posted whenever an action is undone. More...
 
virtual void OnRedoEntryTaken (BinaryView *data, UndoEntry *entry)
 This notification is posted whenever an action is redone. More...
 
virtual void OnRebased (BinaryView *oldView, BinaryView *newView)
 This notification is posted whenever a binary view is rebased. More...
 

Additional Inherited Members

- Public Types inherited from BinaryNinja::BinaryDataNotification
enum  NotificationType : uint64_t {
  NotificationBarrier = 1ULL << 0 , DataWritten = 1ULL << 1 , DataInserted = 1ULL << 2 , DataRemoved = 1ULL << 3 ,
  FunctionAdded = 1ULL << 4 , FunctionRemoved = 1ULL << 5 , FunctionUpdated = 1ULL << 6 , FunctionUpdateRequested = 1ULL << 7 ,
  DataVariableAdded = 1ULL << 8 , DataVariableRemoved = 1ULL << 9 , DataVariableUpdated = 1ULL << 10 , DataMetadataUpdated = 1ULL << 11 ,
  TagTypeUpdated = 1ULL << 12 , TagAdded = 1ULL << 13 , TagRemoved = 1ULL << 14 , TagUpdated = 1ULL << 15 ,
  SymbolAdded = 1ULL << 16 , SymbolRemoved = 1ULL << 17 , SymbolUpdated = 1ULL << 18 , StringFound = 1ULL << 19 ,
  StringRemoved = 1ULL << 20 , TypeDefined = 1ULL << 21 , TypeUndefined = 1ULL << 22 , TypeReferenceChanged = 1ULL << 23 ,
  TypeFieldReferenceChanged = 1ULL << 24 , SegmentAdded = 1ULL << 25 , SegmentRemoved = 1ULL << 26 , SegmentUpdated = 1ULL << 27 ,
  SectionAdded = 1ULL << 28 , SectionRemoved = 1ULL << 29 , SectionUpdated = 1ULL << 30 , ComponentNameUpdated = 1ULL << 31 ,
  ComponentAdded = 1ULL << 32 , ComponentRemoved = 1ULL << 33 , ComponentMoved = 1ULL << 34 , ComponentFunctionAdded = 1ULL << 35 ,
  ComponentFunctionRemoved = 1ULL << 36 , ComponentDataVariableAdded = 1ULL << 37 , ComponentDataVariableRemoved = 1ULL << 38 , ExternalLibraryAdded = 1ULL << 39 ,
  ExternalLibraryRemoved = 1ULL << 40 , ExternalLibraryUpdated = 1ULL << 41 , ExternalLocationAdded = 1ULL << 42 , ExternalLocationRemoved = 1ULL << 43 ,
  ExternalLocationUpdated = 1ULL << 44 , TypeArchiveAttached = 1ULL << 45 , TypeArchiveDetached = 1ULL << 46 , TypeArchiveConnected = 1ULL << 47 ,
  TypeArchiveDisconnected = 1ULL << 48 , UndoEntryAdded = 1ULL << 49 , UndoEntryTaken = 1ULL << 50 , RedoEntryTaken = 1ULL << 51 ,
  Rebased = 1ULL << 52 , BinaryDataUpdates = DataWritten | DataInserted | DataRemoved , FunctionLifetime = FunctionAdded | FunctionRemoved , FunctionUpdates = FunctionLifetime | FunctionUpdated ,
  DataVariableLifetime = DataVariableAdded | DataVariableRemoved , DataVariableUpdates = DataVariableLifetime | DataVariableUpdated , TagLifetime = TagAdded | TagRemoved , TagUpdates = TagLifetime | TagUpdated ,
  SymbolLifetime = SymbolAdded | SymbolRemoved , SymbolUpdates = SymbolLifetime | SymbolUpdated , StringUpdates = StringFound | StringRemoved , TypeLifetime = TypeDefined | TypeUndefined ,
  TypeUpdates = TypeLifetime | TypeReferenceChanged | TypeFieldReferenceChanged , SegmentLifetime = SegmentAdded | SegmentRemoved , SegmentUpdates = SegmentLifetime | SegmentUpdated , SectionLifetime = SectionAdded | SectionRemoved ,
  SectionUpdates = SectionLifetime | SectionUpdated , ComponentUpdates = ComponentNameUpdated | ComponentAdded | ComponentRemoved | ComponentMoved | ComponentFunctionAdded | ComponentFunctionRemoved | ComponentDataVariableAdded | ComponentDataVariableRemoved , ExternalLibraryLifetime = ExternalLibraryAdded | ExternalLibraryRemoved , ExternalLibraryUpdates = ExternalLibraryLifetime | ExternalLibraryUpdated ,
  ExternalLocationLifetime = ExternalLocationAdded | ExternalLocationRemoved , ExternalLocationUpdates = ExternalLocationLifetime | ExternalLocationUpdated , TypeArchiveUpdates = TypeArchiveAttached | TypeArchiveDetached | TypeArchiveConnected | TypeArchiveDisconnected , UndoUpdates = UndoEntryAdded | UndoEntryTaken | RedoEntryTaken
}
 
using NotificationTypes = uint64_t
 

Constructor & Destructor Documentation

◆ StringsListModel()

StringsListModel::StringsListModel ( QWidget *  parent,
BinaryViewRef  data 
)

◆ ~StringsListModel()

virtual StringsListModel::~StringsListModel ( )
virtual

Member Function Documentation

◆ index()

virtual QModelIndex StringsListModel::index ( int  row,
int  col,
const QModelIndex &  parent 
) const
overridevirtual

◆ parent()

virtual QModelIndex StringsListModel::parent ( const QModelIndex &  i) const
overridevirtual

◆ hasChildren()

virtual bool StringsListModel::hasChildren ( const QModelIndex &  parent) const
overridevirtual

◆ rowCount()

virtual int StringsListModel::rowCount ( const QModelIndex &  parent) const
overridevirtual

◆ columnCount()

virtual int StringsListModel::columnCount ( const QModelIndex &  parent) const
overridevirtual

◆ data()

virtual QVariant StringsListModel::data ( const QModelIndex &  i,
int  role 
) const
overridevirtual

◆ getStringAt()

BNStringReference StringsListModel::getStringAt ( const QModelIndex &  i)

◆ findString()

QModelIndex StringsListModel::findString ( const BNStringReference ref)

◆ OnStringFound()

virtual void StringsListModel::OnStringFound ( BinaryNinja::BinaryView data,
BNStringType  type,
uint64_t  offset,
size_t  len 
)
overridevirtual

◆ OnStringRemoved()

virtual void StringsListModel::OnStringRemoved ( BinaryNinja::BinaryView data,
BNStringType  type,
uint64_t  offset,
size_t  len 
)
overridevirtual

◆ updateStrings()

void StringsListModel::updateStrings ( )

◆ setFilter()

void StringsListModel::setFilter ( const std::string &  filter)

◆ updateFilter()

void StringsListModel::updateFilter ( )
inline

◆ getFilteredStringCount()

size_t StringsListModel::getFilteredStringCount ( ) const
inline

◆ getStringCount()

size_t StringsListModel::getStringCount ( ) const
inline

◆ toggleIncludeStringsOverlappingCode()

void StringsListModel::toggleIncludeStringsOverlappingCode ( )
inline

◆ toggleIncludeOnlyReferenced()

void StringsListModel::toggleIncludeOnlyReferenced ( )
inline

◆ toggleIncludeOnlyFromCurrentFunction()

void StringsListModel::toggleIncludeOnlyFromCurrentFunction ( )
inline

◆ includeStringsOverlappingCode()

void StringsListModel::includeStringsOverlappingCode ( bool  exclude)
inline

◆ includeOnlyReferenced()

void StringsListModel::includeOnlyReferenced ( bool  exclude)
inline

◆ includeOnlyFromCurrentFunction()

void StringsListModel::includeOnlyFromCurrentFunction ( bool  exclude)
inline

◆ getIncludeStringsOverlappingCode()

bool StringsListModel::getIncludeStringsOverlappingCode ( ) const
inline

◆ getIncludeOnlyReferenced()

bool StringsListModel::getIncludeOnlyReferenced ( ) const
inline

◆ getIncludeOnlyFromCurrentFunction()

bool StringsListModel::getIncludeOnlyFromCurrentFunction ( ) const
inline

◆ StringItemDelegate

class StringItemDelegate

Public Member Functions

 StringItemDelegate (QWidget *parent)
 
void updateFonts ()
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &idx) const override
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override
 
QFont getFont () const
 

Constructor & Destructor Documentation

◆ StringItemDelegate()

StringItemDelegate::StringItemDelegate ( QWidget *  parent)

Member Function Documentation

◆ updateFonts()

void StringItemDelegate::updateFonts ( )

◆ sizeHint()

virtual QSize StringItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  idx 
) const
overridevirtual

◆ paint()

virtual void StringItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  idx 
) const
overridevirtual

◆ getFont()

QFont StringItemDelegate::getFont ( ) const
inline

◆ StringsView

class StringsView

Public Member Functions

 StringsView (BinaryViewRef data, StringsContainer *container)
 
virtual BinaryViewRef getData () override
 
virtual uint64_t getCurrentOffset () override
 
virtual BNAddressRange getSelectionOffsets () override
 
virtual void setSelectionOffsets (BNAddressRange range) override
 
virtual bool navigate (uint64_t offset) override
 
virtual void updateFonts () override
 
virtual StatusBarWidgetgetStatusBarWidget () override
 
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 
virtual void setFilter (const std::string &filter) override
 
virtual void scrollToFirstItem () override
 
virtual void scrollToCurrentItem () override
 
virtual void selectFirstItem () override
 
virtual void activateFirstItem () override
 
virtual QFont getFont () override
 
bool getIncludeStringsOverlappingCode () const
 
bool getIncludeOnlyReferenced () const
 
bool getIncludeOnlyFromCurrentFunction () const
 
void toggleIncludeStringsOverlappingCode () const
 
void toggleIncludeOnlyReferenced () const
 
void toggleIncludeOnlyFromCurrentFunction () const
 
void resetFilterOptions ()
 
void copyText ()
 
virtual bool canCopy () override
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
void enableRefreshTimer (QWidget *owner, int interval)
 
void setRefreshQuiesce (bool enable)
 
bool isQuiesced () const
 
virtual void notifyRefresh ()
 
virtual void notifyQuiesce (bool)
 
void setupView (QWidget *widget)
 
virtual bool canAssemble ()
 
virtual bool canCompile ()
 
virtual bool findNextData (uint64_t start, uint64_t end, const BinaryNinja::DataBuffer &data, uint64_t &addr, BNFindFlag flags, const std::function< bool(size_t current, size_t total)> &cb)
 
virtual bool findNextText (uint64_t start, uint64_t end, const std::string &text, uint64_t &addr, DisassemblySettingsRef settings, BNFindFlag flags, BNFunctionGraphType graph, const std::function< bool(size_t current, size_t total)> &cb)
 
virtual bool findNextConstant (uint64_t start, uint64_t end, uint64_t constant, uint64_t &addr, DisassemblySettingsRef settings, BNFunctionGraphType graph, const std::function< bool(size_t current, size_t total)> &cb)
 
virtual bool findAllData (uint64_t start, uint64_t end, const BinaryNinja::DataBuffer &data, BNFindFlag flags, const std::function< bool(size_t current, size_t total)> &cb, const std::function< bool(uint64_t addr, const BinaryNinja::DataBuffer &match)> &matchCallback)
 
virtual bool findAllText (uint64_t start, uint64_t end, const std::string &data, DisassemblySettingsRef settings, BNFindFlag flags, BNFunctionGraphType graph, const std::function< bool(size_t current, size_t total)> &cb, const std::function< bool(uint64_t addr, const std::string &match, const BinaryNinja::LinearDisassemblyLine &line)> &matchCallback)
 
virtual bool findAllConstant (uint64_t start, uint64_t end, uint64_t constant, DisassemblySettingsRef settings, BNFunctionGraphType graph, const std::function< bool(size_t current, size_t total)> &cb, const std::function< bool(uint64_t addr, const BinaryNinja::LinearDisassemblyLine &line)> &matchCallback)
 
virtual BinaryViewRef getData ()=0
 
virtual uint64_t getCurrentOffset ()=0
 
virtual BNAddressRange getSelectionOffsets ()
 
virtual SelectionInfoForXref getSelectionForXref ()
 
virtual void setSelectionOffsets (BNAddressRange range)=0
 
virtual bool navigate (uint64_t offset)=0
 
virtual bool navigateToFunction (FunctionRef func, uint64_t offset)
 
virtual bool goToReference (FunctionRef func, uint64_t source, uint64_t target)
 
virtual bool navigateToViewLocation (const ViewLocation &viewLocation, bool center=false)
 
bool navigateOnOtherPane (uint64_t offset)
 
bool navigateToFunctionOnOtherPane (FunctionRef func, uint64_t offset)
 
bool isBinaryDataNavigable ()
 
void setBinaryDataNavigable (bool navigable)
 
virtual bool closeRequest ()
 
virtual void closing ()
 
virtual void updateFonts ()
 
virtual void updateTheme ()
 
virtual void undo ()
 
virtual void redo ()
 
virtual bool canUndo ()
 
virtual bool canRedo ()
 
virtual void cut ()
 
virtual void copy (TransformRef xform=nullptr)
 
virtual void copyAddress ()
 
virtual void paste (TransformRef xform=nullptr)
 
virtual bool canCut ()
 
virtual bool canCopy ()
 
virtual bool canCopyWithTransform ()
 
virtual bool canCopyAddress ()
 
virtual bool canPaste ()
 
virtual bool canPasteWithTransform ()
 
virtual void transform (TransformRef xform, bool encode)
 
virtual bool canTransform ()
 
virtual void writeData (const BinaryNinja::DataBuffer &data, uint64_t addr)
 
virtual bool canDisplayAs (const UIActionContext &context, const BNIntegerDisplayType)
 
virtual void displayAs (const UIActionContext &context, BNIntegerDisplayType type)
 
virtual BinaryNinja::Ref< HistoryEntrygetHistoryEntry ()
 
virtual void navigateToHistoryEntry (BinaryNinja::Ref< HistoryEntry > entry)
 
virtual StatusBarWidgetgetStatusBarWidget ()
 
virtual ViewPaneHeaderSubtypeWidgetgetHeaderSubtypeWidget ()
 
virtual QWidget * getHeaderOptionsWidget ()
 
virtual FunctionRef getCurrentFunction ()
 
virtual BasicBlockRef getCurrentBasicBlock ()
 
virtual ArchitectureRef getCurrentArchitecture ()
 
virtual LowLevelILFunctionRef getCurrentLowLevelILFunction ()
 
virtual MediumLevelILFunctionRef getCurrentMediumLevelILFunction ()
 
virtual HighLevelILFunctionRef getCurrentHighLevelILFunction ()
 
virtual BNFunctionGraphType getILViewType ()
 
virtual void setILViewType (BNFunctionGraphType ilViewType)
 
virtual size_t getCurrentILInstructionIndex ()
 
virtual size_t getSelectionStartILInstructionIndex ()
 
virtual BNILIndexRange getILIndexRange ()
 
virtual QFont getFont ()=0
 
virtual DisassemblySettingsRef getDisassemblySettings ()
 
virtual void setDisassemblySettings (DisassemblySettingsRef settings)
 
virtual HighlightTokenState getHighlightTokenState ()
 
virtual UIActionContext actionContext ()
 
MenucontextMenu ()
 
UIActionHandleractionHandler ()
 
QWidget * widget ()
 
QString viewType ()
 
void updateCrossReferenceSelection (ViewFrame *frame=nullptr)
 
void forceSyncFromView (ViewFrame *frame=nullptr)
 
virtual void clearRelatedHighlights ()
 
virtual void setRelatedIndexHighlights (FunctionRef func, const std::set< size_t > &related)
 
virtual void setRelatedInstructionHighlights (FunctionRef func, const std::set< uint64_t > &related)
 
- Public Member Functions inherited from FilterTarget
virtual ~FilterTarget ()
 
virtual void setFilter (const std::string &filter)=0
 
virtual void scrollToFirstItem ()=0
 
virtual void scrollToCurrentItem ()=0
 
virtual void selectFirstItem ()=0
 
virtual void activateFirstItem ()=0
 
virtual void closeFilter ()
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual bool event (QEvent *event) override
 
- Protected Member Functions inherited from View
bool writeDataToClipboard (const BinaryNinja::DataBuffer &data, bool binary, TransformRef xform)
 
BinaryNinja::DataBuffer readDataFromClipboard (TransformRef xform)
 
virtual std::string getNavigationMode ()
 
virtual void setNavigationMode (std::string mode)
 
virtual std::vector< std::string > getNavigationModes ()
 

Additional Inherited Members

- Static Public Member Functions inherited from View
static ViewgetViewFromWidget (QWidget *widget)
 
static void registerActions ()
 
static void registerLateActions ()
 
- Protected Attributes inherited from View
Menu m_contextMenu
 
UIActionHandler m_actionHandler
 
bool m_binaryDataNavigable = false
 
QPointer< TransformParameterDialogm_transformParamDialog
 
bool m_quiesceState = true
 
QTimer * m_updateTimer = nullptr
 

Constructor & Destructor Documentation

◆ StringsView()

StringsView::StringsView ( BinaryViewRef  data,
StringsContainer container 
)

Member Function Documentation

◆ getData()

virtual BinaryViewRef StringsView::getData ( )
inlineoverridevirtual

Implements View.

◆ getCurrentOffset()

virtual uint64_t StringsView::getCurrentOffset ( )
overridevirtual

Implements View.

◆ getSelectionOffsets()

virtual BNAddressRange StringsView::getSelectionOffsets ( )
overridevirtual

Reimplemented from View.

◆ setSelectionOffsets()

virtual void StringsView::setSelectionOffsets ( BNAddressRange  range)
overridevirtual

Implements View.

◆ navigate()

virtual bool StringsView::navigate ( uint64_t  offset)
overridevirtual

Implements View.

◆ updateFonts()

virtual void StringsView::updateFonts ( )
overridevirtual

Reimplemented from View.

◆ getStatusBarWidget()

virtual StatusBarWidget * StringsView::getStatusBarWidget ( )
overridevirtual

Reimplemented from View.

◆ selectionChanged()

virtual void StringsView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
overridevirtual

◆ setFilter()

virtual void StringsView::setFilter ( const std::string &  filter)
overridevirtual

Implements FilterTarget.

◆ scrollToFirstItem()

virtual void StringsView::scrollToFirstItem ( )
overridevirtual

Implements FilterTarget.

◆ scrollToCurrentItem()

virtual void StringsView::scrollToCurrentItem ( )
overridevirtual

Implements FilterTarget.

◆ selectFirstItem()

virtual void StringsView::selectFirstItem ( )
overridevirtual

Implements FilterTarget.

◆ activateFirstItem()

virtual void StringsView::activateFirstItem ( )
overridevirtual

Implements FilterTarget.

◆ getFont()

virtual QFont StringsView::getFont ( )
inlineoverridevirtual

Implements View.

◆ getIncludeStringsOverlappingCode()

bool StringsView::getIncludeStringsOverlappingCode ( ) const
inline

◆ getIncludeOnlyReferenced()

bool StringsView::getIncludeOnlyReferenced ( ) const
inline

◆ getIncludeOnlyFromCurrentFunction()

bool StringsView::getIncludeOnlyFromCurrentFunction ( ) const
inline

◆ toggleIncludeStringsOverlappingCode()

void StringsView::toggleIncludeStringsOverlappingCode ( ) const
inline

◆ toggleIncludeOnlyReferenced()

void StringsView::toggleIncludeOnlyReferenced ( ) const
inline

◆ toggleIncludeOnlyFromCurrentFunction()

void StringsView::toggleIncludeOnlyFromCurrentFunction ( ) const
inline

◆ resetFilterOptions()

void StringsView::resetFilterOptions ( )

◆ copyText()

void StringsView::copyText ( )

◆ canCopy()

virtual bool StringsView::canCopy ( )
overridevirtual

Reimplemented from View.

◆ keyPressEvent()

virtual void StringsView::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ mouseMoveEvent()

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

◆ mousePressEvent()

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

◆ paintEvent()

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

◆ event()

virtual bool StringsView::event ( QEvent *  event)
overrideprotectedvirtual

◆ StringsContainer

class StringsContainer

Public Member Functions

 StringsContainer (BinaryViewRef data, StringsViewSidebarWidget *parent, bool separateEdit=false)
 
virtual ViewgetView () override
 
StringsViewgetStringsView ()
 
FilteredViewgetFilter ()
 
FilterEditgetSeparateFilterEdit ()
 
- Public Member Functions inherited from ViewContainer
virtual ~ViewContainer ()
 
virtual ViewgetView ()=0
 

Protected Member Functions

virtual void focusInEvent (QFocusEvent *event) override
 

Friends

class StringsView
 

Constructor & Destructor Documentation

◆ StringsContainer()

StringsContainer::StringsContainer ( BinaryViewRef  data,
StringsViewSidebarWidget parent,
bool  separateEdit = false 
)

Member Function Documentation

◆ getView()

virtual View * StringsContainer::getView ( )
inlineoverridevirtual

Implements ViewContainer.

◆ getStringsView()

StringsView * StringsContainer::getStringsView ( )
inline

◆ getFilter()

FilteredView * StringsContainer::getFilter ( )
inline

◆ getSeparateFilterEdit()

FilterEdit * StringsContainer::getSeparateFilterEdit ( )
inline

◆ focusInEvent()

virtual void StringsContainer::focusInEvent ( QFocusEvent *  event)
overrideprotectedvirtual

Friends And Related Function Documentation

◆ StringsView

friend class StringsView
friend

◆ StringsViewType

class StringsViewType

Public Member Functions

 StringsViewType ()
 
virtual int getPriority (BinaryViewRef data, const QString &filename)
 
virtual QWidget * create (BinaryViewRef data, ViewFrame *viewFrame)
 
- Public Member Functions inherited from ViewType
 ViewType (const QString &name, const QString &longName)
 
virtual ~ViewType ()
 
const QString & getName ()
 
const QString & getLongName ()
 
virtual int getPriority (BinaryViewRef data, const QString &filename)=0
 
virtual QWidget * create (BinaryViewRef data, ViewFrame *viewFrame)=0
 
virtual QString getDisplayName (BinaryViewTypeRef type)
 
virtual QString getDisplayLongName (BinaryViewTypeRef type)
 

Static Public Member Functions

static void init ()
 
- Static Public Member Functions inherited from ViewType
static ViewTypegetTypeByName (const QString &name)
 
static const std::vector< ViewType * > & getTypes ()
 
static void registerViewType (ViewType *type)
 

Constructor & Destructor Documentation

◆ StringsViewType()

StringsViewType::StringsViewType ( )

Member Function Documentation

◆ getPriority()

virtual int StringsViewType::getPriority ( BinaryViewRef  data,
const QString &  filename 
)
virtual

Implements ViewType.

◆ create()

virtual QWidget * StringsViewType::create ( BinaryViewRef  data,
ViewFrame viewFrame 
)
virtual

Implements ViewType.

◆ init()

static void StringsViewType::init ( )
static

◆ StringsViewSidebarWidget

class StringsViewSidebarWidget

Public Member Functions

 StringsViewSidebarWidget (BinaryViewRef data)
 
virtual QWidget * headerWidget () override
 
virtual void focus () override
 
- Public Member Functions inherited from SidebarWidget
 SidebarWidget (const QString &title)
 
 ~SidebarWidget ()
 
const QString & title () const
 
void enableRefreshTimer (int interval)
 
void setRefreshQuiesce (bool enable)
 
bool isQuiesced () const
 
virtual void notifyRefresh ()
 
virtual void notifyQuiesce (bool)
 
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 ()
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event) override
 

Friends

class StringsView
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ StringsViewSidebarWidget()

StringsViewSidebarWidget::StringsViewSidebarWidget ( BinaryViewRef  data)

Member Function Documentation

◆ headerWidget()

virtual QWidget * StringsViewSidebarWidget::headerWidget ( )
inlineoverridevirtual

Reimplemented from SidebarWidget.

◆ focus()

virtual void StringsViewSidebarWidget::focus ( )
overridevirtual

Reimplemented from SidebarWidget.

◆ contextMenuEvent()

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

Friends And Related Function Documentation

◆ StringsView

friend class StringsView
friend

◆ StringsViewSidebarWidgetType

class StringsViewSidebarWidgetType

Public Member Functions

 StringsViewSidebarWidgetType ()
 
SidebarWidgetLocation defaultLocation () const override
 
SidebarContextSensitivity contextSensitivity () const override
 
virtual SidebarWidgetcreateWidget (ViewFrame *frame, BinaryViewRef data) override
 
virtual bool canUseAsPane (SplitPaneWidget *, BinaryViewRef) const override
 
virtual PanecreatePane (SplitPaneWidget *panes, 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

◆ StringsViewSidebarWidgetType()

StringsViewSidebarWidgetType::StringsViewSidebarWidgetType ( )

Member Function Documentation

◆ defaultLocation()

SidebarWidgetLocation StringsViewSidebarWidgetType::defaultLocation ( ) const
inlineoverridevirtual

Reimplemented from SidebarWidgetType.

◆ contextSensitivity()

SidebarContextSensitivity StringsViewSidebarWidgetType::contextSensitivity ( ) const
inlineoverridevirtual

Reimplemented from SidebarWidgetType.

◆ createWidget()

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

Reimplemented from SidebarWidgetType.

◆ canUseAsPane()

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

Reimplemented from SidebarWidgetType.

◆ createPane()

virtual Pane * StringsViewSidebarWidgetType::createPane ( SplitPaneWidget panes,
BinaryViewRef  data 
)
overridevirtual

Reimplemented from SidebarWidgetType.