Commit a1b74dde authored by Clement CHAVANCE's avatar Clement CHAVANCE

Save method implemented in all the ProjectPreferences Widgets

parent 532cfecf
......@@ -24,20 +24,21 @@
#include "QDebug"
AudioProjectPreferences::AudioProjectPreferences( QWidget *parent )
: PreferenceWidget( parent )
AudioProjectPreferences::AudioProjectPreferences( QWidget *parent )
: PreferenceWidget( parent )
{
m_ui.setupUi( this );
m_ui.setupUi( this );
}
AudioProjectPreferences::~AudioProjectPreferences() { }
bool AudioProjectPreferences::load()
{
qDebug() << "Loading AudioProjectPreferences values";
return true;
qDebug() << "Loading AudioProjectPreferences values";
return true;
}
void AudioProjectPreferences::save( QHash<QString, QVariant>& settings )
{
settings.insert( "AudioSampleRate", m_ui.SampleRate->value() );
}
......@@ -29,20 +29,22 @@
#include "PreferenceWidget.h"
ProjectPreferences::ProjectPreferences( QWidget* parent )
: PreferenceWidget( parent )
ProjectPreferences::ProjectPreferences( QWidget* parent )
: PreferenceWidget( parent )
{
m_ui.setupUi( this );
m_ui.setupUi( this );
}
ProjectPreferences::~ProjectPreferences() { }
bool ProjectPreferences::load()
{
qDebug() << "Loading ProjectPreferences values";
return true;
qDebug() << "Loading ProjectPreferences values";
return true;
}
void ProjectPreferences::save( QHash<QString, QVariant>& settings )
{
settings.insert( "ProjectName", QVariant( m_ui.ProjectNameLineEdit->text() ) );
settings.insert( "ProjectDirectory", QVariant( m_ui.ProjectDirectoryLineEdit->text() ) );
}
......@@ -40,4 +40,7 @@ bool VLMCPreferences::load()
void VLMCPreferences::save( QHash<QString, QVariant>& settings )
{
settings.insert( "VLMCOutPutFPS", QVariant( m_ui.outputFPS->text() ) );
settings.insert( "VLMCPreviewFPS", QVariant( m_ui.previewFPS->text() ) );
settings.insert( "VLMCTracksNb", QVariant( m_ui.tracksNb->text() ) );
}
......@@ -25,19 +25,22 @@
#include "QDebug"
VideoProjectPreferences::VideoProjectPreferences( QWidget *parent )
: PreferenceWidget( parent )
: PreferenceWidget( parent )
{
m_ui.setupUi( this );
m_ui.setupUi( this );
}
VideoProjectPreferences::~VideoProjectPreferences() { }
bool VideoProjectPreferences::load()
{
qDebug() << "Loading VideoProjectPreferences values";
return true;
qDebug() << "Loading VideoProjectPreferences values";
return true;
}
void VideoProjectPreferences::save( QHash<QString, QVariant>& settings )
{
settings.insert( "VideoProjectFPS", QVariant( m_ui.FPSSpinBox->value() ) );
settings.insert( "VideoProjectHeight", QVariant( m_ui.HeightSpinBox->value() ) );
settings.insert( "VideoProjectWidth", QVariant( m_ui.WidthSpinBox->value() ));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment