Commit 86c57422 authored by Geoffroy Lacarriere's avatar Geoffroy Lacarriere
Browse files

Add of the project/VLMC preferences widgets

parent 123083d7
#include "AudioProjectPreferences.h"
#include "QDebug"
AudioProjectPreferences::AudioProjectPreferences( QWidget *parent ) :
QWidget( parent )
{
this->setWidget( this );
m_ui.setupUi( this );
}
AudioProjectPreferences::~AudioProjectPreferences() { }
bool AudioProjectPreferences::load()
{
qDebug() << "Loading AudioProjectPreferences values";
return true;
}
void AudioProjectPreferences::save( QSettings& settings )
{
settings.beginGroup( "Project" );
//settings.setValue( "outputFPS", m_ui.outputFPS->text() );
settings.endGroup();
}
#ifndef AUDIOPROJECTPREFERENCES_H
#define AUDIOPROJECTPREFERENCES_H
#include <QWidget>
#include <QSettings>
#include "PreferenceWidget.h"
#include "ui_AudioProjectPreferences.h"
class AudioProjectPreferences : public QWidget, public PreferenceWidget
{
//Q_OBJECT
public:
AudioProjectPreferences(QWidget *parent = 0);
~AudioProjectPreferences();
bool load();
void save( QSettings& settings );
private:
Ui::AudioProjectPreferences m_ui;
};
#endif // AUDIOPROJECTPREFERENCES_H
#include "VLMCPreferences.h"
#include "QDebug"
VLMCPreferences::VLMCPreferences(QWidget *parent) :
QWidget(parent)
{
this->setWidget( this );
m_ui.setupUi(this);
}
VLMCPreferences::~VLMCPreferences() { }
bool VLMCPreferences::load()
{
qDebug() << "Loading VLMCPreferences values";
return true;
}
void VLMCPreferences::save( QSettings& settings )
{
settings.beginGroup( "Project" );
//settings.setValue( "outputFPS", m_ui.outputFPS->text() );
settings.endGroup();
}
#ifndef VLMCPREFERENCES_H
#define VLMCPREFERENCES_H
#include <QWidget>
#include <QSettings>
#include "PreferenceWidget.h"
#include "ui_VLMCPreferences.h"
class VLMCPreferences : public QWidget, public PreferenceWidget
{
//Q_OBJECT
public:
VLMCPreferences(QWidget *parent = 0);
~VLMCPreferences();
bool load();
void save( QSettings& settings );
private:
Ui::VLMCPreferences m_ui;
};
#endif // VLMCPREFERENCES_H
#include "VideoProjectPreferences.h"
#include "QDebug"
VideoProjectPreferences::VideoProjectPreferences(QWidget *parent) :
QWidget(parent)
{
this->setWidget( this );
m_ui.setupUi( this );
}
VideoProjectPreferences::~VideoProjectPreferences() { }
bool VideoProjectPreferences::load()
{
qDebug() << "Loading VideoProjectPreferences values";
return true;
}
void VideoProjectPreferences::save( QSettings& settings )
{
settings.beginGroup( "Project" );
//settings.setValue( "outputFPS", m_ui.outputFPS->text() );
settings.endGroup();
}
#ifndef VIDEOPROJECTPREFERENCES_H
#define VIDEOPROJECTPREFERENCES_H
#include <QWidget>
#include <QSettings>
#include "PreferenceWidget.h"
#include "ui_VideoProjectPreferences.h"
class VideoProjectPreferences : public QWidget, public PreferenceWidget
{
//Q_OBJECT
public:
VideoProjectPreferences(QWidget *parent = 0);
~VideoProjectPreferences();
bool load();
void save( QSettings& settings );
private:
Ui::VideoProjectPreferences m_ui;
};
#endif // VIDEOPROJECTPREFERENCES_H
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AudioProjectPreferences</class>
<widget class="QWidget" name="AudioProjectPreferences">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>200</width>
<height>33</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="SampleRateLabel">
<property name="text">
<string>SampleRate</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="spinBox"/>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
<ui version="4.0" >
<author/>
<comment/>
<exportmacro/>
<class>VLMCPreferences</class>
<widget class="QWidget" name="VLMCPreferences" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
</widget>
<pixmapfunction/>
<connections/>
</ui>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>VideoProjectPreferences</class>
<widget class="QWidget" name="VideoProjectPreferences">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>453</width>
<height>171</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="FPSLabel">
<property name="text">
<string>FPS</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QSpinBox" name="FPSSpinBox">
<property name="suffix">
<string> Frames/Seconds</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65536</number>
</property>
<property name="value">
<number>25</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="FrameSizeLabel">
<property name="text">
<string>FrameSize</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="FrameSizeLabel_2">
<property name="text">
<string>Horizontal</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QSpinBox" name="HeightSpinBox">
<property name="suffix">
<string> Pixels</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65536</number>
</property>
<property name="value">
<number>800</number>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLabel" name="FrameSizeLabel_3">
<property name="text">
<string>Vertical</string>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QSpinBox" name="WidthSpinBox">
<property name="suffix">
<string> Pixels</string>
</property>
<property name="maximum">
<number>65536</number>
</property>
<property name="value">
<number>600</number>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
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