Peter Gal
4263b55ffa
Fix enum flag usages in the qrenderdoc
...
There are a few places where the logical 'and' operator
was used to check if a given flag is enabled however
that is not the correct operator.
The binary 'and' operator should be used where
the enum acts as a flag.
2017-06-08 08:34:54 -07:00
baldurk
ffcbf233d1
Link against python in python modules for now. Refs #639
...
* This really isn't ideal as it means the python module will only work
with that specific major.minor version of python, when it could in
theory work with any python version above 3.2 or so, depending on what
features are used.
* Since we're not distributing these modules yet though, add this
linking to support -Wl,--no-undefined.
2017-06-08 14:02:21 +01:00
baldurk
54b9263597
Persist the mesh view's dock layout between sessions
2017-06-03 00:59:57 +01:00
baldurk
a4fe376c32
Add column selection popup for event browser and persist column state
...
* We can add in the Draw # column now, and set up the default state to
not include the duration column.
2017-06-03 00:53:54 +01:00
baldurk
231c07d390
Make sure to initialise update queueing variable to false
2017-06-03 00:49:16 +01:00
baldurk
63bf0310d3
Fix summing of durations in event browser
2017-06-03 00:46:11 +01:00
baldurk
3b6f63be0d
Make event browser columns properly resizable and re-orderable
...
* Annoyingly although Qt has an internal bool allowUserMoveOfSection0
which does exactly what we want allowing the tree column to be
movable, we can't enable it because it's private. So instead we have
to re-implement section moving ourselves.
* Minor tweak - also made RDTreeWidgets non-movable by default since
usually we don't want to allow it.
2017-06-03 00:38:02 +01:00
baldurk
0c3dec3b67
Go back to manually drawing PE_PanelItemViewItem in drawBranches()
...
* There's a messy order-of-operations thing to deal with various
different themes, as well as a couple of minor problems, but at least
the highlight and selection bars draw fairly consistently and don't
leave an ugly gap over the branches.
2017-06-02 17:30:41 +01:00
baldurk
10aa73528d
Reset event browser before it's added
...
* When we add it, if a log is already open that's when we get the
callback to OnLogFileOpened to initialised. If we close afterwards,
we'll be in an inconsistent state.
2017-06-01 18:50:14 +01:00
baldurk
bf791b7854
Use 20% highlight colour instead of window for hovering on tree widgets
2017-06-01 18:48:05 +01:00
baldurk
b311e65dbd
Change margins to be a minimum instead of adding them
...
* The style itself may have added some margins and we don't want to add
extra margins, just set a minimum.
2017-06-01 18:47:42 +01:00
baldurk
49243c0878
Use a style proxy setting SH_ItemView_ShowDecorationSelected to fill
...
* This still isn't perfect with some custom style stuff but it's next
to impossible to get working right. In theory we should manually
draw PE_PanelItemViewItem in the gap in drawRow() or so to make sure
we also draw any on-hover highlight over objects, but that doesn't
seem to work.
2017-06-01 18:28:13 +01:00
baldurk
f0116c4c08
Remap topology diagrams to Base/Text palette colours instead of b/w
2017-06-01 15:22:22 +01:00
baldurk
2ddfc40182
Use the palette's lightness for highlighting matching input binds
2017-06-01 14:30:53 +01:00
baldurk
fe8c76154f
Draw gridlines in WindowText palette color, not just black
2017-06-01 14:23:34 +01:00
baldurk
5c877ae1ae
Add default-enabled grid lines to RDTreeView (and so RDTreeWidget)
2017-06-01 14:17:36 +01:00
baldurk
3076b4337b
Move size delegate into item margins implemented by RDTreeView
2017-06-01 14:17:00 +01:00
baldurk
a30c704e46
Inherit RDTreeWIdget from RDTreeView instead of QTreeView
2017-06-01 14:15:17 +01:00
baldurk
39f2a6d3dc
Update toolwindowmanager to 8a1543b
2017-06-01 12:41:12 +01:00
baldurk
26c4284b26
Add new ToolWindowManagerSplitter files to projects
2017-06-01 12:31:29 +01:00
baldurk
2b9f9665f9
Update toolwindowmanager to 9b0b99a
2017-06-01 11:28:40 +01:00
baldurk
59977e47de
Use GLSL highlighting for now on vulkan source files
...
* Later we should pipe through the source language from the SPIR-V and
use that instead, for the other APIs it's just trivially HLSL/GLSL.
2017-06-01 11:28:38 +01:00
baldurk
cbdf9951b9
Style preprocessor commands in HLSL/GLSL
2017-06-01 11:28:38 +01:00
baldurk
c7fb05744c
Always display full tabs for file scintilla docks in shader viewer
2017-06-01 11:28:36 +01:00
baldurk
0f8e3ce452
Send DeferredDelete events explicitly in our main event loop
...
* It's not entirely clear if this is the intended fix, but otherwise
since we're not running QApplication::exec() the main event loop has
the same 'loop level' of 0 as the event level when it's fired. The
proper functioning seems to be that the posted deleteLater event
should have an event level of 1 which then means it will be processed
when coming back to the exec() loop level of 0, but since we don't get
that, just run it manually after all other events.
2017-06-01 11:28:36 +01:00
baldurk
be4358207a
Allow for up to 7 digits of space in vertex/index columns in mesh view
2017-05-31 12:42:04 +01:00
baldurk
2ca83cbea4
Don't accidentally insert bounding box data while trying to look it up
2017-05-31 12:39:58 +01:00
baldurk
58a2560c49
Reset the arcball around the bounding box when resetting the camera
2017-05-31 12:30:03 +01:00
baldurk
973cbd380f
Don't show bounding box around rasterized output in mesh viewer
2017-05-31 11:39:00 +01:00
baldurk
327b822230
Update wireframe mesh 'icon' image to be less arbitrary and weird
2017-05-30 17:14:50 +01:00
baldurk
fbf03ecd77
Set up pipeline viewers to re-draw the mesh icon in an appropriate color
2017-05-30 17:14:37 +01:00
baldurk
26862d92b2
Add a toggle to RDLabel to preserve the aspect ratio of its pixmap
2017-05-30 17:08:37 +01:00
baldurk
c95f7c4cea
Add default copy-paste handlers for RDListWidget and RDTreeWidget
2017-05-30 16:13:41 +01:00
baldurk
4d8ee2be43
Remove a function that is unimplemented and unused
2017-05-30 15:38:23 +01:00
baldurk
a79ca2f73c
Fix an extra arg %4 parameter that's unused for 3-wide vectors
2017-05-30 15:38:15 +01:00
baldurk
aeab2d085b
Get fix for toolwindowmanager - 3a02944
2017-05-30 15:37:58 +01:00
baldurk
641eaf4665
Add option to instantly show tooltips over RDTreeWidget items
2017-05-30 14:08:44 +01:00
baldurk
2c145fc64c
Add handling to remote suggestion dialog for selecting remotes
2017-05-30 13:18:57 +01:00
baldurk
6d08766792
Set ToolWindowManager::AlwaysDisplayFullTabs on texture viewer displays
2017-05-30 12:39:16 +01:00
baldurk
d4ac0118ce
Update toolwindowmanager to f86518a
2017-05-30 12:39:01 +01:00
baldurk
3ab7510c7f
Avoid calling XOpenDisplay multiple times, fixes crashes on Intel Mesa
...
* See https://bugs.freedesktop.org/show_bug.cgi?id=99831
https://bugs.freedesktop.org/show_bug.cgi?id=54971
* It's not clear if it's invalid to call XOpenDisplay more than once but
at the very least it's only really used as convenience to avoid
plumbing the display handle through.
2017-05-30 12:02:00 +01:00
baldurk
34112696e6
Update toolwindowmanager to 13451b8 with a few more fixes
2017-05-29 18:21:43 +01:00
baldurk
19218b6bef
Remove hardcoded color stylesheets from shader labels in pipeline views
2017-05-29 17:52:25 +01:00
baldurk
886ec3190c
Use WindowText color for custom painting on RDSplitterHandle
2017-05-29 17:52:01 +01:00
baldurk
a504355900
Use QPalette::Base as background for SuggestRemoteDialog
...
* Removes hardcoded #fff white background which breaks on other themes.
2017-05-29 16:59:02 +01:00
baldurk
09c9ae94d2
Change the vulkan layer warning to be theme-friendly
...
* The hardcoded background color didn't work on light-on-dark themes,
so instead just use the tooltip base color, and darken on hover.
2017-05-29 16:51:57 +01:00
baldurk
da6560f9aa
Use anti-aliasing when rendering histogram bar
2017-05-29 16:07:56 +01:00
baldurk
d170724bdb
Update to toolwindowmanager 8e36057 to get a couple of important fixes
2017-05-29 15:59:26 +01:00
baldurk
158bc4d583
Update code for new toolwindowmanager
2017-05-29 13:31:28 +01:00
baldurk
4bc361fc1a
Update ToolWindowManager to 4c259a67f36491a7c1f92cfea9a424c94e0e364b
...
* From my fork - https://github.com/baldurk/toolwindowmanager
* Contains many changes and improvements to make the docking solution
more usable.
2017-05-29 13:19:46 +01:00