Commit Graph

23 Commits

Author SHA1 Message Date
xarkes
3cd71f75e1 Changing coding style 2018-03-21 21:33:40 +01:00
Nics
c4e8a1c178 Small refactor for the widgets of Cutter (#405)
* Small refactor for the widgets of Cutter

This refactor include the following :

* Creation of a new class
Creation of a new class, named CutterWidget, that inherits from QDockWidget and
is used to represent all of the widgets of the main window.
The goal of this class is to regroup all the behaviour shared by the widgets of
Cutter.

For example : in the constructor, instructions corresponding of those
present in the macro **ADD_DOCK** (in MainWindow.cpp) are executed.
This was made because I think that the macro **ADD_DOCK** which is used
to construct the widgets does not take advantage of the object structure.

* Ensure that every widget has a parent
Some widgets were created using the constructor QDockWidget, but using
**nullptr** (default) as argument, thus they haven't got any parent.

The constructor of a CutterWidget takes as argument the MainWindow and an
action (optional) and calls the constructor of QDockWidget with the main
window as argument. This is valid under the assumption that it is mandatory
for every widget to have the main window as a parent.

* Constructors removal
The constructors of some widgets are not used anywhere and does not seem not
fullfill any current usecase. They were removed.

* Renaming CutterWidget to CutterDockWidget
2018-03-16 22:46:57 +01:00
xarkes
08c2ac54c4 cutter => Cutter 2018-03-04 19:07:33 +01:00
xarkes
0c035f7ad8 Hexdump widget improvements 2018-02-08 12:46:23 +01:00
xarkes
689cb06ff2 Some HexdumpWidget fixes 2018-02-07 21:15:33 +01:00
Thomas (nezza-_-) Roth
9847836d73 HexdumpWidget enhancements (#235) 2018-01-27 11:08:05 +01:00
Florian Märkl
40a3928ab6 Clean up Hexdump sidebar a bit more #121 2017-12-03 11:50:14 +01:00
xarkes
5b21f970ac Clean up Hexdump Sidebar (Fix #121) 2017-12-03 02:44:12 +01:00
Florian Märkl
ec4d11f9c0 Use color theme in Hexdump 2017-11-20 17:38:10 +01:00
Florian Märkl
3a4e87ca41 Replace HexdumpWidget::resizeHexdump() with sizePolicy 2017-11-20 11:29:59 +01:00
Florian Märkl
2775b4bb0a Use global font for Hexdump, Remove old menu 2017-11-20 11:15:48 +01:00
Florian Märkl
6b650dbc14 Hexdump Header 2017-11-19 22:21:02 +01:00
Florian Märkl
cfc5f78c92 Add/remove lines on Hexdump resize 2017-11-19 15:09:48 +01:00
Florian Märkl
4833a1bdc7 Fix Hexdump scroll for cursor moving out of bounds 2017-11-18 15:33:52 +01:00
Florian Märkl
1bdb9ae80f Fix Hexdump bounds 2017-11-18 13:56:48 +01:00
Florian Märkl
e62d731783 Hexdump scroll 2017-11-17 16:12:51 +01:00
Florian Märkl
c74c743f79 Implement HexdumpWidget::refresh() 2017-11-17 10:42:57 +01:00
Florian Märkl
c0248c8bf6 HexdumpWidget: visible lines calculation 2017-11-17 10:42:57 +01:00
Florian Märkl
bde54511a9 Prepare HexdumpWidget 2017-11-17 10:42:57 +01:00
Properrr
f75b630f0c Fixed #98 Rename in a non-function (#105) 2017-11-08 17:17:24 +04:00
Florian Märkl
46bf0761bb Dynamic Memory Widget Priority (#86)
* Memory Widget priority from last user-selected widget

* CutterCore::raisePrioritizedMemoryWidget signal

* Space shortcut to switch between Disassembly/Graph

* Set default memory widget priority to Disassembly
2017-11-04 19:46:29 +08:00
Florian Märkl
ff080c1d3c Remove QtWebEngine (Fix #60)
* Remove QML QtWebEngine dependency

* Remove Web graphs from Dashboard

* Remove web graphs from SidebarWidget

* Remove web mini graph from PreviewWidget

* Remove all remaining html and QtWebEngine dependencies

* Update docs/Compiling-with-CMake.md after QtWebEngine removal

* Remove QtWebEngine from Travis
2017-10-15 13:40:20 +02:00
Florian Märkl
12e64cf052 Breakup MemoryWidget (#51)
* Add SidebarWidget from disassembly sidebar

* Remove disassembly sidebar from MemoryWidget

* Add HexdumpWidget from MemoryWidget

* Remove Hexdump from MemoryWidget

* Make PreviewWidget from MemoryWidget

* Some cleanup

* Rename DisassemblyView to DisasseblyWidget
2017-10-13 15:56:47 +02:00