Merge lot of cool stuff in master

Make it stable and release it
This commit is contained in:
jfmcarreira committed 2015-01-17 03:52:19 +00:00
1 parent 3e6b04e983
commit 58a0b11c8f
69 files changed
+1854 -2487

No files matched your search

+3 -83
View File
@@ -1,6 +1,6 @@
/* This file is a part of plaYUVer project
* Copyright (C) 2014 by Luis Lucas (luisfrlucas@gmail.com)
* Joao Carreira (jfmcarreira@gmail.com)
* Copyright (C) 2014-2015 by Luis Lucas (luisfrlucas@gmail.com)
* Joao Carreira (jfmcarreira@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -27,89 +27,9 @@
namespace plaYUVer
{
Settings::Settings() :
m_settings( "pixLRA", "plaYUVer" )
Settings::Settings()
{
}
// - - - - - - - - - - - - Main Window Settings - - - - - - - - - - - - - - - -
QPoint Settings::mainWindowPos()
{
return m_settings.value( "MainWindow/pos", QPoint( 200, 200 ) ).toPoint();
}
Void Settings::setMainWindowPos( const QPoint & pos )
{
m_settings.setValue( "MainWindow/pos", pos );
}
QSize Settings::mainWindowSize()
{
return m_settings.value( "MainWindow/size", QSize( 500, 400 ) ).toSize();
}
Void Settings::setMainWindowSize( const QSize & size )
{
m_settings.setValue( "MainWindow/size", size );
}
QString Settings::lastOpenPath()
{
return m_settings.value( "MainWindow/lastOpenPath", QDir::homePath() ).toString();
}
Void Settings::setLastOpenPath( const QString & path )
{
m_settings.setValue( "MainWindow/lastOpenPath", path );
}
Int Settings::getSelectedTool()
{
return m_settings.value( "MainWindow/SelectedTool", ViewArea::NavigationTool ).toInt();
}
Void Settings::setSelectedTool( Int tool )
{
m_settings.setValue( "MainWindow/SelectedTool", tool );
}
Void Settings::setDockVisibility( Bool statusStreamProperties, Bool statusFrameProperties, Bool statusQualityMeasurement )
{
m_settings.setValue( "Dock/StreamProperties", statusStreamProperties );
m_settings.setValue( "Dock/FrameProperties", statusFrameProperties );
m_settings.setValue( "Dock/QualityMeasurement", statusQualityMeasurement );
}
Void Settings::getDockVisibility( Bool& statusStreamProperties, Bool& statusFrameProperties, Bool& statusQualityMeasurement )
{
statusStreamProperties = m_settings.value( "Dock/StreamProperties", true ).toBool();
statusFrameProperties = m_settings.value( "Dock/FrameProperties", true ).toBool();
statusQualityMeasurement = m_settings.value( "Dock/QualityMeasurement", true ).toBool();
}
// - - - - - - - - - - - - PLaying Settings - - - - - - - - - - - - - - - -
Bool Settings::getRepeat()
{
return m_settings.value( "Playing/Repeat", false ).toBool();
}
Void Settings::setPlayingSettings( Bool repeat)
{
m_settings.setValue( "Playing/Repeat", repeat );
}
Void Settings::setRecentFileList( PlaYUVerStreamInfoVector recentFileList )
{
QVariant var;
var.setValue<PlaYUVerStreamInfoVector>( recentFileList );
m_settings.setValue("MainWindow/RecentFileList", var );
}
QVector<PlaYUVerStreamInfo> Settings::getRecentFileList()
{
QVariant value = m_settings.value("MainWindow/RecentFileList");
return value.value<PlaYUVerStreamInfoVector>();
}
// - - - - - - - - - - - - - - Grid Settings - - - - - - - - - - - - - - - - - -