preferences: added setting for rectified waveforms
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QComboBox>
|
||||
#include <QCheckBox>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "common/autoscroll.h"
|
||||
@@ -74,6 +72,14 @@ PreferencesGeneralTab::PreferencesGeneralTab()
|
||||
|
||||
row++;
|
||||
|
||||
general_layout->addWidget(new QLabel(tr("Rectified Waveforms:")), row, 0);
|
||||
|
||||
rectified_waveforms_ = new QCheckBox();
|
||||
rectified_waveforms_->setChecked(Config::Current()["RectifiedWaveforms"].toBool());
|
||||
general_layout->addWidget(rectified_waveforms_, row, 1);
|
||||
|
||||
row++;
|
||||
|
||||
general_layout->addWidget(new QLabel(tr("Default Still Image Length:")), row, 0);
|
||||
|
||||
default_still_length_ = new FloatSlider();
|
||||
@@ -101,6 +107,8 @@ void PreferencesGeneralTab::Accept()
|
||||
Config::Current()["DefaultSequenceAudioFrequency"] = default_sequence_.audio_params().sample_rate();
|
||||
Config::Current()["DefaultSequenceAudioLayout"] = QVariant::fromValue(default_sequence_.audio_params().channel_layout());
|
||||
|
||||
Config::Current()["RectifiedWaveforms"] = rectified_waveforms_->isChecked();
|
||||
|
||||
Config::Current()["Autoscroll"] = autoscroll_method_->currentData();
|
||||
|
||||
Config::Current()["DefaultStillLength"] = QVariant::fromValue(rational::fromDouble(default_still_length_->GetValue()));
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef PREFERENCESGENERALTAB_H
|
||||
#define PREFERENCESGENERALTAB_H
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QSpinBox>
|
||||
|
||||
@@ -27,6 +28,8 @@ private:
|
||||
|
||||
QComboBox* autoscroll_method_;
|
||||
|
||||
QCheckBox* rectified_waveforms_;
|
||||
|
||||
FloatSlider* default_still_length_;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user