Commit ff8580f3 authored by Clement CHAVANCE's avatar Clement CHAVANCE
Browse files

Class SimplePreferences is now class Settings

parent 4b4bfdb7
......@@ -164,7 +164,7 @@ void MainWindow::m_initializeDockWidgets( void )
void MainWindow::createGlobalPreferences()
{
m_globalPreferences = new SimplePreferences( );
m_globalPreferences = new Settings( );
m_globalPreferences->addWidget("Project",
new ProjectPreferences,
"images/vlmc.png",
......
......@@ -33,7 +33,7 @@
#include "MetaDataManager.h"
#include "Timeline.h"
#include "WorkflowFileRenderer.h"
#include "SimplePreferences.h"
#include "Settings.h"
class MainWindow : public QMainWindow
......@@ -64,7 +64,7 @@ private:
QSlider* m_zoomSlider;
Timeline* m_timeline;
WorkflowFileRenderer* m_renderer;
SimplePreferences* m_globalPreferences;
Settings* m_globalPreferences;
private slots:
void on_actionFullscreen_triggered( bool checked );
......
/*****************************************************************************
* SimplePreferences.cpp: generic preferences interface
* Settings.cpp: generic preferences interface
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
......@@ -30,11 +30,11 @@
#include "PreferenceWidget.h"
#include "SimplePreferences.h"
#include "Settings.h"
#include "Panel.h"
SimplePreferences::SimplePreferences( QWidget* parent)
Settings::Settings( QWidget* parent)
: QWidget(parent),
m_currentWidget( NULL ),
m_panel( NULL ),
......@@ -49,7 +49,7 @@ SimplePreferences::SimplePreferences( QWidget* parent)
m_stackedWidgets, SLOT( setCurrentIndex( int ) ));
}
SimplePreferences::~SimplePreferences()
Settings::~Settings()
{
delete m_panel;
delete m_title;
......@@ -59,7 +59,7 @@ SimplePreferences::~SimplePreferences()
//TODO : see if the widget MUST have a fixed size, or if the window can dynamicaly
//adjust to the size of the biggest Widget.
void SimplePreferences::addWidget( const QString& name,
void Settings::addWidget( const QString& name,
PreferenceWidget* pWidget,
const QString& icon,
const QString& label)
......@@ -75,7 +75,7 @@ void SimplePreferences::addWidget( const QString& name,
}
}
void SimplePreferences::build()
void Settings::build()
{
if (m_currentWidget == 0)
qFatal( "Can't build the preference panel without an added widget" );
......@@ -87,7 +87,7 @@ void SimplePreferences::build()
}
QVBoxLayout* SimplePreferences::buildRightHLayout()
QVBoxLayout* Settings::buildRightHLayout()
{
QVBoxLayout* layout = new QVBoxLayout;
QFrame* titleLine = new QFrame;
......@@ -116,12 +116,12 @@ QVBoxLayout* SimplePreferences::buildRightHLayout()
return ( layout );
}
void SimplePreferences::save( void )
void Settings::save( void )
{
}
void SimplePreferences::switchWidget( int widget )
void Settings::switchWidget( int widget )
{
//TODO : Change the title of the preferences shown
//Hide the current widget and show the new one.
......
/*****************************************************************************
* SimplePreferences.h: generic preferences interface
* Settings.h: generic preferences interface
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
......@@ -35,14 +35,14 @@
#include "Panel.h"
#include "PreferenceWidget.h"
class SimplePreferences : public QWidget
class Settings : public QWidget
{
Q_OBJECT
Q_DISABLE_COPY( SimplePreferences )
Q_DISABLE_COPY( Settings )
public:
SimplePreferences( QWidget* parent = 0 );
~SimplePreferences();
Settings( QWidget* parent = 0 );
~Settings();
void addWidget( const QString& name,
PreferenceWidget* pWidget,
const QString& icon,
......
......@@ -46,7 +46,7 @@ SOURCES += src/main.cpp \
src/API/Module.cpp \
src/API/ModuleManager.cpp \
src/WorkflowFileRenderer.cpp \
src/gui/SimplePreferences.cpp \
src/gui/Settings.cpp \
src/gui/Panel.cpp \
src/gui/PreferenceWidget.cpp \
src/gui/ProjectPreferences.cpp
......@@ -94,7 +94,7 @@ HEADERS += src/gui/MainWindow.h \
src/WorkflowFileRenderer.h \
src/vlmc.h \
src/tools/Pool.hpp \
src/gui/SimplePreferences.h \
src/gui/Settings.h \
src/gui/Panel.h \
src/gui/PreferenceWidget.h \
src/gui/ProjectPreferences.h
......
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