Commit Graph

79 Commits

Author SHA1 Message Date
baldurk c5adc7a4ed Use relative paths for 3rdparty headers, don't add to search paths
* Unfortunately scintilla assumes its headers are all in the search path
  so where possible we only add those folders when compiling scintilla
  source, not our own.
2017-02-09 19:28:22 +00:00
baldurk 9e47ed53b5 Move resources.qrc into Resources/ folder 2017-02-09 19:28:22 +00:00
baldurk 477df04072 Make sure we're on a consistent event before calling OnLogFileLoaded
* Certain panels like BufferViewer assume there is a current drawcall
  at startup and not an invalid event ID like 0. Normally the event
  browser is loaded first and sets the event ID, but if it's later in
  the list this will break.
2017-02-01 11:17:56 +00:00
baldurk 9690db525b Add support for raw buffer views (not mesh output) 2017-01-26 23:31:58 +00:00
Alex Smith 6e2fc42cbd qrenderdoc: Show currently selected event in the API inspector
Currently, selecting an event with children (e.g. vkCmdExecuteCommands)
in the event browser will cause the API inspector window to show the
final child event, rather than the event itself. This behaviour makes
sense everywhere else: selecting an event with children shows the state
after all children have completed.

However, for the API inspector, we want to be able see API calls for
the parent event when it is selected rather than those of its last
child, particularly in the case of vkCmdExecuteCommands which may have
other API calls leading up to it.

To allow this, distinguish between the "current event" and "selected
event". For an event with children, the former refers to the last
child, while the latter refers to the event itself. ILogViewerForm now
has two separate event callbacks for when either one changes.

The API inspector now makes use of the selected event, while everything
else continues to use the current event.
2017-01-14 20:23:51 +00:00
baldurk 030cbfde9a Batch update copyright years everywhere 2017-01-06 12:13:31 +00:00
baldurk 45c132ef81 Make sure the texture list frame is never deleted by the tool manager 2016-11-24 19:47:02 +01:00
baldurk 31317451de use ToolWindowManager::raiseToolWindow to show the texture viewer 2016-11-24 19:47:01 +01:00
baldurk 7efc1bc455 Don't delete locked tabs, allow them to be deleted by the toolmanager 2016-11-24 19:47:01 +01:00
baldurk 7cc066abac Fixed some issues setting up array textures slice dropdown 2016-11-24 19:47:00 +01:00
baldurk 31023d7c91 Rename the RightArrow icons to action/action_hover 2016-11-24 19:46:58 +01:00
baldurk 3ebfcfc112 Set fixed-width font in portable way 2016-11-21 17:04:36 +01:00
baldurk 86c9742309 Let capture context manage singleton window panes 2016-11-14 15:20:51 +01:00
baldurk f44970d4ca Refresh event selection after texture output is created 2016-11-14 15:19:24 +01:00
baldurk 097b93ce9c Default to deleting windows from ToolWindowManager when closed 2016-11-11 20:35:59 +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 b843c38bdc Categorise remaining TODOs somewhat 2016-11-09 19:27:44 +01:00
baldurk 5c850ac03a Enable action buttons in texture viewer when log is loaded 2016-11-09 13:24:10 +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
baldurk 5a243c4b42 Add an implementation of QOverload to avoid depending on Qt 5.6
* Also switch travis to 5.6 so we don't add a dependency on 5.7 by
  accident.
2016-11-07 19:22:56 +01:00
Alberto Taiuti d1e5149527 Fix missing <math.h> header in qrenderdoc for Arch/clang++
Add the <math.h> header to some of the source files for the target
qrenderdoc. The build would not have succeded without these headers
declaration under Arch Linux/clang++.
2016-10-19 18:55:50 +02:00
baldurk 4cd31908b4 Update qrenderdoc for API changes 2016-10-14 19:38:11 +02:00
baldurk d869222eed Linux build fixes 2016-10-12 17:36:35 +02:00
baldurk c5973d1ed6 Add centralised reset function for restoring to clean state 2016-10-12 16:54:14 +02:00
baldurk a601462de0 Set locked tab proprety early so we can pick it up when it activates 2016-10-12 13:24:28 +02:00
baldurk 791599b48c Cache texture lookup and only update whenever it changes 2016-10-12 13:24:14 +02:00
baldurk fbcb04944d Add texture saving dialog 2016-10-12 00:26:15 +02:00
baldurk db5bdbb05e Add range histogram 2016-10-11 18:33:37 +02:00
baldurk ea587608cb Don't allow dropping dockables onto the tabs where textures sit 2016-10-10 18:50:11 +02:00
baldurk 2507634df9 Add filterable texture list to texture viewer 2016-10-10 18:48:38 +02:00
baldurk a1e9554e66 Implement the ctrl-g texture goto popup 2016-10-10 16:41:48 +02:00
baldurk 3bdd631146 Fix scrollbar positions not updating properly 2016-10-10 13:58:15 +02:00
baldurk 3a772f26ce Implement locked texture tabs and partially complete event usage popup 2016-10-10 13:52:00 +02:00
baldurk a451efcc59 Use now available config 2016-10-07 19:51:06 +02:00
baldurk 3ec1be62ff Paint custom render widgets properly without output, recreate as needed 2016-10-07 19:51:05 +02:00
baldurk 2f461a5029 Handle keypress events for clipboard copy and pixel nudging 2016-10-07 19:51:04 +02:00
baldurk 63b92f76c8 Pass IReplayRenderer to INVOKE_MEMFN calls 2016-10-07 19:51:03 +02:00
baldurk 33e727e4f6 Call AddLogViewer after initialising pixel context & render
* The other way around, if the texture viewer is created after a log has
  already been opened then we end up un-setting the already configured
  outputs.
2016-10-07 15:58:51 +02:00
baldurk e32e26eb83 Save texture viewer dock layout & background colour in persist data 2016-10-07 15:58:50 +02:00
baldurk b96d49190c Avoid naming manually connected slots on_x_y() 2016-10-07 15:58:45 +02:00
baldurk ccfa1ceaed Add some utility functions to rdctype::array/str
* Avoids the need to directly reference .elems to cast to const char*
  for strings, and has begin()/end() for C++11 foreach loops
2016-10-07 15:58:44 +02:00
baldurk 2be29d9229 Move Following struct declaration to header, add per-texture settings 2016-10-05 20:20:19 +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 a8ca89e0f5 Fix compile warnings 2016-10-05 01:13:08 +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 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 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