Commit Graph

4230 Commits

Author SHA1 Message Date
baldurk 044c16a0a3 Switch to helper functions for blocking dialogs (file and message)
* To continue the workaround for QTBUG-56382 we need to run our own
  manual message loop for dialogs as well. We only use a couple so we
  can just run it through a handful of thin wrappers.
2016-10-05 16:52:05 +02:00
baldurk 86623528bf Work around QTBUG-56382 with manual event loop flushing
* See https://bugreports.qt.io/browse/QTBUG-56382 for more details -
  creating DXGI swapchains adds a windows hook, and enough windows hooks
  forces out Qt's internal hook which it relies upon for proper event
  processing.
2016-10-05 16:52:05 +02:00
baldurk d1cda249e2 Don't 'use' hidden thumbnails with items we're not going to show 2016-10-05 16:52:04 +02:00
baldurk 74c7820c18 Fix typo - don't use the wrong variable 2016-10-05 16:52:03 +02:00
baldurk 202ab8867c Treat backbuffers as sRGB for the purposes of remapping. Refs #368 2016-10-05 11:16:04 +02:00
baldurk dbbba985f6 Don't execute Qt env script for docs builds 2016-10-05 01:26:27 +02:00
baldurk c47ab2c515 Fix for conflicts between X headers and Qt due to overlapping #defines 2016-10-05 01:13:09 +02:00
baldurk 924b973c5b Remove duplicated files listed in qt project 2016-10-05 01:13:08 +02:00
baldurk a8ca89e0f5 Fix compile warnings 2016-10-05 01:13:08 +02:00
baldurk b14135a22e Compile fix, typo'd variable name 2016-10-05 01:08:49 +02:00
baldurk c5eff0acc4 Travis: Fix typo in package name
* Side note, it's incredibly stupid that the only way for me to iterate
  on this is to push public commits, without doing something awkward
  like forking to a separate repo just to test.
2016-10-04 22:56:00 +02:00
baldurk cc664a3129 Travis: Configure travis to compile specifically with Qt5.7 2016-10-04 22:51:17 +02:00
baldurk ea81c9ef8e Move includes to header file for Display/xcb_connection_t definitions 2016-10-04 20:13:57 +02:00
baldurk da992e9c3e Add following and populating thumbnails
* This is buggy - the UI seems to hang at random until you switch away
  and back, some event I guess is stalling the queue somehow but it's
  still pumping events.
2016-10-04 19:54:35 +02:00
baldurk 6668b44153 Update Core filename to CaptureContext in qt project 2016-10-04 19:54:34 +02:00
baldurk 525fb3faf1 Refresh thumbnail strip layout when it becomes visible 2016-10-04 19:54:34 +02:00
baldurk 9b3e0176dc Pass clicked event from resource preview members to signal 2016-10-04 19:54:33 +02:00
baldurk 591ad38e48 Pass MouseEvent through label click signal 2016-10-04 19:54:33 +02:00
baldurk fe1e86d35a Fill out pipeline state with API pipelines 2016-10-04 19:54:32 +02:00
baldurk 39bfe99ae5 Implement common pipeline state abstraction 2016-10-04 19:54:32 +02:00
baldurk 0b6b6b3e86 Add MIT License comment to the head of all source files 2016-10-04 19:54:31 +02:00
baldurk e91634004f Rename Core to CaptureContext 2016-10-04 19:54:31 +02:00
baldurk 0f4d43cd37 Make minmax/histogram aware of custom shaders. Refs #385
* This moves those functions relative to an output instead of the
  renderer, so they pick up the settings etc from the output
  configuration.
2016-10-04 19:54:30 +02:00
baldurk a1c72464fd Fix a case where UNKNOWN_PREV_IMG_LAYOUT could leak out into barrier
* In this case we fall back to transitioning from LAYOUT_UNDEFINED
2016-10-04 19:54:29 +02:00
baldurk 7e35a6a7ba Implement remaining functions needed on resource preview widget 2016-10-04 19:54:29 +02:00
baldurk 2577218e32 Add thumbnail strip widget to manage sizing and layout of thumb previews 2016-10-04 19:54:28 +02:00
baldurk 7bb9c36de4 Switch from QList to QVector for internal storage. 2016-10-04 19:54:28 +02:00
baldurk 00c5546198 Bump GL serialise version to account for added buffer initial states 2016-10-04 19:54:27 +02:00
baldurk ed56e3a603 Default to 0,0 picked location so the pixel context doesn't flicker 2016-10-04 19:54:27 +02:00
baldurk f930154be7 Rename thumb lists to input/output 2016-10-04 19:54:26 +02:00
baldurk 1db8aaca5f ResourcePreview changed to fixed size (sized by thumbstrip) & clickable 2016-10-04 19:54:25 +02:00
baldurk ca8cc98be6 Add RDLabel, an expanded QLabel 2016-10-04 19:54:25 +02:00
baldurk 7ec3049844 Rename LineEditFocusWidget to RDLineEdit
* It seems due to deficiencies in Qt's design, there will be a
  substantial need for these small custom subclasses just to add basic
  functionality that should have been present in the original. So we'll
  adopt a naming scheme of QFooBar -> RDFooBar for this 'almost the
  same widget' type subclassing, compared to more custom/changed ones.
2016-10-04 19:54:24 +02:00
baldurk 39cd42882b Add a ResourcePreview widget 2016-10-04 19:54:24 +02:00
baldurk c8015b9e99 Populate mip/slice dropdowns and allow selecting which is visible 2016-10-04 19:54:23 +02:00
baldurk 9489e4e4d1 Don't try to close & delete a NULL thread 2016-10-04 19:54:23 +02:00
baldurk df77ef6cbe Make sure thread is closed before shutdown 2016-10-04 19:54:22 +02:00
baldurk 97130b25d8 Add selection of background colour (or checkerboard pattern) 2016-10-04 19:54:22 +02:00
baldurk 5135fd6a56 When selecting a marker, select the next 'real' draw instead 2016-10-04 19:54:21 +02:00
baldurk 7f3a61d3fa Add pixel context view 2016-10-04 19:54:20 +02:00
baldurk 54225f1133 Hook up channels and overlay widgets 2016-10-04 14:40:10 +02:00
baldurk 62e18306de Add a helper macro for simple async render thread invokes 2016-10-04 14:40:09 +02:00
baldurk 6d22781610 Set a timeout on the render manager thread 2016-10-04 14:40:09 +02:00
baldurk 1b4e1acea9 Add remaining resources from renderdocui 2016-10-04 14:40:08 +02:00
baldurk 59c5267e24 Set up remaining widgets etc in texture viewer 2016-10-04 14:40:07 +02:00
Baldur Karlsson ef79b3452e Update date on Archlinux dependencies 2016-10-03 13:04:00 +02:00
Hubert Jarosz 3c5305719c update ArchLinux dependencies
* `libx11-xcb` was renamed to `libxcb`
* `libgl` should be used instead of `mesa-libgl` (`libgl` is also provided by `nvidia-libgl`)
2016-10-03 13:03:29 +02:00
baldurk 8c09722d67 Fix variable shadow warnings 2016-10-02 20:25:19 +02:00
baldurk 9ee4653a7a Add triangle size overlay, showing heatmap of triangles < 4x4 in area 2016-10-02 20:04:43 +02:00
baldurk b959b0ce30 Specify TRANSFER_DST usage for overlay image, to allow clears 2016-10-02 20:01:32 +02:00