Commit Graph

1097 Commits

Author SHA1 Message Date
Florian Märkl
0ebe1cf728 Fix some minor issues and leaks 2019-01-14 18:50:20 +01:00
Florian Märkl
bbd5ad6b38 Document RefreshDeferrer 2019-01-14 18:50:20 +01:00
Florian Märkl
9ef971263f Fix DisassemblyWidget refreshing 2019-01-14 18:50:20 +01:00
Florian Märkl
d651a0d8be Add createReplacingRefreshDeferrer for convenience 2019-01-14 18:50:20 +01:00
Florian Märkl
b8c92a460d Add RefreshDeferrer 2019-01-14 18:50:20 +01:00
Florian Märkl
3728f977a2 Split isVisibleToUser and refreshing in Dock Widgets 2019-01-14 18:50:20 +01:00
xarkes
f4c720cffa WIP First PoC to draw only visible after seek 2019-01-14 18:50:20 +01:00
fcasal
7f80f96c55 Fixes #1050 (#1107) 2019-01-14 09:17:10 +01:00
Adam Zambrzycki
d05fdd3d44 Add 'Copy' context menu option to graph view (#1097) 2019-01-14 09:16:10 +01:00
xarkes
b0bb1f0610
Fixed many warnings in DisassemblerGraphView (#1103)
Most of them were qreal to integer precision
loss, so I added static_cast to remove the
warnings.
2019-01-13 15:40:37 +01:00
xarkes
f385cf26d5 Refactored CutterSeekableWidget to CutterSeekable (#1099)
This commit refactors the CutterSeekableWidget class
and adds some documentation.
2019-01-13 16:20:07 +02:00
Itay Cohen
bdc684769f
Enforce LTR layout (#1102) 2019-01-12 21:44:23 +02:00
Paul I
c378c7d6f3 Add missing #ifdef checks (#1096) 2019-01-12 16:43:51 +01:00
Itay Cohen
3666c97178 Highlight program counter in Navbar widget (#1095)
Highlight program counter in navbar and add navbar cursor
colors to native theme configuration.
2019-01-12 10:02:07 +01:00
Florian Märkl
f189fb423c
Remove Fallback for afcf in Graph Header (#1090)
since afcf now works for all functions in r2 this is not needed anymore and will greatly improve performance
2019-01-10 15:49:31 +01:00
Paul I
8d92f92025 Wrap Python API 2019-01-09 19:24:37 +01:00
a1ext
9aec148218 FunctionsWidget: tooltip data retrieving optimized (print limited number of instructions instead of printing the whole function) (#1088) 2019-01-09 07:45:07 +02:00
a1ext
78fe3eb3c1 Removed useless information from tooltip and removed very slow data retrieving with afij (#1087)
Now tooltip will show Disasm Preview and Highlights
2019-01-08 14:23:17 +02:00
Vanellope
975fd77116 Adjust size of each section in the address maps of Section Widget (#1086) 2019-01-07 12:43:44 +02:00
Itay Cohen
2ccf58f0a6
Improve XREF window size and locations (#1049) 2019-01-02 21:58:02 +02:00
Itay Cohen
4505d187c4
Set Analysis configuration before executing Analysis commands (#1048)
* Set analysis configurations defined by the user before executing the
analysis commands (fixes #1047)

* Remove (probably) unnecessary lines which reset settings determined by
the user
2019-01-02 15:40:46 +02:00
Vanellope
8e76a9aca5 Click and Seek implemented for the address maps in the Section Widget (#1046)
* Touch and Seek implemented, not yet refactoring

* Done
2018-12-30 17:13:27 +01:00
Itay Cohen
42149f826c
Make Plugin window bigger for readability (#1044) 2018-12-28 09:31:15 +01:00
xarkes
6a5804f3d5 Set default IO to file:// (#1042) 2018-12-27 23:26:59 +01:00
xarkes
63e0d0b779
Cutter 1.7.3 release 2018-12-26 13:00:18 +01:00
xarkes
3e922a89e7
Added release script and appdata.xml (#1028) 2018-12-26 11:52:25 +01:00
Florian Märkl
9a3844f5d1 Kill SidebarWidget 2018-12-25 00:08:19 +01:00
Florian Märkl
8241b09e80 Fix Logo Color for Dark Theme 2018-12-24 17:05:30 +01:00
Florian Märkl
97cacd15f4 Fix Graph Refreshing 2018-12-24 13:49:17 +01:00
Florian Märkl
ae7bac506f Make Console Execute Button consistent with ToolBar 2018-12-21 22:24:52 +01:00
Florian Märkl
6a667790be Set highlightPC for native dark 2018-12-21 22:24:52 +01:00
Florian Märkl
2ffcccd41e Make DebugToolbar into DebugActions 2018-12-21 22:24:52 +01:00
Florian Märkl
55f634dbf1 Disable NSRequiresAquaSystemAppearance 2018-12-21 22:24:52 +01:00
Florian Märkl
350825849b Automatically switch colors if Native Theme is Dark 2018-12-21 22:24:52 +01:00
Florian Märkl
e57c2fb941 Add Dark Native Colors 2018-12-21 22:24:52 +01:00
Florian Märkl
99b1fde47d Cleanup EditVariablesDialog (#1007)
Originally SetFunctionVarTypes
2018-12-19 09:39:23 +01:00
Itay Cohen
c8d8e667fb Right click -> Select block in hexdump widget (#1006)
* jamieb22 modifications and some sanity checks
* improve warning color
* Fix writeable hexdump
* more sanity checks
2018-12-18 18:26:38 +01:00
Itay Cohen
ea5dc6e594
Improve highlight colors (#1003) 2018-12-16 09:07:25 +02:00
Itay Cohen
ab42756729
Fix SIGSEGV on Sections widget (#1004) 2018-12-16 09:06:17 +02:00
Vanellope
16ad5c9220 Only one close button should be shown for PE-Bear thingy. (#993)
* Only one close button should be shown for the AddrMaps in the Section Widget
2018-12-13 13:24:56 +01:00
nullableVoidPtr
984681700b Fixed build.sh constantly updating r2 and added *BSD support (#994)
* Fixed build.sh constantly updating r2 and added *BSD support
2018-12-13 13:23:03 +01:00
Itay Cohen
4026ea11a1 Fix out of bounds crash in Theme selector (#998)
* Fix out of bounds crash in Theme selectors
2018-12-12 18:10:29 +01:00
Itay Cohen
ed621e55a8 Closing #929 | Color functions at offset 0x00 in the Imports widget (#992)
* Color function at offset 0. Closing #929
2018-12-11 19:23:01 +01:00
xarkes
7ce1790fcf
Fix meson version to 0.48.2; updated Qt to 5.10.1 (#996) 2018-12-11 19:22:45 +01:00
a1ext
636057bd53 MAC Build: new package UI design (thanks to @ITAYC0HEN) (#986)
* MAC Build: new package UI design (thanks to @ITAYC0HEN)

* MAC Build: fixed path bar absence
2018-12-04 07:38:16 +02:00
Itay Cohen
efc15cd24a
add context menu seperator (#982) 2018-12-03 17:16:17 +02:00
Itay Cohen
33339a00df
improve selection colors (#976) 2018-12-03 13:45:49 +02:00
Paul I
3fa101d9ee StringsWidget: add shortcuts for QuickFilter (#973) 2018-11-29 23:59:34 +02:00
a1ext
48c34699af Fixes #965 - Fail to duplicate color theme on windows. (#970)
Fixes bug with color change
Performed small refactoring of AppearanceOptionsWidget, ColorSchemeFileSaver
2018-11-29 09:39:58 +02:00
a1ext
200a6949d2 Fixed Dashboard file name displaying: due to utf8 json serialization in radare2 has been fixed, we don't need encoding kludge anymore (#969) 2018-11-28 22:15:53 +01:00
Paul I
3096d24998 [WIP] Some cleanup (#958)
* Some cleanup

* Some more

* Some more

* Some more
2018-11-27 00:34:34 +02:00
fcasal
33d16dda3e Add xref shortcut to Strings Widget (#858) 2018-11-26 19:54:39 +01:00
Vanellope
26d985c9dc Toggle the address maps in the Section Widget (#959)
* Toggle the addr maps in the Section Widget

* Icon transform done.

* Refactoring
2018-11-26 13:09:35 +02:00
a1ext
379567e80c MAC Build: fixed problem when you cannot open Cutter on MacOS due to missing Frameworks (#957) 2018-11-23 17:36:43 +01:00
Vanellope
58fcd70fd2 Centerize the indicator in the address maps in the Section Widget when seek changed (#956) 2018-11-23 09:21:49 +02:00
Vanellope
b606ece545 Fixed Section Widget PE-Bear like (#955) 2018-11-22 10:49:38 +02:00
a1ext
3fb67c9eac Fixes #950 (#951)
`tr` evaluates at the early start even before `QCoreApplication` is instantiated and appropriate translators are set
related with commit a92fc9b
2018-11-21 07:42:37 +01:00
Levente Polyak
350375afce workaround jupyter exception accessing out of bounds argv (#949)
Under certain circumstances the internal argument parser tries
to determine the program name via sys.arv[0], however the way
we run Cutter and the jupyter integration does not guarantee
that argv is set at all, leading to an exception which avoids
a proper startup.
2018-11-20 22:17:30 +02:00
Paul I
30e6498a2c JSON parsing optimization: use static QLatin1String as keys (#947) 2018-11-20 08:45:42 +01:00
Sajjad Pourali
5dd15f821c Fix build error in MacOS with clang (#946) 2018-11-19 08:45:04 +01:00
Paul I
54022a19db Add section comboBox to StringsWidget (#938) 2018-11-17 20:17:16 +01:00
ICEBERG98
1bd7e13192 Fix issue #935 (#941)
* Add Documentation To Headers

* Add refresh after import PDB

* fixed previous error at Line 889 in MainWindow.cpp
2018-11-17 12:10:44 +02:00
Itay Cohen
b17656632c
Implement Set As String (#940) 2018-11-16 23:27:07 +02:00
Florian Märkl
a3188ed028 Properly handle Task Deletion #703 2018-11-12 16:37:33 +01:00
Vanellope
54ea5f014e PE-Bear like interface is supported in the Section Widget (#916)
* basic layout prototyping done

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Initial commit for the current seek point indicator

* WIP

* A bit of refactoring

* Indicator moves along with the ratio of the address in the section

* Done with this feature for now. Need to fix redrawing the graph issue

* Prevent the duplicated drawings of the items on the graphics scene

* Quite a bit of refactoring

* Refactoring done.

* Add Header

* Added a bit more features and also some refactoring

* Everything should be done now for the comments

* Indicator should move along with the seeks
2018-11-12 10:22:28 +02:00
optizone8
5a62bd6dc7 relevant themes(#816) and delete improvement (#846)
* change constants to enum

* code improvements

* remove redundant lambda usage

* add themes

* bug fix

* bug fix 2

* first start bug fix

* big refactoring

* merge conflict fixes

* removes debug information
2018-11-11 14:11:50 +02:00
Florian Märkl
bd82f2cf45 Update Seek from ConsoleWidget only if it has changed 2018-11-11 12:35:20 +01:00
Florian Märkl
5a03a07e1b Simplify SidebarWidget::setFcnName() to not use S 2018-11-11 12:16:27 +01:00
Paul I
87026dfe28 Bundle r2dec on Appveyor (#913)
Thanks :)
2018-11-10 13:10:26 +01:00
Duck Deux
b01de2d724 Allow multi selection of entries in QTreeView widgets (#903) 2018-11-10 10:17:52 +01:00
xarkes
a92fc9b83e
Changed not synced to unsynced (#911) 2018-11-08 23:20:49 +01:00
xarkes
ab133706f5
Fixed MacOS start script (#909) 2018-11-06 15:49:14 +01:00
xarkes
b1e9db15fc
Various code cleaning (#907) 2018-11-05 22:51:27 +01:00
fcasal
55728e12b8 Update seek after console tasks finishes (#883) 2018-11-04 16:48:02 +01:00
dmknght
af9c5be37e Correct "Rename function" in menu (#904) 2018-11-03 17:00:19 +01:00
a1ext
313e8b17cd Fix of commit dd4a566408 (#901)
Problem was that QSetting were initialized before application/organization name is set
2018-11-02 18:49:15 +02:00
a1ext
84b70215ce DisassemblyWidget: fixed extra characters highlighting (#899) 2018-11-02 10:34:15 +01:00
a1ext
b95620907a Related to #865 issue (#900)
Wrong path separators have been used. The fix makes them consistent and correspond the Operating System.
2018-11-02 08:48:17 +02:00
xarkes
3f76ee000c
Code cleaning (#898) 2018-11-01 23:23:01 +01:00
Adam Zambrzycki
4434e146bf Fix highlight stick out fix (#896) 2018-11-01 18:00:19 +02:00
xarkes
8ff2a88199
Added translations submodule (#895)
* Added translations module

* Updated translation files and submodule
2018-10-31 19:10:31 +01:00
optizone8
dd4a566408 Added translations (#848) 2018-10-31 17:07:52 +01:00
Itay Cohen
ec254b1d24
Fix tabs max-width (#893) 2018-10-31 14:48:49 +02:00
a1ext
ce66fe98b0 Windows&Unicode - build scripts. Fixes #589 (#890)
* Fixes #589
Build scripts were updated
Fixed utf8 file path displaying in Dashboard widget

* Fixed meson build
2018-10-30 15:02:01 +01:00
xarkes
1387ea40e9
Fixed some tr call messages to ease translation (#886) 2018-10-30 08:42:43 +01:00
Adam Zambrzycki
e219b8daba Fix sticking out highlighting on graph (#881) 2018-10-27 18:36:14 +02:00
Adam Zambrzycki
ca1fb52bb7 Add try again option for write error dialog (#880)
* Add try again option for write error dialog
2018-10-27 17:55:22 +02:00
xarkes
cf43ac9d90
Typos, translations, and style fixing (#879) 2018-10-25 23:22:34 +02:00
Florian Märkl
d51a674d5d Temporarily disable macOS Mojave Dark Mode in Info.plist (Fix #772) (#878) 2018-10-25 23:02:35 +02:00
Itay Cohen
3706f13f0a Use constants cbegin and cend (#876) 2018-10-24 12:05:36 +02:00
Itay Cohen
02ce3cb731 Implement the "Search in" feature (#873) 2018-10-23 23:08:02 +02:00
Itay Cohen
08107fdc67 make text in About Dialog selectable (#871) 2018-10-23 09:09:56 +02:00
Rune Tynan
3400314cd2 Change edit dialog to allow no preview (#869)
* Change edit dialog to allow no preview

* AStyle fixes

* More style fixes, forgot some files
2018-10-23 08:06:26 +03:00
Paul
528adf429a Fix segfault in EditFunctionMenu (#868) 2018-10-23 00:31:50 +02:00
Michael Wiarda
f0fc9fc5e3 Disable the debug window menu outside Debug/Emulation mode (resolves #859) (#860)
The debug windows menu is now grayed out if not in Debug/Emulation mode.
2018-10-22 20:06:30 +02:00
Paul
899d64c6f8 Edit Function Menu/Dialog (#528) (#765)
* button added, dialog todo

* WIP EditFunctionDialog

* dialog retrieving function parameters, but not yet setting them

* minor fixups, ok button not working

* wire everything up and add calling convention selection

* fixup Cutter.pro
2018-10-22 12:16:55 +03:00
Ankur Saini
04148a6834 Minor Changes to Hexdump Widget (#863)
* Minor Changes to Hexdump Widget

* Some changes to side view

* Minor change to placeholder text
2018-10-21 20:07:02 +03:00
Florian Märkl
4167b3828f Fix exit() calls in CutterApplication constructor 2018-10-21 19:03:47 +02:00
tushar khurana
3347104cf1 Enable colors for ConsoleWidget (#823) 2018-10-21 16:53:38 +02:00
Vanellope
ac64bbface Segments implemented (#851)
* Segments implemented

* Not util anymore but common

* Fixed the strings to be shown as the headers better

* Quick Filter functionality is supported on both Section and Segment Widget

* QuickFilter should basically be on but for some widgets, they should be off
2018-10-20 21:20:06 +03:00
xarkes
d3572b9eb5
Updated Appstream metadata file and desktop name (#854) 2018-10-20 10:10:00 +02:00
xarkes
989555872e
Changed Cutter.sh to Cutter for macos (Fixes #787) (#853)
* Changed Cutter.sh to Cutter for macos (Fixes #787)
2018-10-19 01:36:31 +02:00
Ankur Saini
d5513c66dc Added Close and Reopen button to HexWidget SideView (#852) 2018-10-18 21:36:46 +02:00
Florian Märkl
d4a77d9c97 Rename src/utils to src/common 2018-10-17 15:24:56 +02:00
Florian Märkl
a13a620017 Clean up some unused things 2018-10-17 09:47:47 +02:00
Itay Cohen
0567114b09
Bye bye "General Settings", welcome "Appearance" (#837)
* Bye bye "General Settings", welcome "Appearance"

* Fix Windows header

* fix typo
2018-10-17 10:30:56 +03:00
Vanellope
842dda45bd Adding a header to the DisassemblyWidget to show the function prototype (#771)
* Adding a header to the DisassemblyWidget to show the function prototype

* Moving the afcf headerLabel functionality to the GraphWidget

* In middle of implementation

* In middle

* syntax highlighter added

* Implementation done.

* Fixed the changes that were not necessary.
2018-10-16 17:49:26 +03:00
icebp
4b454e086e create keyboard shortcuts for widgets (solve #733) (#819)
* Add shift-F12 shortcut for strings widget.

* change strings shortcut to use global map

* add Shift-I shortcut for Imports

* add Shift-E shortcut for Exports

* add Shift-G shortcut for Graph view

* add widgets shortcuts map file

* update widget checkboxes when using shortcuts
2018-10-16 09:25:09 +03:00
Itay Cohen
25b4301906
Minor fixes to function-widget's tooltip (#836) 2018-10-16 09:20:44 +03:00
a1ext
9118deebf3 Fixed #807 - Function summary displaying in tooltip (#831)
* Fixed #807 - Function summary displaying has bad disasm preview formatting (-monospace font)

* FunctionsWidget: tooltip has made less transparent, hardcoded constants utilization refactored, replaced raw command with json'ed one, added some space between paragraphs in tooltip (thanks to @ITAYC0HEN's advice)
2018-10-15 21:54:52 +02:00
Ankur Saini
3dc71c90d2 Added Context Menu to Strings Widget (#817)
* Added Context Menu to Strigns Widget

* Fixed slot getting called twice without Qt::UniqueConnection
2018-10-15 11:06:15 +02:00
a1ext
781235ba87 Fixed #795 (#829)
Thanks! Resolves #795
2018-10-15 07:11:47 +03:00
Adam Zambrzycki
4dda930410 Fix non-mono font token highlighting on graph (#825) 2018-10-14 17:44:49 +02:00
a1ext
ff4bbb9aa0 Fixed commit c8f02fd - logic bug with close window flag (#826) 2018-10-14 17:43:15 +02:00
Florian Märkl
bd600ee737 Remove isForbidden() 2018-10-13 19:06:26 +02:00
optizone8
2105b1fba2 improve option desctiption displaying (#814) 2018-10-12 15:23:37 +02:00
Florian Märkl
a9c09339cf Fix Command Line Args when skipping InitialOptionsDialog 2018-10-12 13:24:08 +02:00
Florian Märkl
705735c150 Update r2 submodule with ptrace-wrap 2018-10-12 13:15:16 +02:00
Florian Märkl
d625681391 Fix standardR2ThemesLocationPath 2018-10-12 12:52:18 +02:00
Florian Märkl
a73492a718 Fix asm.var.sub* fetching in AsmOptionsWidget 2018-10-12 11:02:28 +02:00
a1ext
ea1080f412 [Fix] Fixed issue #805 - wrong handling of Close button in Save Project dialog which had a Discard meaning (#806) 2018-10-12 10:08:04 +03:00
NieGrzegorz
ac4beedbd7 Don't show the "Load Options" dialog when choosing "Don't open any file" (#800)
* Don't show the "Load Options" dialog when choosing "Don't open any file" #712

* Load option only if skipOptionsDialog flag isn't set
2018-10-11 16:04:57 +03:00
Ankur Saini
7c37d3413f Fixed an extra empty row inside Vertical View in Function Widget (#797)
* Fixed an extra empty row inside Vertical View in Function Widget

* Should use full column name inside Vertical view
2018-10-11 15:05:47 +03:00
optizone8
8bf4058499 runtime crash fix (#799)
* folders mess fix

* improvements

* remove dot and dotdot from search list

* array bound check
2018-10-11 14:35:59 +03:00
Vanellope
c18912b74c Indicator that tells a command is being executed is implemented. (#789)
* Indicator that tells a command is being executed is implemented.
2018-10-10 20:09:07 +02:00
smhaziq
7c7cb4083c Add status bar and display items count (#779)
* Add status bar and display items count
2018-10-10 14:34:46 +02:00
Paul I
8d3e8a65e1 Remove useless begin-/end-ReloadModel methods (#793) 2018-10-10 13:33:55 +02:00
optizone8
cd4b86fa69 WIP: Color scheme feature (#709)
* shiny commit
* removes extra displaying of custom schemes
2018-10-10 11:37:24 +02:00
Ankur Saini
b298ce8325 Added extra function information to function widget (#788)
* Added Extra Information to Functions Widget
* Sorting enabled through recently added columns in Functions Widget
2018-10-10 08:41:16 +02:00
a1ext
6398df6880 [NewFileDialog] filling recent projects list at startup has been added (#785) 2018-10-09 12:18:59 +03:00
Vanellope
116ffddb6a Remove an inappropriate line (#775)
* Remove a dispensable function
* fix for a comment
2018-10-09 01:04:18 +02:00
xarkes
25e45c8ca2
Changed default theme to Cutter (#780) 2018-10-08 09:20:46 +02:00
xarkes
c9db0c47f6
Bump version (2) (#778) 2018-10-07 23:33:01 +02:00
xarkes
b3aca0810b
Version bump (#777) 2018-10-07 22:45:47 +02:00
xarkes
a98354f402
Hide debug plugins IO (#767) 2018-10-05 18:42:54 +02:00
Itay Cohen
005fd53193
fix redundent code (#763) 2018-10-04 18:33:19 +03:00
Itay Cohen
d3766fab12 Improve icon sizes and colors (#762) 2018-10-04 14:37:12 +01:00
smhaziq
d0b5f135b2 Fix Ctrl-F in Flag widget (#759)
* Fixed Ctrl-F in Flags widget
2018-10-04 09:51:22 +02:00
fcasal
dfa803966c Add colors to debug toolbar and string translation (#758)
* Added colors to debug toolbar icons

* Translate debug toolbar strings
2018-10-04 09:15:27 +03:00
mandlebro
d96150528d Debug toolbar update 2018-10-03 22:16:57 +02:00
mandlebro
bc72c53d01 Removed dr from debug start 2018-10-03 22:16:57 +02:00
mandlebro
0562c377fb Enable asm.flags in emulation 2018-10-03 22:16:57 +02:00
mandlebro
ad9d3ccb5f Enable continue in emulation 2018-10-03 22:16:57 +02:00
fcasal
cb173aa616 Attach update (#603)
* Handle process detaching
* List procs wth current filename in separate table;
* Refresh proc list every second
* Fixed restarting debug executable check
* Update r2
* Added option to break esil execution on invalid instructions (#597)
* Added continue until call in esil
* Remove set registers button
* Reordered backtrace widget columns
2018-10-03 22:16:57 +02:00
fcasal
08245a8694 Adds step out funcionality (#598)
* Added step out functionality to toolbar and its shortcut
* Remove step out button when emulating
2018-10-03 22:16:57 +02:00
jamieb122
be4144babe afvn/afvt support via context menu (#708)
* Added ability to re-type local vars in Dissassembly Widget.  Can re-type to any loaded structs, types or enums
* afvn support via context menu
2018-10-03 22:10:53 +02:00
Florian Märkl
0e4930c603
Fix macOS builds and disable QtWebEngine for builds (Fix #689, Fix #629) (#748)
* Fix Info.plist and disable QtWebEngine for builds

* Add CFBundleShortVersionString to Info.plist
2018-10-02 12:54:23 +02:00
xarkes
ec815195cf
Astyle pass (cleaning) (#739) 2018-09-30 22:00:53 +02:00
xarkes
0aace76065
Make default mode being zen (#732)
* Make default mode being zen
* Added imports widgets
* Make dashboard default
2018-09-30 22:00:44 +02:00
xarkes
c3d029e5aa
Keep graph priority if the graph is empty (#734) 2018-09-30 19:46:36 +02:00