From 6e06eb5164bb76c5b03cccc5878eefca283f0b54 Mon Sep 17 00:00:00 2001 From: Dimitris Kapnopoulos Date: Sun, 19 Mar 2017 17:38:18 +0200 Subject: [PATCH] Added tooltips for all QToolButtons. RDSplitter checks for valid index. handleDoubleClicked in RDSplitter checks if the index argument is less than zero or bigger than count --- qrenderdoc/Widgets/Extended/RDSplitter.cpp | 3 + qrenderdoc/Windows/BufferViewer.ui | 21 +++++ qrenderdoc/Windows/Dialogs/CaptureDialog.ui | 78 +++++++++++++++++++ qrenderdoc/Windows/EventBrowser.ui | 18 +++++ .../PipelineState/D3D11PipelineStateViewer.ui | 12 +++ .../PipelineState/D3D12PipelineStateViewer.ui | 12 +++ .../PipelineState/GLPipelineStateViewer.ui | 12 +++ .../VulkanPipelineStateViewer.ui | 12 +++ qrenderdoc/Windows/TextureViewer.ui | 65 ++++++++++++++++ 9 files changed, 233 insertions(+) diff --git a/qrenderdoc/Widgets/Extended/RDSplitter.cpp b/qrenderdoc/Widgets/Extended/RDSplitter.cpp index 9072a24bc..063c08d36 100644 --- a/qrenderdoc/Widgets/Extended/RDSplitter.cpp +++ b/qrenderdoc/Widgets/Extended/RDSplitter.cpp @@ -158,6 +158,9 @@ RDSplitter::RDSplitter(QWidget *parent) : QSplitter(parent) void RDSplitter::handleDoubleClicked(int index) { + if(index < 0 || index >= count()) + return; + RDSplitterHandle *rdHandle = (RDSplitterHandle *)handle(index); QList totalSizes = sizes(); if(totalSizes[index] > 0) diff --git a/qrenderdoc/Windows/BufferViewer.ui b/qrenderdoc/Windows/BufferViewer.ui index 14b1f03d2..960d3b7a0 100644 --- a/qrenderdoc/Windows/BufferViewer.ui +++ b/qrenderdoc/Windows/BufferViewer.ui @@ -172,6 +172,9 @@ true + + Configure Camera + :/cog.png:/cog.png @@ -192,6 +195,9 @@ true + + Reset Camera Position + @@ -209,6 +215,9 @@ true + + Fit Camera to Geometry + @@ -262,6 +271,9 @@ 0 + + Wireframe + Wireframe @@ -290,6 +302,9 @@ 0 + + Highlight Vertices + Highlight Vertices @@ -621,6 +636,9 @@ true + + Export to CSV or raw bytes + :/save.png:/save.png @@ -644,6 +662,9 @@ true + + Sync Views + Sync Views diff --git a/qrenderdoc/Windows/Dialogs/CaptureDialog.ui b/qrenderdoc/Windows/Dialogs/CaptureDialog.ui index 772f6fe31..3e8556e23 100644 --- a/qrenderdoc/Windows/Dialogs/CaptureDialog.ui +++ b/qrenderdoc/Windows/Dialogs/CaptureDialog.ui @@ -58,10 +58,16 @@ 20 + + Browse for an executable file + + + Browse for an executable file + ... @@ -69,6 +75,9 @@ + + Browse for a working directory + Working Directory @@ -76,6 +85,9 @@ + + Browse for a working directory + ... @@ -83,6 +95,9 @@ + + The command-line that will be passed to the executable on launch + Command-line Arguments @@ -90,6 +105,9 @@ + + The environment variables for the executable + Environment Variables @@ -97,6 +115,9 @@ + + The environment variables for the executable + ... @@ -104,6 +125,9 @@ + + Browse for an executable file + Executable Path @@ -117,6 +141,9 @@ 20 + + Browse for a working directory + @@ -127,10 +154,16 @@ 20 + + The command-line that will be passed to the executable on launch + + + The environment variables for the executable + true @@ -322,6 +355,9 @@ Click here to set up Vulkan capture. + + Allows the application to switch to full-screen mode + Allow Fullscreen @@ -329,6 +365,9 @@ Click here to set up Vulkan capture. + + Allows the application to enable v-sync + Allow VSync @@ -378,6 +417,9 @@ Click here to set up Vulkan capture. 0 + + Pauses for N seconds after launching the process, to allow a debugger to attach + secs @@ -400,6 +442,9 @@ Click here to set up Vulkan capture. 0 + + Pauses for N seconds after launching the process, to allow a debugger to attach + Debugger Delay @@ -410,6 +455,9 @@ Click here to set up Vulkan capture. + + Collect a callstack on every API call + Collect Callstacks @@ -417,6 +465,9 @@ Click here to set up Vulkan capture. + + Only collect callstacks on 'drawcall' level api calls + Only Drawcall stacks @@ -424,6 +475,9 @@ Click here to set up Vulkan capture. + + Initialise the graphics API with built-in validation enabled - allows capturing and reading of errors and warnings generated by the API's own debugging system + Enable API Validation @@ -431,6 +485,9 @@ Click here to set up Vulkan capture. + + Hook into child processes - useful with launchers or similar intermediate processes + Hook into Children @@ -438,6 +495,9 @@ Click here to set up Vulkan capture. + + Save the initial API state of all API resources at the start of each captured frame + Save all Initials @@ -445,6 +505,9 @@ Click here to set up Vulkan capture. + + Consider all resources to be included, even if unsued in the capture frame + Ref all Resources @@ -452,6 +515,9 @@ Click here to set up Vulkan capture. + + When enabled, all deferred command lists will be saved even while idling. This has an overhead but ensures if you hold onto a list it will be captured. + Capture all Cmd Lists @@ -466,6 +532,9 @@ Click here to set up Vulkan capture. + + If these capture settings are saved & run, auto start the capture instantly on load + Auto Start @@ -630,6 +699,9 @@ Click here to set up Vulkan capture. + + Save these capture settings to file to load later + Save @@ -643,6 +715,9 @@ Click here to set up Vulkan capture. 0 + + Load a saved set of capture settings + Load @@ -666,6 +741,9 @@ Click here to set up Vulkan capture. + + Launch the selected program with RenderDoc enabled for capture + Launch diff --git a/qrenderdoc/Windows/EventBrowser.ui b/qrenderdoc/Windows/EventBrowser.ui index 5dc691c72..4f22453b9 100644 --- a/qrenderdoc/Windows/EventBrowser.ui +++ b/qrenderdoc/Windows/EventBrowser.ui @@ -71,6 +71,9 @@ + + Go to Previous Drawcall + :/back.png:/back.png @@ -82,6 +85,9 @@ + + Go to Next Drawcall + :/forward.png:/forward.png @@ -100,6 +106,9 @@ + + Find event by string + @@ -120,6 +129,9 @@ + + Jump to an Event by EID + @@ -134,6 +146,9 @@ + + Time durations for the drawcalls + @@ -148,6 +163,9 @@ + + Toggle Bookmark + diff --git a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui index 4ab66f651..1e8164ba7 100644 --- a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui +++ b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui @@ -69,6 +69,9 @@ + + Show Disabled Items + Show Disabled Items @@ -89,6 +92,9 @@ + + Show Empty Items + Show Empty Items @@ -109,6 +115,9 @@ + + Export the current pipeline state to an HTML file + Export @@ -473,6 +482,9 @@ + + View the mesh input data + diff --git a/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui index b0e9c73bf..e83090094 100644 --- a/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui +++ b/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui @@ -69,6 +69,9 @@ + + Show Disabled Items + Show Disabled Items @@ -89,6 +92,9 @@ + + Show Empty Items + Show Empty Items @@ -109,6 +115,9 @@ + + Export the current pipeline state to an HTML file + Export @@ -488,6 +497,9 @@ + + View the mesh input data + diff --git a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui index 030bc430d..6cd12d4e9 100644 --- a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui +++ b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui @@ -69,6 +69,9 @@ + + Show Disabled Items + Show Disabled Items @@ -89,6 +92,9 @@ + + Show Empty Items + Show Empty Items @@ -109,6 +115,9 @@ + + Export the current pipeline state to an HTML file + Export @@ -413,6 +422,9 @@ + + View the mesh input data + diff --git a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui index d732ec50e..26199c737 100644 --- a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui +++ b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui @@ -69,6 +69,9 @@ + + Show Disabled Items + Show Disabled Items @@ -89,6 +92,9 @@ + + Show Empty Items + Show Empty Items @@ -109,6 +115,9 @@ + + Export the current pipeline state to an HTML file + Export @@ -413,6 +422,9 @@ + + View the mesh input data + diff --git a/qrenderdoc/Windows/TextureViewer.ui b/qrenderdoc/Windows/TextureViewer.ui index 0f2601f39..17bbd8537 100644 --- a/qrenderdoc/Windows/TextureViewer.ui +++ b/qrenderdoc/Windows/TextureViewer.ui @@ -138,6 +138,9 @@ 0 + + Zoom the visible range controls to the current black and white points + @@ -158,6 +161,9 @@ 0 + + Automatically fit the black and white points of the range to the minimum and maximum values contained in the texture + @@ -178,6 +184,9 @@ 0 + + Reset to [0, 1] + ... @@ -198,6 +207,9 @@ 0 + + Show a histogram with the distribution of values on top of the visible range + ... @@ -317,6 +329,9 @@ true + + Reset the zoom to 100% + 1:1 @@ -339,6 +354,9 @@ true + + Fit the current texture to the window + Fit @@ -378,6 +396,9 @@ + + Flip the texture in the Y axis + @@ -441,6 +462,9 @@ + + Save selected Texture + @@ -455,6 +479,9 @@ + + Open Texture List + @@ -469,6 +496,9 @@ + + Open the texture contents in a raw buffer viewer + @@ -483,6 +513,9 @@ + + Enter co-ordinates to select a specific pixel location + @@ -656,6 +689,9 @@ + + Show Red (Right click to toggle solo) + R @@ -672,6 +708,9 @@ + + Show Green (Right click to toggle solo) + G @@ -688,6 +727,9 @@ + + Show Blue (Right click to toggle solo) + B @@ -707,6 +749,9 @@ + + Show Alpha (Right click to toggle solo) + A @@ -795,6 +840,9 @@ + + Create New Custom Shader + @@ -809,6 +857,9 @@ + + Edit Selected Shader + @@ -823,6 +874,9 @@ + + Delete Custom Shader + @@ -837,6 +891,9 @@ + + Alpha: Pick Solid Background Color + @@ -854,6 +911,9 @@ + + Alpha: Show Checkerboard Background + @@ -887,6 +947,11 @@ 22 + + Override display of linear data in gamma space + +See FAQ on "Gamma display of linear data" + γ