baldurk
00e06d8ff1
Make display rendering colours theme-aware.
...
* In particular this removes hard-coded checkerboard colours that don't
look right on dark themes.
2017-08-28 18:50:17 +01:00
baldurk
4c24b0f28f
Remove use of ToQStr to convert rdctype::str to QString
2017-08-18 14:13:22 +01:00
Cody Northrop
b52d91224e
utils: Update messageBoxChecked to use bool directly, no local copy
2017-08-15 09:36:20 -07:00
Cody Northrop
58b0d29bf4
utils: Add new messageBox helper that includes checkBox
2017-08-15 09:36:20 -07:00
baldurk
acae04af02
Expose getLuminance for QColor
2017-07-14 17:17:54 +01:00
baldurk
9e8bb36008
Compile fix - keep headers separate so clang-format doesn't re-sort them
2017-07-13 18:45:25 +01:00
baldurk
a01b85135b
Move windows-only code into #ifdef
2017-07-12 21:36:04 +01:00
baldurk
0032a11fc2
Implement global hook feature for Qt
2017-07-12 13:54:12 +01:00
baldurk
f8b458176a
Add stub HLSL generation for editing D3D shaders that have no source
2017-07-06 16:34:48 +01:00
baldurk
5fc90f7a08
Fix menus not showing up on some user configurations
...
* Menus aren't guaranteed to pass isVisible() immediately after calling
popup() on them, so we need to wait for their aboutToHide signal to
stop the event loop.
2017-06-16 23:31:05 +01:00
baldurk
1cc2c22195
Invoke CaptureContext function calls onto UI thread, from python thread
...
* Any work that might use Qt needs to happen on the UI thread, so when
running a python script on the python thread we need to invoke across.
We wrap the main ICaptureContext interface to block invoke onto the UI
for any function calls that aren't just returning internal data.
2017-06-09 17:00:28 +01:00
baldurk
fe8c76154f
Draw gridlines in WindowText palette color, not just black
2017-06-01 14:23:34 +01:00
baldurk
5b74b66493
Don't construct a QFont globally (as a class static)
...
* It causes a crash when Qt is statically linked.
2017-05-18 15:05:03 +01:00
baldurk
870f0cc166
Filename filters should be translated
2017-05-15 10:11:55 +01:00
baldurk
bbff0fce1c
Implement row colouring and tree colouring in event browser.
...
* Also do custom painting of branches to do proper full-row colouring
instead of leaving an ugly gap around the tree controls.
2017-05-04 20:36:46 +01:00
baldurk
ab432f24fc
Implement the UI option for preferring monospaced font
2017-05-04 20:36:46 +01:00
baldurk
0ecc6ca877
Enable QT_NO_CAST_FROM_ASCII & QT_NO_CAST_TO_ASCII
...
* Added a couple of utility macros to help with the conversion. lit() is
paired with tr() for untranslated text.
* QFormatStr is more explicitly for non-textual formatting strings.
* Both are just #define'd to QStringLiteral()
2017-05-02 22:58:12 +01:00
baldurk
f65f5ea9da
Use new RDTreeWidget everywhere in favour of QTreeWidget
...
* Since we're promoting everything, we reset the behaviour of
RDTreeWidget so that it's not doing anything different by default.
* RDTreeWidget's interface is a bit different, exposing some useful
things like a single selected item and so on.
* We also can't set columns in the Qt Creator UI anymore, so we set them
from code.
2017-04-21 18:44:52 +01:00
baldurk
637d4089e2
Rename colour to color in public API code
...
* Following the principle of least surprise, color tends to be more
commonly used in APIs and graphics code even outside the USA.
2017-04-18 14:57:37 +01:00
baldurk
d40fc8471d
Change API enums to enum class, remove now redundant prefixing
...
* This gives a little nicer syntax, a bit better type safety, and also
reflects better for SWIG bindings. Overall it's a minor change but
better.
* We don't update the C# UI at all, since it's soon to be removed and
not worth the effort/code churn.
* For now so we're ABI compatible with C#, all enums are uint32_t, but
that is an obvious optimisation in future to reduce struct packing.
* We avoid 'None' as an enum value, because it's a reserved word in
python so will cause problems generating bindings.
2017-04-18 14:57:33 +01:00
baldurk
3398fcc9de
Add support for configuring an external SPIR-V disassembler in Qt UI
2017-02-16 17:10:04 +00:00
baldurk
72921f2642
Ensure windows.h is included first before shellapi.h
2017-02-16 17:10:02 +00:00
baldurk
f416f4770e
Implement UI side of detecting vulkan layer problems and fixing as admin
...
* Stub functions for the actual detection/fixing part.
2017-02-14 19:14:53 +00:00
baldurk
e1d180246c
Add dialog for both managing remote hosts (add/remove) and attaching
2017-02-09 19:28:23 +00:00
baldurk
9c03eb69bc
Add remote file browsing dialog
2017-02-09 19:28:21 +00:00
baldurk
4ec3b4dce3
Add support for remote context capture and replay, including Android
...
* Still missing is remote file/folder browsing, and managing remote
hosts adding/removing etc.
2017-02-09 19:28:21 +00:00
baldurk
f4bd51fc21
Revamp progress dialogs to abstract away most of the handling
2017-02-09 19:28:20 +00:00
baldurk
a200ed8455
Tweak grid layout lines to match up better for non-square tables
2017-01-24 19:00:57 +00:00
baldurk
7ef73f92ef
Add shader viewer (view only - not edit/debug) using Scintilla widget
2017-01-23 19:09:29 +00:00
baldurk
030cbfde9a
Batch update copyright years everywhere
2017-01-06 12:13:31 +00:00
baldurk
48169536f5
Implement float formatting rules
2016-11-25 15:43:25 +01:00
baldurk
a2d40f8061
Add constant buffer previewer for qrenderdoc
2016-11-25 14:17:20 +01:00
baldurk
9ab11786b2
Add a utility to style a QGridLayout with actual lines between elements
2016-11-24 19:47:04 +01:00
baldurk
a85eb017a3
Add custom browsing for executable files that checks permissions
2016-11-21 16:46:19 +01:00
baldurk
3441ce608b
Add static member for Yes|No|Cancel buttons
2016-11-14 14:12:47 +01:00
baldurk
1c61b82221
Add stub ToStr copied functions to fix up some implementations
...
* Eventually the main project's ToStr will move into a header file so
that we don't have to duplicate any code.
2016-11-11 20:35:59 +01:00
baldurk
cff5da63eb
Cache method index for GUIInvoke invokes to avoid string compares
2016-11-09 19:13:22 +01:00
baldurk
2175404d4e
Ensure message boxes happen on the main thread
2016-11-09 18:09:56 +01:00
baldurk
bb2f3a205c
Move common Qt utility functions & JSON I/O together in a single place
2016-11-09 13:23:53 +01:00