Classes | |
| struct | TokenizedTextWidgetCursorPosition |
| class | TokenizedTextWidget |
| QWidget that displays lines of InstructionTextTokens with the ability to make selections. More... | |
| struct | TokenizedTextWidget::LineMetadata |
| struct | TokenizedTextWidget::TokenMetadata |
Enumerations | |
| enum | TokenizedTextWidgetSelectionStyle { NoSelection = 1 << 0 , SelectLines = 1 << 1 , SelectOneToken = 1 << 2 , SelectTokens = 1 << 3 , SelectCharacters = 1 << 4 , AllStyles = NoSelection | SelectLines | SelectOneToken | SelectTokens | SelectCharacters } |
| struct TokenizedTextWidgetCursorPosition |
Public Member Functions | |
| bool | isValid () const |
| bool | operator== (const TokenizedTextWidgetCursorPosition &other) const |
| bool | operator!= (const TokenizedTextWidgetCursorPosition &other) const |
| bool | operator< (const TokenizedTextWidgetCursorPosition &other) const |
Public Attributes | |
| size_t | lineIndex = BN_INVALID_OPERAND |
| Index of line in widget. | |
| size_t | tokenIndex = BN_INVALID_OPERAND |
| Index of token in current line. | |
| size_t | characterIndex = BN_INVALID_OPERAND |
| Index of character in current token. | |
| int | cursorX |
| int | cursorY |
|
inline |
| bool TokenizedTextWidgetCursorPosition::operator== | ( | const TokenizedTextWidgetCursorPosition & | other | ) | const |
|
inline |
| bool TokenizedTextWidgetCursorPosition::operator< | ( | const TokenizedTextWidgetCursorPosition & | other | ) | const |
| size_t TokenizedTextWidgetCursorPosition::lineIndex = BN_INVALID_OPERAND |
Index of line in widget.
| size_t TokenizedTextWidgetCursorPosition::tokenIndex = BN_INVALID_OPERAND |
Index of token in current line.
| size_t TokenizedTextWidgetCursorPosition::characterIndex = BN_INVALID_OPERAND |
Index of character in current token.
| int TokenizedTextWidgetCursorPosition::cursorX |
| int TokenizedTextWidgetCursorPosition::cursorY |
| class TokenizedTextWidget |
QWidget that displays lines of InstructionTextTokens with the ability to make selections.
Signals | |
| void | sizeChanged (int cols, int rows) |
| void | visibleChanged (int leftCol, int topRow) |
| void | linesChanged () |
| void | selectionChanged (const TokenizedTextWidgetCursorPosition &begin, const TokenizedTextWidgetCursorPosition &end) |
| void | tokenLeftClicked (const TokenizedTextWidgetCursorPosition &position) |
| void | tokenRightClicked (const TokenizedTextWidgetCursorPosition &position) |
| void | tokenDoubleClicked (const TokenizedTextWidgetCursorPosition &position) |
| void | tokenOtherClicked (const TokenizedTextWidgetCursorPosition &position, Qt::MouseButton button) |
| void | tokenHovered (const TokenizedTextWidgetCursorPosition &position) |
| void | lineLeftClicked (size_t lineIndex) |
| void | lineRightClicked (size_t lineIndex) |
| void | lineDoubleClicked (size_t lineIndex) |
| void | lineOtherClicked (size_t lineIndex, Qt::MouseButton button) |
| void | lineHovered (size_t lineIndex) |
Public Member Functions | |
| TokenizedTextWidget (QWidget *parent, const std::vector< BinaryNinja::LinearDisassemblyLine > &lines=std::vector< BinaryNinja::LinearDisassemblyLine >()) | |
| virtual | ~TokenizedTextWidget () |
| void | bindActions () |
| QFont | font () const |
| void | setFont (const QFont &font) |
| DisassemblySettingsRef | settings () |
| const DisassemblySettingsRef & | settings () const |
| int | topLineIndex () const |
| int | leftmostCharIndex () const |
| int | visibleColumnCount () const |
| int | visibleRowCount () const |
| int | contentsColumnCount () const |
| int | contentsRowCount () const |
| bool | hasSelection () const |
| TokenizedTextWidgetSelectionStyle | selectionStyle () const |
| TokenizedTextWidgetCursorPosition | selectionBegin () const |
| TokenizedTextWidgetCursorPosition | selectionEnd () const |
| TokenizedTextWidgetCursorPosition | selectionBase () const |
| TokenizedTextWidgetCursorPosition | cursorPosition () const |
| bool | forceLineSelect () const |
| void | setForceLineSelect (bool value) |
| void | setSelection (TokenizedTextWidgetCursorPosition base, TokenizedTextWidgetCursorPosition cursor, TokenizedTextWidgetSelectionStyle mode) |
| void | setCursorPosition (TokenizedTextWidgetCursorPosition newPosition, bool selecting, bool cursorKeys, bool evenIfNoChange) |
| void | moveCursorHorizontal (int count, bool allTheWay, bool selecting, bool cursorKeys) |
| void | moveCursorVertical (int count, bool allTheWay, bool selecting, bool cursorKeys) |
| bool | autoScrollHorizontal () const |
| void | setAutoScrollHorizontal (bool value) |
| bool | autoScrollVertical () const |
| void | setAutoScrollVertical (bool value) |
| HighlightTokenState | highlightTokenState () |
| UIActionHandler * | actionHandler () |
| virtual UIActionContext | actionContext () |
| Menu & | contextMenu () |
| void | showContextMenu () |
| void | left (size_t count, bool selecting) |
| void | right (size_t count, bool selecting) |
| void | leftToWord (bool selecting) |
| void | rightToWord (bool selecting) |
| void | up (bool selecting) |
| void | down (bool selecting) |
| void | pageUp (bool selecting) |
| void | pageDown (bool selecting) |
| void | moveToStartOfLine (bool selecting) |
| void | moveToEndOfLine (bool selecting) |
| void | moveToStartOfView (bool selecting) |
| void | moveToEndOfView (bool selecting) |
| void | selectAll () |
| void | selectNone () |
| void | scrollLines (int count) |
| void | scrollLineToVisible (int lineIndex) |
| void | scrollLineToTop (int lineIndex) |
| void | scrollChars (int count) |
| void | scrollCharToVisible (int charIndex) |
| void | scrollCharToLeftmost (int charIndex) |
| void | copy () const |
| std::string | selectedText () const |
| const std::vector< BinaryNinja::LinearDisassemblyLine > & | lines () const |
| std::optional< std::reference_wrapper< const BinaryNinja::LinearDisassemblyLine > > | lineAtPosition (const TokenizedTextWidgetCursorPosition &position) const |
| std::optional< std::reference_wrapper< const BinaryNinja::InstructionTextToken > > | tokenAtPosition (const TokenizedTextWidgetCursorPosition &position) const |
| std::optional< char > | charAtPosition (const TokenizedTextWidgetCursorPosition &position) const |
| void | clearLines () |
| void | setLines (const std::vector< BinaryNinja::LinearDisassemblyLine > &lines, bool resetScroll=true) |
| void | setLines (const std::vector< BinaryNinja::DisassemblyTextLine > &lines, bool resetScroll=true) |
| void | setLines (const std::vector< BinaryNinja::TypeDefinitionLine > &lines, bool resetScroll=true) |
| int | lineCopyStyles (size_t lineIndex) const |
| void | setLineCopyStyles (size_t lineIndex, int styles) |
| int | tokenCopyStyles (size_t lineIndex, size_t tokenIndex) const |
| void | setTokenCopyStyles (size_t lineIndex, size_t tokenIndex, int styles) |
| bool | tokenSelectLineTarget (size_t lineIndex, size_t tokenIndex) const |
| void | setTokenSelectLineTarget (size_t lineIndex, size_t tokenIndex, bool selectLineTarget) |
Protected Member Functions | |
| virtual void | updateMetadata (const std::vector< BinaryNinja::LinearDisassemblyLine > &lines, int &width, int &height) |
| virtual void | resizeEvent (QResizeEvent *event) override |
| virtual void | paintEvent (QPaintEvent *event) override |
| virtual void | wheelEvent (QWheelEvent *event) override |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
| virtual void | leaveEvent (QEvent *event) override |
| virtual void | focusInEvent (QFocusEvent *event) override |
| virtual void | focusOutEvent (QFocusEvent *event) override |
| virtual void | contextMenuEvent (QContextMenuEvent *event) override |
|
explicit |
|
virtual |
|
protectedvirtual |
| void TokenizedTextWidget::bindActions | ( | ) |
| QFont TokenizedTextWidget::font | ( | ) | const |
| void TokenizedTextWidget::setFont | ( | const QFont & | font | ) |
|
inline |
|
inline |
| int TokenizedTextWidget::topLineIndex | ( | ) | const |
| int TokenizedTextWidget::leftmostCharIndex | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| bool TokenizedTextWidget::hasSelection | ( | ) | const |
| TokenizedTextWidgetSelectionStyle TokenizedTextWidget::selectionStyle | ( | ) | const |
| TokenizedTextWidgetCursorPosition TokenizedTextWidget::selectionBegin | ( | ) | const |
| TokenizedTextWidgetCursorPosition TokenizedTextWidget::selectionEnd | ( | ) | const |
| TokenizedTextWidgetCursorPosition TokenizedTextWidget::selectionBase | ( | ) | const |
| TokenizedTextWidgetCursorPosition TokenizedTextWidget::cursorPosition | ( | ) | const |
|
inline |
|
inline |
| void TokenizedTextWidget::setSelection | ( | TokenizedTextWidgetCursorPosition | base, |
| TokenizedTextWidgetCursorPosition | cursor, | ||
| TokenizedTextWidgetSelectionStyle | mode ) |
| void TokenizedTextWidget::setCursorPosition | ( | TokenizedTextWidgetCursorPosition | newPosition, |
| bool | selecting, | ||
| bool | cursorKeys, | ||
| bool | evenIfNoChange ) |
| void TokenizedTextWidget::moveCursorHorizontal | ( | int | count, |
| bool | allTheWay, | ||
| bool | selecting, | ||
| bool | cursorKeys ) |
| void TokenizedTextWidget::moveCursorVertical | ( | int | count, |
| bool | allTheWay, | ||
| bool | selecting, | ||
| bool | cursorKeys ) |
|
inline |
|
inline |
|
inline |
|
inline |
| HighlightTokenState TokenizedTextWidget::highlightTokenState | ( | ) |
|
inline |
|
virtual |
|
inline |
| void TokenizedTextWidget::showContextMenu | ( | ) |
| void TokenizedTextWidget::left | ( | size_t | count, |
| bool | selecting ) |
| void TokenizedTextWidget::right | ( | size_t | count, |
| bool | selecting ) |
| void TokenizedTextWidget::leftToWord | ( | bool | selecting | ) |
| void TokenizedTextWidget::rightToWord | ( | bool | selecting | ) |
| void TokenizedTextWidget::up | ( | bool | selecting | ) |
| void TokenizedTextWidget::down | ( | bool | selecting | ) |
| void TokenizedTextWidget::pageUp | ( | bool | selecting | ) |
| void TokenizedTextWidget::pageDown | ( | bool | selecting | ) |
| void TokenizedTextWidget::moveToStartOfLine | ( | bool | selecting | ) |
| void TokenizedTextWidget::moveToEndOfLine | ( | bool | selecting | ) |
| void TokenizedTextWidget::moveToStartOfView | ( | bool | selecting | ) |
| void TokenizedTextWidget::moveToEndOfView | ( | bool | selecting | ) |
| void TokenizedTextWidget::selectAll | ( | ) |
| void TokenizedTextWidget::selectNone | ( | ) |
| void TokenizedTextWidget::scrollLines | ( | int | count | ) |
| void TokenizedTextWidget::scrollLineToVisible | ( | int | lineIndex | ) |
| void TokenizedTextWidget::scrollLineToTop | ( | int | lineIndex | ) |
| void TokenizedTextWidget::scrollChars | ( | int | count | ) |
| void TokenizedTextWidget::scrollCharToVisible | ( | int | charIndex | ) |
| void TokenizedTextWidget::scrollCharToLeftmost | ( | int | charIndex | ) |
| void TokenizedTextWidget::copy | ( | ) | const |
| std::string TokenizedTextWidget::selectedText | ( | ) | const |
|
inline |
| std::optional< std::reference_wrapper< const BinaryNinja::LinearDisassemblyLine > > TokenizedTextWidget::lineAtPosition | ( | const TokenizedTextWidgetCursorPosition & | position | ) | const |
| std::optional< std::reference_wrapper< const BinaryNinja::InstructionTextToken > > TokenizedTextWidget::tokenAtPosition | ( | const TokenizedTextWidgetCursorPosition & | position | ) | const |
| std::optional< char > TokenizedTextWidget::charAtPosition | ( | const TokenizedTextWidgetCursorPosition & | position | ) | const |
| void TokenizedTextWidget::clearLines | ( | ) |
| void TokenizedTextWidget::setLines | ( | const std::vector< BinaryNinja::LinearDisassemblyLine > & | lines, |
| bool | resetScroll = true ) |
| void TokenizedTextWidget::setLines | ( | const std::vector< BinaryNinja::DisassemblyTextLine > & | lines, |
| bool | resetScroll = true ) |
| void TokenizedTextWidget::setLines | ( | const std::vector< BinaryNinja::TypeDefinitionLine > & | lines, |
| bool | resetScroll = true ) |
| int TokenizedTextWidget::lineCopyStyles | ( | size_t | lineIndex | ) | const |
| void TokenizedTextWidget::setLineCopyStyles | ( | size_t | lineIndex, |
| int | styles ) |
| int TokenizedTextWidget::tokenCopyStyles | ( | size_t | lineIndex, |
| size_t | tokenIndex ) const |
| void TokenizedTextWidget::setTokenCopyStyles | ( | size_t | lineIndex, |
| size_t | tokenIndex, | ||
| int | styles ) |
| bool TokenizedTextWidget::tokenSelectLineTarget | ( | size_t | lineIndex, |
| size_t | tokenIndex ) const |
| void TokenizedTextWidget::setTokenSelectLineTarget | ( | size_t | lineIndex, |
| size_t | tokenIndex, | ||
| bool | selectLineTarget ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| struct TokenizedTextWidget::LineMetadata |
Public Member Functions | |
| LineMetadata () | |
Public Attributes | |
| size_t | charWidth |
| int | copyStyles |
|
inline |
| size_t TokenizedTextWidget::LineMetadata::charWidth |
| int TokenizedTextWidget::LineMetadata::copyStyles |
| struct TokenizedTextWidget::TokenMetadata |
Public Member Functions | |
| TokenMetadata () | |
Public Attributes | |
| size_t | charOffset |
| int | copyStyles |
| bool | selectLineTarget |
|
inline |
| size_t TokenizedTextWidget::TokenMetadata::charOffset |
| int TokenizedTextWidget::TokenMetadata::copyStyles |
| bool TokenizedTextWidget::TokenMetadata::selectLineTarget |