Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (95 sloc) 3.94 KB
/*==============================================================================
Program: 3D Slicer
Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
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.
==============================================================================*/
// Qt includes
#include <QtPlugin>
// ModuleTemplate Logic includes
#include <vtkSlicerModuleTemplateLogic.h>
// ModuleTemplate includes
#include "qSlicerModuleTemplateModule.h"
#include "qSlicerModuleTemplateModuleWidget.h"
//-----------------------------------------------------------------------------
Q_EXPORT_PLUGIN2(qSlicerModuleTemplateModule, qSlicerModuleTemplateModule);
//-----------------------------------------------------------------------------
/// \ingroup Slicer_QtModules_ModuleTemplate
class qSlicerModuleTemplateModulePrivate
{
public:
qSlicerModuleTemplateModulePrivate();
};
//-----------------------------------------------------------------------------
// qSlicerModuleTemplateModulePrivate methods
//-----------------------------------------------------------------------------
qSlicerModuleTemplateModulePrivate::qSlicerModuleTemplateModulePrivate()
{
}
//-----------------------------------------------------------------------------
// qSlicerModuleTemplateModule methods
//-----------------------------------------------------------------------------
qSlicerModuleTemplateModule::qSlicerModuleTemplateModule(QObject* _parent)
: Superclass(_parent)
, d_ptr(new qSlicerModuleTemplateModulePrivate)
{
}
//-----------------------------------------------------------------------------
QStringList qSlicerModuleTemplateModule::categories()const
{
return QStringList() << "Developer Tools";
}
//-----------------------------------------------------------------------------
qSlicerModuleTemplateModule::~qSlicerModuleTemplateModule()
{
}
//-----------------------------------------------------------------------------
QString qSlicerModuleTemplateModule::helpText()const
{
QString help =
"This template module is meant to be used with the"
"with the ModuleWizard.py script distributed with the"
"Slicer source code (starting with version 4)."
"Developers can generate their own source code using the"
"wizard and then customize it to fit their needs.";
return help;
}
//-----------------------------------------------------------------------------
QString qSlicerModuleTemplateModule::acknowledgementText()const
{
return "This work was supported by NAMIC, NAC, and the Slicer Community...";
}
//-----------------------------------------------------------------------------
QStringList qSlicerModuleTemplateModule::contributors()const
{
QStringList moduleContributors;
moduleContributors << QString("John Doe (Organization)");
// moduleContributors << QString("Richard Roe (Organization2)");
// ...
return moduleContributors;
}
//-----------------------------------------------------------------------------
QIcon qSlicerModuleTemplateModule::icon()const
{
return QIcon(":/Icons/ModuleTemplate.png");
}
//-----------------------------------------------------------------------------
void qSlicerModuleTemplateModule::setup()
{
this->Superclass::setup();
}
//-----------------------------------------------------------------------------
qSlicerAbstractModuleRepresentation * qSlicerModuleTemplateModule::createWidgetRepresentation()
{
return new qSlicerModuleTemplateModuleWidget;
}
//-----------------------------------------------------------------------------
vtkMRMLAbstractLogic* qSlicerModuleTemplateModule::createLogic()
{
return vtkSlicerModuleTemplateLogic::New();
}
Jump to Line
Something went wrong with that request. Please try again.