Commit d46ad690 authored by Stéphane Albert's avatar Stéphane Albert

ENH: Added DatabaseModel class.

parent 26b139b3
......@@ -54,13 +54,13 @@
int
main( int argc, char* argv[] )
{
// Initialize application and sync settings.
mvd::CatalogueApplication application( argc, argv );
application.Initialize();
// Initialize main-window (UI).
mvd::MainWindow mainWindow;
mainWindow.Initialize();
#if 0
......
......@@ -96,7 +96,6 @@ public:
/** \brief Destructor. */
virtual ~CatalogueApplication();
/*-[ PUBLIC SLOTS SECTION ]------------------------------------------------*/
public slots:
......
......@@ -7,6 +7,7 @@ set( Common_Core_SOURCES
mvdAbstractModel.cxx
mvdAlgorithm.cxx
mvdDatasetDescriptor.cxx
mvdDatabaseModel.cxx
mvdDatasetModel.cxx
mvdHistogramModel.cxx
mvdI18nApplication.cxx
......@@ -26,6 +27,7 @@ set( Common_Core_HEADERS_MOC
mvdAbstractImageModel.h
mvdAbstractModel.h
# mvdAlgorithm.h
mvdDatabaseModel.h
mvdDatasetDescriptor.h
mvdDatasetModel.h
mvdHistogramModel.h
......
/*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licence_CeCILL_V2-en.txt or
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt for more details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "mvdDatabaseModel.h"
/*****************************************************************************/
/* INCLUDE SECTION */
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
//
// System includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace mvd
{
/*
TRANSLATOR mvd::DatabaseModel
Necessary for lupdate to be aware of C++ namespaces.
Context comment for translator.
*/
/*****************************************************************************/
/* CONSTANTS */
/*****************************************************************************/
/* STATIC IMPLEMENTATION SECTION */
/*****************************************************************************/
/* CLASS IMPLEMENTATION SECTION */
/*******************************************************************************/
DatabaseModel
::DatabaseModel( QObject* parent ) :
AbstractModel( parent )
{
}
/*******************************************************************************/
DatabaseModel
::~DatabaseModel()
{
}
/*******************************************************************************/
void
DatabaseModel
::virtual_BuildModel( void* context )
{
}
/*******************************************************************************/
bool
DatabaseModel
::IsModified() const
{
return false;
}
/*******************************************************************************/
void
DatabaseModel
::ClearModified()
{
}
/*******************************************************************************/
void
DatabaseModel
::Save()
{
}
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
} // end namespace 'mvd'
/*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licence_CeCILL_V2-en.txt or
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt for more details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __mvdDatabaseModel_h
#define __mvdDatabaseModel_h
//
// Configuration include.
//// Included at first position before any other ones.
#include "ConfigureMonteverdi2.h"
/*****************************************************************************/
/* INCLUDE SECTION */
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
//
// System includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
#include "mvdAbstractModel.h"
/*****************************************************************************/
/* PRE-DECLARATION SECTION */
//
// External classes pre-declaration.
namespace
{
}
namespace mvd
{
//
// Internal classes pre-declaration.
/*****************************************************************************/
/* CLASS DEFINITION SECTION */
/** \class DatabaseModel
*
*/
class Monteverdi2_EXPORT DatabaseModel :
public AbstractModel
{
/*-[ QOBJECT SECTION ]-----------------------------------------------------*/
Q_OBJECT;
/*-[ PUBLIC SECTION ]------------------------------------------------------*/
//
// Public types.
public:
/**
* \class BuildContext
* \brief WIP.
*/
class BuildContext
{
//
// Public methods.
public:
BuildContext()
{
}
//
// Public attributes
public:
};
//
// Public methods.
public:
/** \brief Constructor. */
DatabaseModel( QObject* parent =NULL );
/** \brief Destructor. */
virtual ~DatabaseModel();
/**
*/
void Save();
//
// AbstractModel overrides.
virtual bool IsModified() const;
virtual void ClearModified();
/*-[ SIGNALS SECTION ]-----------------------------------------------------*/
//
// Signals.
signals:
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
//
// Protected methods.
protected:
//
// AbstractModel overrides.
/**
*/
virtual void virtual_BuildModel( void* context =NULL );
//
// Protected attributes.
protected:
/*-[ PRIVATE SECTION ]-----------------------------------------------------*/
//
// Private attributes.
private:
//
// Private methods.
private:
//
// Private attributes.
private:
/*-[ PRIVATE SLOTS SECTION ]-----------------------------------------------*/
//
// Slots.
private slots:
};
} // end namespace 'mvd'
/*****************************************************************************/
/* INLINE SECTION */
//
// Monteverdi deferred includes (sorted by alphabetic order)
namespace mvd
{
} // end namespace 'mvd'
#endif // __mvdDatabaseModel_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