baldurk
9610919c16
Fix copy-paste of rich resource text
...
* We need to cache to the QString text on demand, which requires a context
potentially sooner than paint/etc time.
2020-12-02 17:44:46 +00:00
baldurk
bd9d88b328
Add missing includes
2020-11-19 17:34:11 +00:00
baldurk
3f5a911483
Refactor CustomPaintWidget to handle widget recreation internally
...
* This allows us to expose to to python as a easy-to-use "replay output ready"
widget.
2020-11-19 14:47:11 +00:00
baldurk
8d647e5584
Avoid recalculating header view sizes when irrelevant roles change
2020-10-16 16:13:30 +01:00
baldurk
c2a21a9106
Don't emit redundant change signals when nothing changed
2020-10-16 16:13:30 +01:00
baldurk
7fc06ee77e
Fix rendering of selected/highlighted rich resource text
2020-10-16 16:13:30 +01:00
Kevin McCullough
e213cfafa9
Modifying the TextureList to use EventBrowser-style chooser.
2020-10-15 22:19:44 +01:00
baldurk
55c57f7e89
Display stencil values in binary and decimal in tooltips. Closes #2052
2020-10-01 15:56:52 +01:00
baldurk
ec023ac660
Avoid unnecessary re-layouts when populating thumbnails
2020-09-03 18:07:47 +01:00
baldurk
9fba077537
Add a couple of other missing QPainterPath includes
2020-06-07 00:44:35 +01:00
baldurk
7a821c20bd
Add custom context menu for all tree views with expand/collapse and copy
2020-05-29 20:09:13 +01:00
baldurk
1c19deb825
Improve copy-paste behaviour for tree views
2020-05-29 20:07:48 +01:00
Raul Tambre
1478aeddde
Fix #1898 : Add missing QPointer include
2020-05-19 09:41:41 +01:00
baldurk
284dbe7d79
Fix crash if CustomPaintWidget is destroyed with paint mid-flight
2020-05-16 12:17:55 +01:00
baldurk
8a5fdda6b1
Add extended RDMenu
2020-05-16 11:13:19 +01:00
baldurk
22d5cf2313
Scroll selected pixel to centre on goto. Refs #1885
2020-05-15 20:50:55 +01:00
Jake Turner
d100c6c622
Include "QEvent"
...
Compile fix for MacOS Catalina
2020-05-11 18:04:00 +01:00
baldurk
0e8cb5b2eb
Set search direction properly for find previous/next. Closes #1866
2020-05-04 13:48:25 +01:00
baldurk
e276146163
Fix RDHeaderView not properly updating in some cases
2020-03-18 12:02:03 +00:00
baldurk
15a2753d63
Fix stale index hanging around in RDTreeView after change
2020-03-18 12:01:37 +00:00
baldurk
4f39279578
When opening a texture in raw buffer viewer, scroll to selected point
2020-03-13 18:00:34 +00:00
baldurk
a2b437b903
Change Find/Replace dialog to have Find Next/Find Previous buttons
...
* Enter and shift-enter in the find text go forwarwd and backwards respectively.
* This replaces the previous system of selecting a direction explicitly and only
ever going in that direction when finding.
2020-02-25 18:19:52 +00:00
baldurk
5e6ec417c1
Add a global font scale option in settings window
...
* This lets the user override the default application font.
* Unfortunately Qt seems to behave inconsistently with font scaling from the
system, so we take the font size initially from QApplication::font() (which
doesn't always pick up the font size) and scale from there. While this might
cause some font scaling to be lost it does mean at least we have a consistent
scale, as otherwise you get some text scaling and others not.
2020-02-13 11:01:45 +00:00
baldurk
2916c0f9f7
Update copyright years to 2020
2020-01-06 16:20:45 +00:00
baldurk
ff08748238
Ensure all files have trailing new-lines and enforce with clang warning
2019-12-02 20:28:05 +00:00
baldurk
f514815e3c
Update buffer formatter help text, save its visibility in config
2019-11-29 13:53:45 +00:00
baldurk
5acb6af862
Fix some painting not reacting to different fonts correctly
2019-10-11 13:07:36 +01:00
baldurk
83c98f1ff7
Tweak rich resource text rendering to match non-rich text positioning
2019-10-11 13:07:36 +01:00
baldurk
ca9e43fd6e
Add hoverItemChanged event to RDTreeWidget
2019-09-30 13:41:14 +01:00
baldurk
0d7c7eb247
Fix linux compilation
2019-08-27 19:44:29 +01:00
baldurk
80bfa1b409
Fix display of ResourceId text in log viewer
2019-08-27 18:51:57 +01:00
baldurk
6203909791
Expose replay options to the UI
...
* The defaults can be configured from the settings menu, and there's a new "Open
Capture with Options" menu option to open a capture with different options
temporarily.
2019-08-27 18:51:56 +01:00
baldurk
039b65f89f
Add a viewer of the diagnostic log in the UI itself
2019-06-27 10:22:13 +01:00
baldurk
05f044016b
Don't call QObject::connect for a NULL model
2019-05-22 11:33:09 +01:00
baldurk
943a790319
Fix a crash when resizing a header view with all sections hidden
2019-05-22 10:53:52 +01:00
baldurk
775fa9b635
Disconnect item model before deleting RDTreeWidget/RDTreeView
...
* This avoids odd races where some events might be fired mid-destruction and
encounter the item model in an undefined state.
2019-05-21 13:58:38 +01:00
baldurk
4311b35038
Tidy up RDTreeView expansion handling
2019-04-05 13:22:33 +01:00
baldurk
3d2fa8cd3e
Optimise RichResourceText to special-case for single ResourceId text
...
* Most cases don't have other text together with a ResourceId, so handle an
isolated ResourceId specially and manually render it.
* Further work - we could cache the name the same way as the RichResourceText
does. So far it doesn't seem to appear on profiling.
2019-03-29 17:48:15 +00:00
baldurk
13d35645be
When clearing RDTreeWidgetItem don't remove children one-by-one
2019-03-27 17:57:56 +00:00
baldurk
9b15368c37
Remove unused code
2019-03-27 17:57:44 +00:00
baldurk
e9e42839c3
Support specifying structs in buffer formatter. Closes #805
...
* Structs and arrays-of-structs are completely flattened for the purposes of
displaying them still.
2019-02-14 12:55:44 +00:00
baldurk
86ff87863e
Update copyright years to 2019
2019-02-01 18:32:13 +00:00
baldurk
f3dda7959e
For very large tables, don't fallback to rendering all rows
...
* lastRow can return -1 in some situations where there's no last row visible,
but we don't want to render potentially millions of invisible rows.
2019-01-04 16:44:00 +00:00
baldurk
91e80a7756
Remove accidentally committed debug print
2019-01-03 14:26:18 +00:00
baldurk
ce88558a7c
Refactor RDTreeWidgetDelegate into RichTextViewDelegate that is reusable
...
* This allows us to add rich text support much more easily into other itemviews
like RDTableView.
* We set it up for debug messages so that resource links in debug messages can
be linked.
2018-12-17 17:10:34 +00:00
baldurk
58e2c88e76
Don't custom size horizontal header by default in RDTableView
2018-12-17 17:10:33 +00:00
baldurk
ae3fbe2085
Select text in find dialog when opening it e.g. with ctrl-f
2018-12-06 12:50:46 +00:00
baldurk
944e37c47a
Adjust colouring for pipeline flow chart, improve contrast. Closes #1141
...
* On the light theme we use a less dark background colour improving contrast
with the text.
* On the dark theme the background is still super dark, but we dim the outline
colour which provides an indication of disabled stages
2018-10-29 17:23:11 +00:00
baldurk
76e2a0f42e
On macOS, force a repaint of CustomPaintWidget upon UpdateRequest
...
* For some reason the actual paint event never makes it through after converting
to metal-compatible widgets, but painting in response to UpdateRequest (which
should become a paint really) works about as well.
2018-09-05 10:01:35 +01:00
baldurk
a4e125f961
Fix thumbnails being drawn over whole resource preview
2018-09-05 09:58:16 +01:00