Commit Graph

1318 Commits

Author SHA1 Message Date
ballessay
a8418e3b53 Use ConsoleWidget in MainWindow
- Replace the MainWidget console handling with the new custom Widget
- Rename some functions
- Fix cppcheck warnings (non reference parameters)
2017-04-28 19:49:01 +02:00
ballessay
6731032495 Add ConsoleWidget
Moved the existing console functionality to a separate widget for easier
extension
2017-04-28 19:49:01 +02:00
Alvaro Muñoz
0062ff424e Fox missing args and vars in graph view and theme switch 2017-04-28 18:19:00 +02:00
Florian Märkl
f0b905c779 Add -Wall to CMake 2017-04-28 16:32:41 +02:00
ballessay
f586ab2d4e Fix new warnings
- Fix compiler and cppcheck warning
- format with astyle
2017-04-28 15:40:14 +02:00
Florian Märkl
ebe33ffe8e Refactor FunctionsWidget, new features and much more (#149)
* Add RFunction struct and get functions from json

* Fix QRCore::cmdj

* Add Analysis command line argument

* Replace MainWindow::current_address with cursur address

* Use Cursor Address in MemoryWidget, Change some more String addresses to RVA

* FunctionsWidget cleanup

* Use QTreeView in FunctionsWidget

* Re-enabled Nested Functions Widget

* Nested Functions Tree View with Model

* FunctionsWidget font, only one function highlighted

* Removed explicit font sizes

* FunctionsWidget re-enabled sorting and context menu

* FunctionWidget Quick Filter

* FunctionsWidget show decoration for imports

* QRCore lists refactoring, Imports Icon

* FunctionModel: Fix emitting dataChanged

* Fix some smaller things

* Fixes and cleanups

* Raise MemoryDock on seek from Omnibar

* FunctionsWidget: Remove margins

* FunctionWidget: Restore correct Tooltip font

* FunctionsWidget: import icon in separate column
2017-04-28 15:09:40 +02:00
pancake
a0e5cd2d34 Fix null-deref in disassembler 2017-04-28 12:47:55 +02:00
ballessay
8c8ca6b9a4 Fix missing function names in CommentsWidget 2017-04-27 21:16:09 +02:00
ballessay
a9b5f40702 Initialize OmniBar again
+ cleanup of the OmniBar class
2017-04-27 21:16:09 +02:00
ballessay
dd39666654 Remove duplicate branches 2017-04-26 22:59:03 +02:00
ballessay
d45c253f9f PieView: Add reset function
On treeWidget->clear() non of the the existing functions got called so
the total doubled with every refresh
2017-04-26 22:59:03 +02:00
ballessay
06e82c8421 Clear layout before adding more widgets 2017-04-26 22:59:03 +02:00
ballessay
ab28142ec5 Use Q_FUNC_INFO for message 2017-04-26 22:59:03 +02:00
ballessay
312cc9b912 AStyle format 2017-04-26 22:59:03 +02:00
ballessay
ad0de05654 Additional parameters for adjustColumns
- Add columnCount and padding parameter
- Remove unnecessary functions
2017-04-26 22:59:03 +02:00
ballessay
9931d6f484 Adapt MainWindow to refactored widgets
- Use new DockWidget interface as much as possible
- Remove unused/unneeded code
- Make more members private
2017-04-26 22:59:03 +02:00
ballessay
6f2607fc3c Use DockWidget base class
- DockWidgets inherit from base class and implement the interface
- Move setup/refresh code from MainWindow to widgets
- Remove unused/uneeded members
- Use helper functions
- Fix compiler/cppcheck warnings
- Cleanup headers
2017-04-26 22:59:03 +02:00
ballessay
8e542d40fe Add base class for DockWidgets 2017-04-26 22:59:03 +02:00
ballessay
ff348e0f1a Add new helper functions 2017-04-26 22:59:03 +02:00
ballessay
a5224bb7f6 Use existing public function 2017-04-26 22:59:03 +02:00
ballessay
e72976ff55 Move default parameter to h 2017-04-26 22:59:03 +02:00
ballessay
3bdb0b2aba Fix compiler and cppcheck warnings 2017-04-26 22:59:03 +02:00
ballessay
b32fd4cef2 Remove banned.h from widgets
The banned string is only used once so define it there.
2017-04-26 22:59:03 +02:00
ballessay
354dcf574f Fix warnings
- Use QChar to compare QString elements
- dashboard.ui: no zorder for spacer
2017-04-26 22:59:03 +02:00
ballessay
a7b70dbf8f Add shortcut to refresh visible DockWidgets
+ Fix some warnings
2017-04-26 22:59:03 +02:00
ballessay
e968479be1 Initialize all members 2017-04-26 22:59:03 +02:00
ballessay
85f84aac83 Fix warnings
- Same parameter name in h/cpp
2017-04-26 22:59:03 +02:00
Khairul Kasmiran
be3f1e0a32 Start at entry0 even if entry0 addr > 7 bytes 2017-04-24 14:49:35 +08:00
Alvaro Muñoz
4572fec9b3 call init() to draw graph after loading index.html 2017-04-23 01:47:02 +02:00
Alvaro Muñoz
78737c3f7b Fix graph not updated when changing function and theme switch 2017-04-23 01:29:57 +02:00
Christian Balles
aa20044766 qmake: Use QT_ARCH to switch 32/64 bit
Makes it possible to switch the build arch depending on the Qt kit not
the hosts arch.
2017-04-20 20:17:56 +02:00
Christian Balles
c578629121 qmake: Use pkgconfig feature
Instead of using r2 to get the lib and include paths use the builtin
qmake feature for pkgconfig. Still needs a tweak to work with
sys/user.sh installations.
2017-04-20 20:17:56 +02:00
C. Balles
d29625a8cb Create unique project name (#134)
- new helper function
- initialize members
- removed unused functions
- cleanup
2017-04-18 12:03:47 +02:00
Florian Märkl
3ac59f02f5 Add QRCore::cmdj, Use iij to fix crash when import name contains spaces (#133)
* Fix crash when import name contains spaces

* QRCore::cmdj, Get imports with iij
2017-04-18 10:33:35 +02:00
ballessay
6262e08381 Add custom astylerc
Adds iaito.astylerc based on CONTRIBUTING.md
2017-04-14 04:06:49 +02:00
Hugo Teso
4fc12173d0 Merge toolbar fix 2017-04-13 10:13:49 +02:00
Hugo Teso
d451d9ecc6 Temporary workaround for black toolbar. Fixes #132 2017-04-13 10:13:01 +02:00
Hugo Teso
c0bc070aa4 Merge Mini graph fixes 2017-04-12 19:07:00 +02:00
Hugo Teso
3caafc437e Fixed dark theme mini graph background 2017-04-12 19:06:29 +02:00
Florian Märkl
5d46610721 CMake: Parse iaito.pro to get filenames 2017-04-12 18:52:28 +02:00
Duncan Ogilvie
eae419ef3b compile and work on qt 5.6 (this needs testing!) (#123)
* compile and work on qt 5.6 (this needs testing!)

* updated travis

* updated r2

* sync submodules wtf

* updated CMake files
2017-04-12 18:49:01 +02:00
Hugo Teso
5efc51d307 Improved options dialog 2017-04-12 17:02:35 +02:00
Hugo Teso
00f3c1baee Fixed disasm context menu actions 2017-04-12 16:26:57 +02:00
Hugo Teso
7e7c6aad85 Removed some scrollbars. Small fix in disasm navigation 2017-04-12 14:07:43 +02:00
Hugo Teso
e857437949 Should fix #127. Though I notice no difference. 2017-04-12 12:29:06 +02:00
radare
e73cb0454a Fix null deref in on_actionXrefs 2017-04-12 12:27:06 +02:00
Hugo Teso
3d85370ff9 Fixed #129. Refactorized the sections dock 2017-04-12 12:16:43 +02:00
Hugo Teso
a1a663ca4b Merge branch 'master' of https://github.com/hteso/iaito 2017-04-12 10:32:02 +02:00
Hugo Teso
36e6bc2ec6 More fixes for #94 2017-04-12 10:31:23 +02:00
Florian Märkl
32b3e91c15 Update CMakeLists.txt 2017-04-12 10:30:36 +02:00
Hugo Teso
fb1437e4c1 Fixes #94. Hexdump navigation 2017-04-12 10:27:08 +02:00
Hugo Teso
e8a48a4a86 Slight performance improvement when seeking and fix graph load issue 2017-04-11 13:41:44 +02:00
Hugo Teso
e402e7c1b9 Added warning on anal levels 2017-04-10 14:54:23 +02:00
Hugo Teso
4b4fdef868 Changed anal options description 2017-04-10 14:39:38 +02:00
mrexodia
3b147a00bb
beautified analysis dialog (https://i.imgur.com/HN2S5in.gif) 2017-04-10 14:22:18 +02:00
mrexodia
e18899b9c8
removed some junk code #121 2017-04-10 14:12:42 +02:00
mrexodia
400f6be164
restore the 'responsive' functionality (closes issue #97) 2017-04-10 12:25:55 +02:00
Hugo Teso
bee9d28683 Closes #117. Feel free to change text for a better one 2017-04-10 11:31:34 +02:00
mrexodia
24fd1577e2
minor interface improvements 2017-04-09 22:36:38 +02:00
mrexodia
b12f665668
format ****(seed) 2017-04-09 21:55:06 +02:00
mrexodia
b91ea94543
code improvements to RCoreLocked 2017-04-09 20:42:45 +02:00
mrexodia
0dc64f8eac
Revert "Workaround for Qt5.8 WebEngine (#92)"
This reverts commit 08e6e4d13c.
2017-04-09 20:33:33 +02:00
xpahos
08e6e4d13c Workaround for Qt5.8 WebEngine (#92) 2017-04-09 19:13:31 +02:00
Duncan Ogilvie
5390cff320 updated r2 to 5ec6cde4 (#108)
* updated r2 to 5ec6cde4 (this fixes heap corruption and null pointer dereferences while starting iaito)

* fix build (no need to update iaito_win32 because no changes were made to the api)
2017-04-09 19:12:36 +02:00
ballessay
aa01212053 Fix issue #103: refresh disam on CTRL+r
Adds a QShortcut to refresh the disasm editor. To make this work the
default parameter of the slot MemoryWidget::refreshDisasm() had to be
defined in the header/at declaration point, else the connect failed.
2017-04-09 19:10:22 +02:00
ballessay
fa62c667ca Fix issue #102: changed defaults
Defaults now:
- asm.tabs=5
- asm.bbline=true
2017-04-09 19:10:13 +02:00
ballessay
c3426e2e3e Set correct parent from the start
Remove the unset parent parameter and use the MainWindow as parent
instead.
2017-04-09 19:10:02 +02:00
ballessay
2bd0283e4b Allow local/qrc content to access remote content 2017-04-09 19:10:02 +02:00
Sergi Àlvarez i Capilla
b7c3929d5e Fix null deref (#101)
* Fix null deref when QStringList is empty

* Indent memory widget
2017-04-09 19:09:52 +02:00
Joxean
7c63a67575 Fix many warnings and remove waste code (#81)
* Fixed a lot of warnings and removed waste code

* Fixed more warnings and removed more waste code

* restore XrefsDialog::updateLabels

This function is used in memorywidget.cpp
2017-04-09 19:09:35 +02:00
mrexodia
95ca3d5d5b
compile with MSVC again (this partially screws up 72893373, and issue #97) 2017-04-09 17:39:56 +02:00
mrexodia
17feb1e84a
safe code improvements related to eventFilter 2017-04-09 17:30:16 +02:00
C. Balles
0c69988f83 Fix sidebar crash (#99)
* Fix crash on invalid asm/hex

Added nullptr checks because the called functions can (and will)
return NULL

* Call disassemble when hex2asm is clicked

* Change order on != comparison

* Fix missing whitspace
2017-04-09 04:49:16 +02:00
Hugo Teso
728933732e Fixes #97. Responsiveness stopped working with some PR 2017-04-07 18:04:00 +02:00
Hugo Teso
bfe44eb725 Fixes #98. Codegraphics bar with dark theme. 2017-04-07 17:34:24 +02:00
Alvaro Muñoz
28aa884354 Merge branch 'master' of github.com:hteso/iaito into contextmenu 2017-04-06 23:56:32 +02:00
Alvaro Muñoz
610ab0d7de Refactor II + init work for context menu 2017-04-06 23:55:40 +02:00
Hugo Teso
8e9d152f46 Fixes #84 by moving cursor to pointer position on right-click 2017-04-06 13:23:43 +02:00
Hugo Teso
ba8f60fe56 Fixes #3 and other related issues 2017-04-06 12:14:28 +02:00
C. Balles
5032c9104d qmake cleanup (#43)
* cleanup: get the include and lib path from r2

* clean up of the main project file

* check if r2 is available

* corrected r2 binary name m(

* qmake error if libr not found

Because the project won't build if r2 or the paths are not found emit
an error

* removed comments and unused variable

* Add 'make install' for AppImage

* Use 'make install' in travis build
2017-04-06 10:29:36 +02:00
Hugo Teso
c14f3beaeb Fixed theme restore at start up 2017-04-05 16:29:01 +02:00
Hugo Teso
d790ad69df Sync switch theme with graph view. Still has bugs 2017-04-05 16:03:36 +02:00
Alvaro Muñoz
f656bea94b Load colors from css 2017-04-05 15:02:54 +02:00
Hugo Teso
de2eff13ff Fixed focus issue after seeking around 2017-04-05 12:10:22 +02:00
Hugo Teso
a40cd098a6 Closes #75 2017-04-05 11:35:19 +02:00
mrexodia
133058aa30 display full r2 git version in AboutDialog 2017-04-05 11:08:05 +02:00
C. Balles
44b72a1826 Custom fonts registration and usage (#50)
* Register custom fonts once

The QHelpers functions registered the fonts on every call, which is not
necessary.

- added anonymous namespace for internal linkage
- added helper function for font registration

* Move helper functions from class to namespace

Fixes a possible memleak, because up until now the QHelpers object was
allocated with new without a parent QObject or following delete.

* Removed unused functions
2017-04-05 10:56:59 +02:00
Hugo Teso
d7435b1e54 Removed rogue semicolon 2017-04-05 09:53:23 +02:00
Alvaro Muñoz
255643e36d Set light theme as default one 2017-04-05 00:35:44 +02:00
Alvaro Muñoz
cb180e7abb extract common css code to graph.css 2017-04-05 00:30:45 +02:00
Alvaro Muñoz
cce1c150df add dark theme support for graph view 2017-04-05 00:12:07 +02:00
Antonio Rodriguez
441ea351f8 Check if file exist before opening (#82)
* Check if file exist before opening

When opening a file writing its path directly on the textfield, it wasn't checking if exists (also it wasn't adding it to recent list)

* Update newfiledialog.cpp
2017-04-04 23:00:55 +02:00
Hugo Teso
af5276841a Improved xrefs dialog with fcn information 2017-04-04 13:19:34 +02:00
Hugo Teso
e87ed8448c Fixes #58 2017-04-04 12:38:32 +02:00
Hugo Teso
1fb6a8d585 Fix tree and list views header color 2017-04-04 11:43:16 +02:00
Alvaro Muñoz
bbb576197c refactor of graph view. part I 2017-04-04 01:17:31 +02:00
pancake
608a7fcc1c Support multiple instances of the graph webview
* Set the http.port from core to the webview's js
2017-04-03 23:39:01 +02:00
pancake
360407f453 Fix regression introduced in 0317cf2663
* Graphs are working again
* Multiple instances not working
* MainWindow was creating a new core, as well as OptionDialog
2017-04-03 23:02:47 +02:00
Hugo Teso
a8f644dcf4 Enabled webview developer inspector to fix the graph view 2017-04-03 13:36:51 +02:00
Hugo Teso
ea6789af54 Moved http server related settings 2017-04-03 13:03:26 +02:00
Hugo Teso
f47ca71a2c Fixed compilation issue 2017-04-03 10:43:31 +02:00
pancake
27ca3af8f9 Fix #15 - div by zero in graphics bar 2017-04-03 10:23:21 +02:00
pancake
013375c64c Fix another null deref in the dashboard 2017-04-03 10:21:45 +02:00
C. Balles
b82e932ad7 Support sys/user.sh install of radare2 2017-04-03 02:18:41 +02:00
C. Balles
f91b9dd4a9 Cleanup qsettings parameter
* Set Organization- and ApplicationName QApp wide
  - Setting this here removes the redundancy to write the names every time a QSettings object is needed
* removed redundant QSettings parameter
2017-04-03 02:18:09 +02:00
pancake
c99759825a Fix another null deref 2017-04-03 02:16:29 +02:00
pancake
4a49acc2f2 Fix null deref crash in comments 2017-04-03 01:03:20 +02:00
Florian Märkl
24256f239d Fix seek for double clicking reloc item 2017-04-03 00:29:04 +02:00
Florian Märkl
a22b97a53b Fix Program quit when closing dialogs 2017-04-03 00:29:04 +02:00
Florian Märkl
8f80007531 Command Line Argument for Filename 2017-04-03 00:29:04 +02:00
Florian Märkl
ec15a46775 Make Icon Background transparent 2017-04-03 00:29:04 +02:00
Florian Märkl
aee1eb7907 Make Icon Text always centered 2017-04-03 00:29:04 +02:00
Hugo Teso
20e66e59ce Merge pull request #54 from probonopd/patch-1
Compile on Travis CI and upload AppImage for each build
2017-04-02 20:24:21 +02:00
Hugo Teso
7f327166ae Merge pull request #31 from thestr4ng3r/master
Add CMakeLists.txt as an alternative to using qmake.
2017-04-02 20:21:16 +02:00
probonopd
b8de1125f6 Iaitō spelling 2017-04-02 14:36:17 +02:00
probonopd
395e715303 Create iaito.desktop 2017-04-02 14:33:33 +02:00
Hugo Teso
da7777f89b Merge branch 'master' into thread_cleanup 2017-04-02 12:54:38 +02:00
Hugo Teso
a48bac29d0 Merge pull request #44 from ballessay/fb_quit_menu_entry
adding a quit menu entry
2017-04-02 12:48:48 +02:00
Hugo Teso
06c3c19351 Merge pull request #42 from neversatisfied/patch-1
Update mainwindow.ui
2017-04-02 12:41:52 +02:00
Florian Märkl
7b62fc2169 CMake on Windows: Detect 64 bit for library dir 2017-04-01 11:11:39 +02:00
ballessay
5fc6112ca0 fixes a possible crash on exit
- remove unsued constructor parameter. MainWindow is a QWidget
- remove duplicated code. Call MainWindow::setWebServerState
2017-04-01 04:09:03 +02:00
ballessay
e8d5f49d1e MainWindow allocates QRCore now 2017-04-01 04:07:37 +02:00
ballessay
fbabb83060 MainWindow fixes and improvments
- no static WebServerThreads anymore. fixes a crash on load/new
- manage own QRCore
- don't quit the Application but close the window in actionNew
- use startDetached in actionLoad, so the new instance won't get killed
2017-04-01 03:56:35 +02:00
ballessay
1f36c55f6a fixes some problems with WebServerThrad
- use -h& command so the thread does end
- set the QRCore in the constructor
- try to disable the websever with =h-
2017-04-01 03:50:14 +02:00
ballessay
c42faba81c OptionsDialog: fixed memleak
Hold thread as member so the lifetime of it is handled by the dialog.
Another option would be a std::unique_ptr.
2017-04-01 00:47:37 +02:00
ballessay
df72be09a5 cleanup AnalThread
- removed MainWindow dependency
- initalized members
- added custom start function
- handle thread running on destruction
- hide QThread::start
2017-04-01 00:43:12 +02:00
ballessay
1d953822bc adding a quit menu entry
Without titlebar buttons, e. g. in i3, there was no easy way to quit.
2017-03-31 23:54:06 +02:00
neversatisfied
30eec2f529 Update mainwindow.ui
changed color from "drakgray" to "darkgray"
2017-03-31 16:11:21 -05:00
David Ryskalczyk
0ac2d0c839 Fix for OS X compile 2017-03-31 11:20:39 -04:00
Florian Märkl
03e2ea5df9 Fix CMake build on Windows 2017-03-31 16:52:26 +02:00
Hugo Teso
a68d22f608 Fixed function to get end basic blocks 2017-03-31 13:29:11 +02:00
Florian Märkl
94f513a7bd Update CMakeLists.txt for Windows 2017-03-31 13:28:27 +02:00
Florian Märkl
bf8313ce02 Merge branch 'master' into windows 2017-03-31 13:13:14 +02:00
Hugo Teso
80f0a67440 Fixes #34 and makes @joxeankoret a happier person 2017-03-31 12:23:07 +02:00
Hugo Teso
f20033ebb6 Improved exit dialog. Fixes #36 2017-03-31 12:13:33 +02:00
Hugo Teso
097bffeb57 Fixes #37. refreshDisasm function improved 2017-03-31 11:58:41 +02:00
mrexodia
cad2828d1f
add a binary version check to prevent warn about possible binary incompatibility issues 2017-03-31 03:45:59 +02:00
mrexodia
399877dc92
remove useless context help button from all QDialogs 2017-03-31 02:51:14 +02:00
mrexodia
0cc548e96e
dont use 'fork' (closes issue #20) 2017-03-31 02:40:27 +02:00
mrexodia
bcfd398d1d
updated Windows submodule 2017-03-31 02:16:41 +02:00
mrexodia
09598dec33
replace sleep with QThread::sleep (issue #20) 2017-03-31 02:15:38 +02:00
mrexodia
2d0238aeb0
fixed compile error 2017-03-31 00:39:34 +02:00
mrexodia
1232d41068
fixed some more undefined behavior 2017-03-31 00:33:29 +02:00
mrexodia
95a7e1ff44
fixed lots of undefined behavior related to QString::toUtf8() 2017-03-30 23:49:51 +02:00
mrexodia
9a5490caab
UTF-8 as default QString codec (no more fromUtf8) 2017-03-30 23:48:36 +02:00
mrexodia
9b206ec5ae
compile on MinGW 2017-03-30 23:26:30 +02:00
mrexodia
b26d506b58
compile and run on Windows 2017-03-30 23:04:47 +02:00
Florian Märkl
f17248bbac Merge branch 'master' of github.com:hteso/iaito 2017-03-30 18:59:04 +02:00
Florian Märkl
8f81ec244c Add CMakeLists.txt 2017-03-30 18:58:57 +02:00
Hugo Teso
a42db155ea Set r2 settings after loading a project. 2017-03-30 18:47:50 +02:00
Hugo Teso
3a728cbeac Merge pull request #23 from mrexodia/improvements
Improvements
2017-03-30 17:12:41 +02:00
Hugo Teso
4732953e43 Merge pull request #19 from aiosin/master
change dashboard line chart to bar chart
2017-03-30 17:00:54 +02:00
Xiaogrill
33e4b2c55d Changed config path, config name and executable name 2017-03-30 13:49:22 +02:00
Hugo Teso
48897c15ba Pre-select arch and bytes on hexdump preview 2017-03-30 11:27:43 +02:00
Hugo Teso
00354483a1 Changed default http port.
Avoids problems with radare2 instances
2017-03-30 11:06:19 +02:00
mrexodia
c7367b74b8
fix compile errors with functions not returning anything 2017-03-30 04:49:43 +02:00
mrexodia
0f2f037977
better bounds checking in memorywidget 2017-03-30 04:49:04 +02:00
mrexodia
6d36756c7a
removed incorrect assumption 2017-03-30 04:33:09 +02:00
mrexodia
1b45cbd8ea
fixed escaping in mdhighlighter regex 2017-03-30 04:32:51 +02:00
mrexodia
0fa6165ab7
display icon in tray for main window 2017-03-30 04:32:24 +02:00
Wilhelm B
682ef01cf9 change dashboard line chart to bar chart 2017-03-29 21:50:41 +02:00
Hugo Teso
8b2876e38c Merge pull request #14 from sergiodmn/patch-1
Auto scroll in console output for Linux
2017-03-29 19:07:26 +02:00
Hugo Teso
583f52c7cc Merge pull request #5 from Xiaogrill/master
More generic build environment
2017-03-29 18:37:54 +02:00
sergiodmn
23899aac5c Auto scroll in console output
Add auto scroll in console output textedit, the scroll will jump to end after appending data
2017-03-29 18:04:58 +02:00
Calle Svensson
8abf9c8103 Prio select style > hover style 2017-03-29 15:53:33 +02:00
Xiaogrill
65af8bdc72 /usr/include/libr in Makefile 2017-03-29 14:46:08 +02:00
Antonio Rodriguez
dc05ae7ec6 Code sucking less 2017-03-29 13:02:09 +02:00
Hugo Teso
ca821e1064 First code commit
First commit with the app code
2017-03-29 12:18:37 +02:00