Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
d46ad690
Commit
d46ad690
authored
Mar 18, 2013
by
Stéphane Albert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Added DatabaseModel class.
parent
26b139b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
298 additions
and
3 deletions
+298
-3
Code/Application/Catalogue/main.cxx
Code/Application/Catalogue/main.cxx
+2
-2
Code/Application/Catalogue/mvdCatalogueApplication.h
Code/Application/Catalogue/mvdCatalogueApplication.h
+0
-1
Code/Common/Core/CMakeLists.txt
Code/Common/Core/CMakeLists.txt
+2
-0
Code/Common/Core/mvdDatabaseModel.cxx
Code/Common/Core/mvdDatabaseModel.cxx
+111
-0
Code/Common/Core/mvdDatabaseModel.h
Code/Common/Core/mvdDatabaseModel.h
+183
-0
No files found.
Code/Application/Catalogue/main.cxx
View file @
d46ad690
...
...
@@ -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
...
...
Code/Application/Catalogue/mvdCatalogueApplication.h
View file @
d46ad690
...
...
@@ -96,7 +96,6 @@ public:
/** \brief Destructor. */
virtual
~
CatalogueApplication
();
/*-[ PUBLIC SLOTS SECTION ]------------------------------------------------*/
public
slots
:
...
...
Code/Common/Core/CMakeLists.txt
View file @
d46ad690
...
...
@@ -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
...
...
Code/Common/Core/mvdDatabaseModel.cxx
0 → 100644
View file @
d46ad690
/*=========================================================================
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'
Code/Common/Core/mvdDatabaseModel.h
0 → 100644
View file @
d46ad690
/*=========================================================================
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment