baldurk
1c37bfa02e
Fix painting issues when scrolling with pinned columns
2021-01-25 16:14:03 +00:00
baldurk
026da176bb
Update copyright years to 2021
2021-01-13 13:56:10 +00:00
baldurk
441be22410
Override QTreeView::moveCursor to fix scrollbar behaviour. Closes #2144
...
* This prevents SH_ItemView_ArrowKeysNavigateIntoChildren from causing left-move
from an expanded node to jump immediately to its parent instead of collapsing
it when the scrollbar is not leftmost
2021-01-11 11:45:18 +00:00
baldurk
4f7abcd488
Remove unneeded window attribute in custom paint widget
...
* This was having some unpleasant knock-on effects in Qt that caused other
controls in the panels to fail to render properly.
2021-01-06 16:58:43 +00:00
baldurk
d727feb806
Improve handling of multiline richresourcetext documents
2020-12-15 22:52:38 +00:00
baldurk
df6fec13f9
Remove use of automodule in docs
...
* One automodule in a file for our modules is way too much, so we split it into
files. Unfortunately this means that only one file can have those classes and
functions be linkable from elsewhere.
* Instead we bite the bullet and manually curate the items into pages, and at
the same time subdivide the 'enums and data' page more which is a general
readability and usability win as well.
* We also add some previously not-included functions, and add a doc-build time
check to ensure that functions and classes aren't omitted from the
documentation in future
2020-12-07 17:44:50 +00:00
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