Lucas Hosseini
a5fa4103b2
Get rid of stale jump arrows in disassembly widget. ( #3175 )
...
This commit clears arrows from edited instructions, in order to avoid
stale arrows to remain drawn.
closes #3114
2023-05-14 12:59:13 +08:00
Lucas Hosseini
f1a421c9f6
Fix disassembly scroll history. ( #3183 )
...
Avoid calling `erase()` when `topOffsetHistoryPos + 1 >=
`topOffsetHistory.size()`.
closes #3181
2023-05-12 19:52:41 +08:00
Lucas Hosseini
beec78b4e2
Keep topOffset history in disassembly widget. ( #3171 )
...
This commit adds support for a `topOffset` history (on top of the
rizin-managed history), that keeps track of the offset of the top
instruction in the disassembly widget.
closes #2970
2023-05-11 09:16:06 +08:00
Lucas Hosseini
882f340481
Only jump to reference when double-clicking with left mouse button. ( #3174 )
2023-05-09 09:48:09 +08:00
Anton Kochkov
bbd4961468
Use QFontMetrics instead of fontMetrics()
2023-02-08 21:26:43 +08:00
Petros S
2b50e2722b
Move more common disassembly-previewing functionality to namaspace ( #2849 )
2022-02-05 08:55:10 +02:00
Petros S
d85383fcfc
Support for previewing in the Graph widget ( #2797 )
...
Common functionality has been moved to the DisassemblyPreview namespace.
2021-12-05 08:53:45 +00:00
Petros S
29cce01e1a
Colorize the preview tooltip in the DisassemblyWidget according to th… ( #2799 )
2021-10-11 07:31:37 +02:00
Petros S
552cd6dff6
Add option to disable the preview when hovering over the assembly ( #2795 )
2021-10-09 18:17:52 +02:00
xarkes
90f5f2d4cc
Fix a crash when printing disassembly arrows
2021-05-13 18:00:10 +03:00
Kārlis Seņko
585dc961db
Qt6 keyboard and mouse API compatibility
...
* Some of the API replaced int with QKeyCombination, use typedef in
cutter code
* Use of + operator depracted, replace with recommended "|" operator
* QMouseEvent globalPos and localPos renamed to globalPosition and
position, replace with helper function or use of integer position which
wasn't renamed.
2021-04-24 13:13:36 +03:00
Kārlis Seņko
988918a038
Various fixes for functionality deprecated or removed in QT6.
2021-04-24 13:13:36 +03:00
karliss
a18a3a8b46
Use relative line numbers instead of addresses when placing arrows. ( #2636 )
...
The used data structures are intended for dense ranges, using addresses
directly can cause excesive memory usage.
2021-03-13 18:36:22 +02:00
Alexis Ehret
a47c2bb5aa
Add clang-format linter CI jobs ( #2604 )
2021-02-19 16:32:58 +02:00
optizone
00d2245538
refactor DisassemblyLeftPanel::paintEvent ( #2559 )
2021-02-15 08:46:57 +02:00
ITAYC0HEN
48ae2150a9
Apply clang-format
2021-01-24 18:34:16 +02:00
Petros S
d813b7ac8c
Add preview functionality to DisassemblyWidget when hovering code ( #2459 )
...
* Add preview functionality to DisassemblyWidget when hovering code
2020-12-05 09:26:26 +02:00
xarkes
5d84844587
Fixed word highlighting in DisassemblyWidget ( #2473 )
...
* Fixed word highlighting in DisassemblyWidget
2020-11-15 22:26:49 +02:00
Josh Maxwell
dd4a40bcc1
Fixes buggy line highlighting ( #2444 )
...
* Calling updateCursorPosition before moving cursor.
Previously the call to readCurrentDisassemblyOffset in
updateCursorPosition was causing essentially an off-by-one bug since the
cursor was moved prior to checking the current offset.
* Separated highlightCurrentLine and highlightPCLine logic so they can be
called independently when needed.
Previously logic for highlighting the PC was included in highlighting
the current line. This caused the PC to not be highlighed when the
current line was not on-screen and being highlighted.
2020-10-14 01:01:04 +03:00
NIRMAL MANOJ C
691de14853
Synchronized Decompiler and Enabling Multiple Decompiler Widgets ( #2402 )
...
* Sync/Unsync decompiler widgets.
* Add multiple decompiler widgets with its own decompiler and functions.
* updateWindowTitle() in widgets for decompiler, disassembly, and hexdump.
2020-08-29 10:45:47 +05:30
NIRMAL MANOJ C
b42a19e995
Display jumping fix useless decompilation ( #2351 )
...
* save scroll position and reset to that if the newly decompiled function is the same as the previous one
* instructionChanged signal replaced completely by breakpointsChanged in toggle/add breakpoint functions.
* removed addbreakpoint(QString) and toggleBreakpoint(QString)
2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
eef9baa300
Action to rename functions in the decompiler context menu ( #2286 )
2020-08-18 23:26:44 +05:30
karliss
8f5fbeddde
Refactor old style macro based signal connect. ( #2360 )
2020-08-03 12:13:39 +03:00
bartoszek
56c2e3741a
Fix qt>5.15 build ( #2231 )
2020-06-04 06:51:03 +03:00
karliss
3545f059f1
Rewrite layout management code ( #2172 )
...
* Use QDockWidget::toggleViewAction instead of custom solution.
* Improve new dock placement.
2020-05-22 14:49:34 +03:00
Itay Cohen
7a34cf2024
Improve seek backward and outside of function in Decompiler widget ( #1916 )
...
* Improve seek backward and outside of function
* Improve seekToReference
2019-12-14 14:57:36 +02:00
Properrr
3700bc63f5
Pressing Enter in disassembly will jump to the desired location ( #1910 )
...
* Implemented processing of 'Return' key in the disassembly widget
* renamed method in the DisasmWidget
2019-12-12 11:52:42 +02:00
Wesley King
83b1ce2c49
Add common zoom action for widgets using font from configuration ( #1813 )
2019-10-12 08:50:10 +03:00
karliss
b11ba240d2
Improve compatibility with cmake 3.5 and QT 5.5-5.11. ( #1805 )
2019-10-06 20:35:44 +03:00
xarkes
a15d104b45
Fixed zoom shortcuts to something more generic ( #1781 )
2019-09-27 19:16:05 +03:00
karliss
d49caae37b
Fix Disassembly widget focus detection. ( #1720 )
2019-08-28 14:37:52 +02:00
karliss
a5dc85c3c5
Graph edge highlight ( #1693 )
...
* Highlight edges to and from current block in graph.
2019-07-30 21:35:00 +03:00
karliss
239fde50be
Fix arrow offset when scrolling with arrows or zooming in. ( #1677 )
2019-07-20 16:10:49 +03:00
karliss
6c40191cce
Rewrite raise memory widget functionality ( #1654 )
...
* Seperate seek from seeking and changing focused widget.
* Change memory widget priorities
* Add Show in context menu
2019-07-19 22:21:12 +03:00
karliss
6ee6b41786
Use more specific stylesheet selecters. ( #1668 )
...
Prevents unintend application of style to internal subwidgets.
2019-07-18 09:05:29 +03:00
xarkes
f830fc17fb
Updated DisasWidget zoom shortcuts
...
Now the shortcuts are consistent with the GraphView widget.
2019-07-17 09:23:14 +02:00
Kārlis Seņko
d78e43a403
Adjust arrow offset calculation.
2019-07-16 18:47:26 +02:00
adikso
736d3e1f1d
Add scrolling to DisassemblyWidget left panel
2019-07-15 09:13:17 +02:00
ITAYC0HEN
4b9a4ff2e2
Make penSizePix thinner
2019-07-13 10:54:37 +02:00
Unknown
77a7710daf
Improve arrow widget
2019-07-13 10:54:37 +02:00
xarkes
33dca54176
First implementation of new disassembly widget
2019-07-13 10:54:37 +02:00
Florian Märkl
7017c8a323
Sync PseudocodeWidget with Seek ( #1648 )
2019-07-12 10:57:07 +02:00
optizone
594896c06f
Fix crash on theme edition ( #1614 )
2019-06-20 16:28:35 +02:00
Florian Märkl
ede98df6ac
Fix initial objectName for Memory Widgets
2019-06-18 20:24:17 +02:00
optizone
06aceaf9b1
Refactor Layout Save and Restore Feature ( #1538 )
...
#1515
2019-06-18 15:02:41 +02:00
Itay Cohen
c141eb34cc
Implement Seek to start/end of function Shortcuts ( #1589 )
...
* fix ctrl+'+' to zoom in`
* Add '^' and '$' shortcuts
2019-05-30 11:41:14 +03:00
optizone
31838a3a35
Basic Block Highlight ( #1533 )
2019-05-23 18:22:31 +02:00
Florian Märkl
72eab68be1
Revert "Fix layout save and restore feature ( #1515 )" ( #1537 )
...
This reverts commit 2ba9e170c5
.
2019-05-15 20:45:16 +02:00
optizone
2ba9e170c5
Fix layout save and restore feature ( #1515 )
2019-05-14 23:30:10 +03:00
optizone
089be2b87c
refactor theme edit feature ( #1461 )
...
Refactor Theme Editor
2019-05-01 19:15:33 +03:00