<commit_before>/*=========================================================================

  Program:   Monteverdi
  Language:  C++


  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
  See Copyright.txt for details.

  Monteverdi 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 "mvdLayerStackItemModel.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)
#include "mvdAbstractLayerModel.h"
#include "mvdStackedLayerModel.h"
#include "mvdVectorImageModel.h"
#include "mvdVisibleInterface.h"

namespace mvd
{
/*
  TRANSLATOR mvd::LayerStackItemModel

  Necessary for lupdate to be aware of C++ namespaces.

  Context comment for translator.
*/


/*****************************************************************************/
/* CONSTANTS                                                                 */

namespace
{

const char * const
HEADERS[ LayerStackItemModel::COLUMN_COUNT ] =
{
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Proj" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Res" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Name" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Effect" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "I" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "J" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Red" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Green" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Blue" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "X" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Y" ),
};

} // end of anonymous namespace.

<commit_msg>ENH: mantis:1311 layer stack item. I -> Column and J -> Line<commit_after>/*=========================================================================

  Program:   Monteverdi
  Language:  C++


  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
  See Copyright.txt for details.

  Monteverdi 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 "mvdLayerStackItemModel.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)
#include "mvdAbstractLayerModel.h"
#include "mvdStackedLayerModel.h"
#include "mvdVectorImageModel.h"
#include "mvdVisibleInterface.h"

namespace mvd
{
/*
  TRANSLATOR mvd::LayerStackItemModel

  Necessary for lupdate to be aware of C++ namespaces.

  Context comment for translator.
*/


/*****************************************************************************/
/* CONSTANTS                                                                 */

namespace
{

const char * const
HEADERS[ LayerStackItemModel::COLUMN_COUNT ] =
{
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Proj" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Res" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Name" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Effect" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Column" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Line" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Red" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Green" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Blue" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "X" ),
  QT_TRANSLATE_NOOP( "mvd::LayerStackItemModel", "Y" ),
};

} // end of anonymous namespace.


{'fraction_non_alphanumeric': 0.22026342451874367, 'fraction_numerical': 0.002026342451874367, 'mean_word_length': 4.1150259067357515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5831634', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1433, 'n_words': 355}