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
423b43d7
Commit
423b43d7
authored
May 21, 2013
by
Otmane Lahlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ADD: subclass TreeWidgetItem to store the datasetId
parent
a640b5d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
239 additions
and
0 deletions
+239
-0
Code/Common/Gui/CMakeLists.txt
Code/Common/Gui/CMakeLists.txt
+2
-0
Code/Common/Gui/mvdDatasetTreeWidgetItem.cxx
Code/Common/Gui/mvdDatasetTreeWidgetItem.cxx
+93
-0
Code/Common/Gui/mvdDatasetTreeWidgetItem.h
Code/Common/Gui/mvdDatasetTreeWidgetItem.h
+144
-0
No files found.
Code/Common/Gui/CMakeLists.txt
View file @
423b43d7
...
...
@@ -29,6 +29,7 @@ set( Common_Gui_SOURCES
mvdDatabaseTreeWidget.cxx
mvdDatasetPropertiesWidget.cxx
mvdDatasetPropertiesController.cxx
mvdDatasetTreeWidgetItem.cxx
)
#############################################################################
...
...
@@ -62,6 +63,7 @@ set( Common_Gui_HEADERS_MOC
mvdDatabaseTreeWidget.h
mvdDatasetPropertiesWidget.h
mvdDatasetPropertiesController.h
mvdDatasetTreeWidgetItem.h
)
#############################################################################
...
...
Code/Common/Gui/mvdDatasetTreeWidgetItem.cxx
0 → 100644
View file @
423b43d7
/*=========================================================================
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 "Gui/mvdDatasetTreeWidgetItem.h"
/*****************************************************************************/
/* INCLUDE SECTION */
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
//
// System includes (sorted by alphabetic order)
#include <cassert>
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace
mvd
{
/*
TRANSLATOR mvd::DatasetTreeWidgetItem
Necessary for lupdate to be aware of C++ namespaces.
Context comment for translator.
*/
/*****************************************************************************/
/* CONSTANTS */
/*****************************************************************************/
/* STATIC IMPLEMENTATION SECTION */
/*****************************************************************************/
/* CLASS IMPLEMENTATION SECTION */
/*******************************************************************************/
DatasetTreeWidgetItem
::
DatasetTreeWidgetItem
(
const
QString
&
datasetId
,
QTreeWidgetItem
*
parent
,
const
QStringList
&
stringList
)
:
m_DatasetId
(
datasetId
),
QTreeWidgetItem
(
parent
,
stringList
)
{
}
/*******************************************************************************/
DatasetTreeWidgetItem
::~
DatasetTreeWidgetItem
()
{
}
/*******************************************************************************/
const
QString
&
DatasetTreeWidgetItem
::
GetDatasetId
()
{
return
m_DatasetId
;
}
}
// end namespace 'mvd'
Code/Common/Gui/mvdDatasetTreeWidgetItem.h
0 → 100644
View file @
423b43d7
/*=========================================================================
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 __mvdDatasetTreeWidgetItem_h
#define __mvdDatasetTreeWidgetItem_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.
#include <QtGui>
//
// System includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
/*****************************************************************************/
/* PRE-DECLARATION SECTION */
//
// External classes pre-declaration.
namespace
{
}
namespace
mvd
{
//
// Internal classes pre-declaration.
class
BackgroundTask
;
/*****************************************************************************/
/* CLASS DEFINITION SECTION */
/**
* \class DatasetTreeWidgetItem
*
* \brief
*/
class
Monteverdi2_EXPORT
DatasetTreeWidgetItem
:
public
QTreeWidgetItem
{
/*-[ PUBLIC SECTION ]------------------------------------------------------*/
//
// Public methods.
public:
/**
* \brief Constructor.
*/
DatasetTreeWidgetItem
(
const
QString
&
datasetId
,
QTreeWidgetItem
*
parent
,
const
QStringList
&
stringList
);
/**
* \brief Destructor.
*/
virtual
~
DatasetTreeWidgetItem
();
/**
* \brief Get the datasetID
*/
const
QString
&
GetDatasetId
();
/*-[ PUBLIC SLOTS SECTION ]------------------------------------------------*/
//
// Public SLOTS.
public
slots
:
/*-[ SIGNALS SECTION ]-----------------------------------------------------*/
//
// Signals.
signals:
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
//
// Protected methods.
protected:
/*-[ PRIVATE SECTION ]-----------------------------------------------------*/
//
// Protected attributes.
protected:
//
// Private methods.
private:
//
// Private attributes.
private:
QString
m_DatasetId
;
/*-[ PRIVATE SLOTS SECTION ]-----------------------------------------------*/
//
// Slots.
private
slots
:
};
}
// end namespace 'mvd'
#endif // __mvdDatasetTreeWidgetItem_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