/*==============================================================================

  Program: 3D Slicer

  Copyright (c) Kitware Inc.

  See COPYRIGHT.txt
  or http://www.slicer.org/copyright/copyright.txt for details.

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

  This file was originally developed by Jean-Christophe Fillion-Robin, Kitware Inc.
  and was partially funded by NIH grant 3P41RR013218-12S1

==============================================================================*/

// Slicer includes
#include "qSlicerWelcomeModule.h"
#include "qSlicerWelcomeModuleWidget.h"

//-----------------------------------------------------------------------------
class qSlicerWelcomeModulePrivate
{
public:
};

//-----------------------------------------------------------------------------
qSlicerWelcomeModule::qSlicerWelcomeModule(QObject* _parent)
  : Superclass(_parent)
  , d_ptr(new qSlicerWelcomeModulePrivate)
{
}

//-----------------------------------------------------------------------------
qSlicerWelcomeModule::~qSlicerWelcomeModule() = default;

//-----------------------------------------------------------------------------
QStringList qSlicerWelcomeModule::categories() const
{
  return QStringList() << "";
}

//-----------------------------------------------------------------------------
QIcon qSlicerWelcomeModule::icon() const
{
  return QIcon(":/Icons/SlicerWelcome.png");
}

//-----------------------------------------------------------------------------
QString qSlicerWelcomeModule::helpText() const
{
  return QString();
}

//-----------------------------------------------------------------------------
QString qSlicerWelcomeModule::acknowledgementText() const
{
  return tr("This work was supported by NA-MIC, NAC, BIRN, NCIGT, CTSC and the Slicer Community. "
            "See <a href=\"https://www.slicer.org\">https://www.slicer.org</a> for details. We would also like to express our sincere "
            "thanks to members of the Slicer User Community who have helped us to design the contents "
            "of this Welcome Module, and whose feedback continues to improve functionality, usability "
            "and Slicer user experience.")
         + "<br>";
}

//-----------------------------------------------------------------------------
QStringList qSlicerWelcomeModule::contributors() const
{
  QStringList moduleContributors;
  moduleContributors << QString("Wendy Plesniak (SPL, BWH)");
  moduleContributors << QString("Jean-Christophe Fillion-Robin (Kitware)");
  return moduleContributors;
}

//-----------------------------------------------------------------------------
qSlicerAbstractModuleRepresentation* qSlicerWelcomeModule::createWidgetRepresentation()
{
  return new qSlicerWelcomeModuleWidget;
}

//-----------------------------------------------------------------------------
vtkMRMLAbstractLogic* qSlicerWelcomeModule::createLogic()
{
  return nullptr;
}
