mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Expose replay options to the UI
* The defaults can be configured from the settings menu, and there's a new "Open Capture with Options" menu option to open a capture with different options temporarily.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "Code/QRDUtils.h"
|
||||
#include "Styles/StyleData.h"
|
||||
#include "Widgets/OrderedListEditor.h"
|
||||
#include "Widgets/ReplayOptionsSelector.h"
|
||||
#include "CaptureDialog.h"
|
||||
#include "ui_SettingsDialog.h"
|
||||
|
||||
@@ -38,6 +39,10 @@ SettingsDialog::SettingsDialog(ICaptureContext &ctx, QWidget *parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
m_ReplayOptions = new ReplayOptionsSelector(m_Ctx, false, this);
|
||||
|
||||
ui->replayOptionsLayout->insertWidget(0, m_ReplayOptions);
|
||||
|
||||
QString styleChooseTooltip = ui->UIStyle->toolTip();
|
||||
|
||||
for(int i = 0; i < StyleData::numAvailable; i++)
|
||||
@@ -192,6 +197,9 @@ SettingsDialog::SettingsDialog(ICaptureContext &ctx, QWidget *parent)
|
||||
|
||||
SettingsDialog::~SettingsDialog()
|
||||
{
|
||||
m_Ctx.Config().DefaultReplayOptions = m_ReplayOptions->options();
|
||||
m_Ctx.Config().Save();
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user