Add generic user-provided notes to save along with the capture.

* In future one of the notes items would be for gathered hardware info.
  Not automatically, but with one button press the full configuration
  can be embedded.
This commit is contained in:
baldurk
2017-11-16 13:23:43 +00:00
parent 19974e1771
commit 4a4089f316
18 changed files with 502 additions and 0 deletions
@@ -106,6 +106,8 @@ SettingsDialog::SettingsDialog(ICaptureContext &ctx, QWidget *parent)
// disable sub-checkbox
ui->EventBrowser_ColorEventRow->setEnabled(ui->EventBrowser_ApplyColors->isChecked());
ui->Comments_ShowOnLoad->setChecked(m_Ctx.Config().Comments_ShowOnLoad);
ui->Formatter_MinFigures->setValue(m_Ctx.Config().Formatter_MinFigures);
ui->Formatter_MaxFigures->setValue(m_Ctx.Config().Formatter_MaxFigures);
ui->Formatter_NegExp->setValue(m_Ctx.Config().Formatter_NegExp);
@@ -359,6 +361,13 @@ void SettingsDialog::on_EventBrowser_ColorEventRow_toggled(bool checked)
m_Ctx.Config().Save();
}
void SettingsDialog::on_Comments_ShowOnLoad_toggled(bool checked)
{
m_Ctx.Config().Comments_ShowOnLoad = ui->Comments_ShowOnLoad->isChecked();
m_Ctx.Config().Save();
}
// android
void SettingsDialog::on_browseTempCaptureDirectory_clicked()
{