baldurk
6dd63c6aec
Convert counter viewer to item model, sync filter with event browser
2021-10-18 14:14:36 +01:00
baldurk
34a65857b1
Use custom sort on shader messages for location/workgroup
...
* The default sorting is purely text based so 1,0,0 is followed by 10,0,0 not
2,0,0. We customise the sort so it does the right thing per-column.
2021-07-23 12:01:41 +01:00
baldurk
f06171f733
When copy-pasting from a treeview, trim each line individually
...
* This helps with views that have icon-only columns at the start or end, which
would generate unnecessary whitespace when copying multiple lines.
2021-07-22 11:08:28 +01:00
baldurk
fe81f57316
Remove recent filters button in favour of styling a fake combo box
...
* The filter icon was confusing since it had a 'refresh' badge instead of
'save/load/recent' type badge, and making the latter readable in a few pixels
is not feasible. Having the combo dropdown with saved filters is as intuitive
and works in-line.
2021-07-01 15:15:04 +01:00
baldurk
c5457a141b
Add settings popup that explains & documents filters
2021-07-01 15:15:03 +01:00
baldurk
cb7fdc9b94
Add auto-completion prompts for filter function parameters
2021-07-01 15:15:03 +01:00
baldurk
195ab94e51
Implement filter function auto-completion prompts
2021-07-01 15:15:02 +01:00
baldurk
e3f55c511d
Add highlighting and display of filter parse errors
2021-07-01 15:15:02 +01:00
baldurk
58b38337f1
Optimise tree view expand/collapse all to avoid slow Qt path
2021-07-01 15:15:02 +01:00
baldurk
5a65cbf62c
Tweak default item sizing in RDTreeView to better handle font scales
...
* We're somewhat trying to match Qt's behaviour here, as we want to ensure that
the items are always sized as if they have space for an icon when
ignoreIconSize() is true. In this case there's a +2 added "to avoid icons
overlapping" but only after the decorationsize is max'd with the font size. In
cases where the font is bigger than the icon, this is important.
2021-07-01 15:15:01 +01:00
baldurk
a1a0dee085
Handle richtext delegate in RDTreeView instead of widget
2021-07-01 15:15:01 +01:00
baldurk
94b1dd3923
Add ability to update a working expansion struct instead of resetting
...
* This is mostly useful when using a filtering model so we want to save the
expansion state of nodes that are temporarily filtered out
2021-07-01 15:15:01 +01:00
baldurk
21598b5d0c
Fix missing override on function
2021-06-01 21:35:10 +01:00
baldurk
ea16d31aa3
Invalidate cached hover index in tree view when model changes
2021-06-01 18:17:55 +01:00
baldurk
00e1f0056d
Fix a crash if a table widget gets a copy shortcut with no selection
2021-05-19 11:44:41 +01:00
baldurk
e3eb2ee754
Fix sorting for texture viewer texture list
2021-04-20 13:51:41 +01:00
baldurk
9d3f7169ed
Add thumbnails to texture tooltips in pipeline state view
...
* If there would be no tooltip otherwise, it just shows the thumbnail. Otherwise
any tooltip text (like view parameters or image layout) is displayed below the
thumbnail
2021-04-20 13:51:41 +01:00
baldurk
260583b805
Move tooltip handling from RDTreeWidget to RDTreeView
2021-04-20 13:51:41 +01:00
baldurk
270d4e5b07
Add resource usage entries into context menu in pipeline state viewer
2021-04-19 16:44:19 +01:00
baldurk
12d9b4f850
Add copy icon to treeview context menu
2021-04-19 15:30:19 +01:00
baldurk
34ea6529c9
Account for rootIsDecorated when painting tree lines in RDTreeView
2021-04-12 13:04:02 +01:00
baldurk
728fa34acc
Move branch colouring to RDTreeView
2021-02-24 13:52:07 +00:00
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
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
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
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
baldurk
8a5fdda6b1
Add extended RDMenu
2020-05-16 11:13:19 +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
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
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
80bfa1b409
Fix display of ResourceId text in log viewer
2019-08-27 18:51:57 +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