Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

COMP: Remove ModuleTemplate and use LoadableExtensionTemplate instead

See #2260 / http://na-mic.org/Bug/view.php?id=2260

git-svn-id: http://svn.slicer.org/Slicer4/trunk@20529 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
commit 422883692ff1eaec6a4cf38e7881082d552c630b 1 parent f54194d
@jcfr jcfr authored
Showing with 13 additions and 655 deletions.
  1. +1 −1  Extensions/Testing/LoadableExtensionTemplate/Logic/vtkSlicerLoadableExtensionTemplateLogic.cxx
  2. +1 −1  ...ons/Testing/SuperBuildLoadableExtensionTemplate/Logic/vtkSlicerSuperBuildLoadableExtensionTemplateLogic.cxx
  3. +0 −3  Modules/Loadable/CMakeLists.txt
  4. +2 −2 Modules/Loadable/Cameras/Logic/vtkSlicerCamerasModuleLogic.cxx
  5. +2 −2 Modules/Loadable/Data/Logic/vtkSlicerDataModuleLogic.cxx
  6. +1 −1  Modules/Loadable/Data/qSlicerDataModule.cxx
  7. +2 −4 Modules/Loadable/Data/qSlicerDataModuleWidget.cxx
  8. +0 −60 Modules/Loadable/ModuleTemplate/CMakeLists.txt
  9. +0 −6 Modules/Loadable/ModuleTemplate/Documentation/ModuleTemplate.dox
  10. +0 −26 Modules/Loadable/ModuleTemplate/Logic/CMakeLists.txt
  11. +0 −81 Modules/Loadable/ModuleTemplate/Logic/vtkSlicerModuleTemplateLogic.cxx
  12. +0 −65 Modules/Loadable/ModuleTemplate/Logic/vtkSlicerModuleTemplateLogic.h
  13. BIN  Modules/Loadable/ModuleTemplate/Resources/Icons/ModuleTemplate.png
  14. +0 −59 Modules/Loadable/ModuleTemplate/Resources/UI/qSlicerModuleTemplateModule.ui
  15. +0 −5 Modules/Loadable/ModuleTemplate/Resources/qSlicerModuleTemplateModule.qrc
  16. +0 −1  Modules/Loadable/ModuleTemplate/Testing/CMakeLists.txt
  17. +0 −22 Modules/Loadable/ModuleTemplate/Testing/Cxx/CMakeLists.txt
  18. +0 −118 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModule.cxx
  19. +0 −78 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModule.h
  20. +0 −62 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModuleWidget.cxx
  21. +0 −54 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModuleWidget.h
  22. +0 −1  Utilities/Doxygen/Doxyfile.txt.in
  23. +4 −3 Utilities/Scripts/ModuleWizard.py
View
2  Extensions/Testing/LoadableExtensionTemplate/Logic/vtkSlicerLoadableExtensionTemplateLogic.cxx
@@ -15,7 +15,7 @@
==============================================================================*/
-// ModuleTemplate includes
+// LoadableExtensionTemplate Logic includes
#include "vtkSlicerLoadableExtensionTemplateLogic.h"
// MRML includes
View
2  .../Testing/SuperBuildLoadableExtensionTemplate/Logic/vtkSlicerSuperBuildLoadableExtensionTemplateLogic.cxx
@@ -15,7 +15,7 @@
==============================================================================*/
-// ModuleTemplate includes
+// SuperBuildLoadableExtensionTemplate Logic includes
#include "vtkSlicerSuperBuildLoadableExtensionTemplateLogic.h"
// MRML includes
View
3  Modules/Loadable/CMakeLists.txt
@@ -28,9 +28,6 @@ if(Slicer_BUILD_CLI_SUPPORT)
CropVolume
)
endif()
-if(BUILD_TESTING)
- list(APPEND qtmodules ModuleTemplate)
-endif()
foreach(module ${qtmodules})
list(FIND Slicer_QTLOADABLEMODULES_DISABLED ${module} _module_disabled)
View
4 Modules/Loadable/Cameras/Logic/vtkSlicerCamerasModuleLogic.cxx
@@ -18,7 +18,7 @@
==============================================================================*/
-// ModuleTemplate includes
+// Cameras Logic includes
#include "vtkSlicerCamerasModuleLogic.h"
// MRML includes
@@ -31,7 +31,7 @@
#include <vtkNew.h>
// STD includes
-#include <cassert>
+#include <cassert>
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkSlicerCamerasModuleLogic);
View
4 Modules/Loadable/Data/Logic/vtkSlicerDataModuleLogic.cxx
@@ -19,7 +19,7 @@
==============================================================================*/
-// ModuleTemplate includes
+// Data Logic includes
#include "vtkSlicerDataModuleLogic.h"
// MRML includes
@@ -29,7 +29,7 @@
#include <vtkNew.h>
// STD includes
-#include <cassert>
+#include <cassert>
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkSlicerDataModuleLogic);
View
2  Modules/Loadable/Data/qSlicerDataModule.cxx
@@ -40,7 +40,7 @@
// SlicerLogic includes
#include <vtkSlicerApplicationLogic.h>
-// ModuleTemplate includes
+// Data Logic includes
#include "vtkSlicerDataModuleLogic.h"
// Logic includes
View
6 Modules/Loadable/Data/qSlicerDataModuleWidget.cxx
@@ -18,15 +18,13 @@
==============================================================================*/
-// Qt includes
-
// SlicerQt includes
#include "qSlicerDataModuleWidget.h"
#include "ui_qSlicerDataModule.h"
#include "qSlicerApplication.h"
#include "qSlicerIOManager.h"
-// ModuleTemplate includes
+// Data Logic includes
#include "vtkSlicerDataModuleLogic.h"
// SlicerLibs includes
@@ -67,7 +65,7 @@ qSlicerDataModuleWidgetPrivate::logic() const
{
Q_Q(const qSlicerDataModuleWidget);
return vtkSlicerDataModuleLogic::SafeDownCast(q->logic());
-}
+}
//-----------------------------------------------------------------------------
qSlicerDataModuleWidget::qSlicerDataModuleWidget(QWidget* parentWidget)
View
60 Modules/Loadable/ModuleTemplate/CMakeLists.txt
@@ -1,60 +0,0 @@
-
-#-----------------------------------------------------------------------------
-set(MODULE_NAME "ModuleTemplate") # Do not use 'project()'
-set(MODULE_TITLE "Module Template")
-
-string(TOUPPER ${MODULE_NAME} MODULE_NAME_UPPER)
-
-#-----------------------------------------------------------------------------
-add_subdirectory(Logic)
-
-#-----------------------------------------------------------------------------
-set(MODULE_EXPORT_DIRECTIVE "Q_SLICER_QTMODULES_${MODULE_NAME_UPPER}_EXPORT")
-
-# Additional includes - Current_{source,binary} and Slicer_{Libs,Base} already included
-set(MODULE_INCLUDE_DIRECTORIES
- ${CMAKE_CURRENT_SOURCE_DIR}/Logic
- ${CMAKE_CURRENT_BINARY_DIR}/Logic
- )
-
-set(MODULE_SRCS
- qSlicerModuleTemplateModule.cxx
- qSlicerModuleTemplateModule.h
- qSlicerModuleTemplateModuleWidget.cxx
- qSlicerModuleTemplateModuleWidget.h
- )
-
-set(MODULE_MOC_SRCS
- qSlicerModuleTemplateModule.h
- qSlicerModuleTemplateModuleWidget.h
- )
-
-set(MODULE_UI_SRCS
- Resources/UI/qSlicerModuleTemplateModule.ui
- )
-
-set(MODULE_TARGET_LIBRARIES
- vtkSlicerModuleTemplateModuleLogic
- )
-
-set(MODULE_RESOURCES
- Resources/qSlicerModuleTemplateModule.qrc
- )
-
-#-----------------------------------------------------------------------------
-slicerMacroBuildQtModule(
- NAME ${MODULE_NAME}
- TITLE ${MODULE_TITLE}
- EXPORT_DIRECTIVE ${MODULE_EXPORT_DIRECTIVE}
- INCLUDE_DIRECTORIES ${MODULE_INCLUDE_DIRECTORIES}
- SRCS ${MODULE_SRCS}
- MOC_SRCS ${MODULE_MOC_SRCS}
- UI_SRCS ${MODULE_UI_SRCS}
- TARGET_LIBRARIES ${MODULE_TARGET_LIBRARIES}
- RESOURCES ${MODULE_RESOURCES}
- )
-
-#-----------------------------------------------------------------------------
-if(BUILD_TESTING)
- add_subdirectory(Testing)
-endif()
View
6 Modules/Loadable/ModuleTemplate/Documentation/ModuleTemplate.dox
@@ -1,6 +0,0 @@
-/**
-\defgroup Slicer_QtModules_ModuleTemplate ModuleTemplate
-\ingroup Slicer_QtModules
-This module allows to ...
-
-*/
View
26 Modules/Loadable/ModuleTemplate/Logic/CMakeLists.txt
@@ -1,26 +0,0 @@
-project(vtkSlicer${MODULE_NAME}ModuleLogic)
-
-set(KIT ${PROJECT_NAME})
-
-set(${KIT}_EXPORT_DIRECTIVE "VTK_SLICER_${MODULE_NAME_UPPER}_MODULE_LOGIC_EXPORT")
-
-set(${KIT}_INCLUDE_DIRECTORIES
- )
-
-set(${KIT}_SRCS
- vtkSlicerModuleTemplateLogic.cxx
- vtkSlicerModuleTemplateLogic.h
- )
-
-set(${KIT}_TARGET_LIBRARIES
- ${ITK_LIBRARIES}
- )
-
-#-----------------------------------------------------------------------------
-SlicerMacroBuildModuleLogic(
- NAME ${KIT}
- EXPORT_DIRECTIVE ${${KIT}_EXPORT_DIRECTIVE}
- INCLUDE_DIRECTORIES ${${KIT}_INCLUDE_DIRECTORIES}
- SRCS ${${KIT}_SRCS}
- TARGET_LIBRARIES ${${KIT}_TARGET_LIBRARIES}
- )
View
81 Modules/Loadable/ModuleTemplate/Logic/vtkSlicerModuleTemplateLogic.cxx
@@ -1,81 +0,0 @@
-/*==============================================================================
-
- 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.
-
-==============================================================================*/
-
-// ModuleTemplate includes
-#include "vtkSlicerModuleTemplateLogic.h"
-
-// MRML includes
-
-// VTK includes
-#include <vtkNew.h>
-
-// STD includes
-#include <cassert>
-
-//----------------------------------------------------------------------------
-vtkStandardNewMacro(vtkSlicerModuleTemplateLogic);
-
-//----------------------------------------------------------------------------
-vtkSlicerModuleTemplateLogic::vtkSlicerModuleTemplateLogic()
-{
-}
-
-//----------------------------------------------------------------------------
-vtkSlicerModuleTemplateLogic::~vtkSlicerModuleTemplateLogic()
-{
-}
-
-//----------------------------------------------------------------------------
-void vtkSlicerModuleTemplateLogic::PrintSelf(ostream& os, vtkIndent indent)
-{
- this->Superclass::PrintSelf(os, indent);
-}
-
-//---------------------------------------------------------------------------
-void vtkSlicerModuleTemplateLogic::SetMRMLSceneInternal(vtkMRMLScene * newScene)
-{
- vtkNew<vtkIntArray> events;
- events->InsertNextValue(vtkMRMLScene::NodeAddedEvent);
- events->InsertNextValue(vtkMRMLScene::NodeRemovedEvent);
- events->InsertNextValue(vtkMRMLScene::EndBatchProcessEvent);
- this->SetAndObserveMRMLSceneEventsInternal(newScene, events.GetPointer());
-}
-
-//-----------------------------------------------------------------------------
-void vtkSlicerModuleTemplateLogic::RegisterNodes()
-{
- assert(this->GetMRMLScene() != 0);
-}
-
-//---------------------------------------------------------------------------
-void vtkSlicerModuleTemplateLogic::UpdateFromMRMLScene()
-{
- assert(this->GetMRMLScene() != 0);
-}
-
-//---------------------------------------------------------------------------
-void vtkSlicerModuleTemplateLogic
-::OnMRMLSceneNodeAdded(vtkMRMLNode* vtkNotUsed(node))
-{
-}
-
-//---------------------------------------------------------------------------
-void vtkSlicerModuleTemplateLogic
-::OnMRMLSceneNodeRemoved(vtkMRMLNode* vtkNotUsed(node))
-{
-}
-
View
65 Modules/Loadable/ModuleTemplate/Logic/vtkSlicerModuleTemplateLogic.h
@@ -1,65 +0,0 @@
-/*==============================================================================
-
- 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.
-
-==============================================================================*/
-
-// .NAME vtkSlicerModuleTemplateLogic - slicer logic class for volumes manipulation
-// .SECTION Description
-// This class manages the logic associated with reading, saving,
-// and changing propertied of the volumes
-
-
-#ifndef __vtkSlicerModuleTemplateLogic_h
-#define __vtkSlicerModuleTemplateLogic_h
-
-// Slicer includes
-#include "vtkSlicerModuleLogic.h"
-
-// MRML includes
-
-// STD includes
-#include <cstdlib>
-
-#include "vtkSlicerModuleTemplateModuleLogicExport.h"
-
-
-/// \ingroup Slicer_QtModules_ModuleTemplate
-class VTK_SLICER_MODULETEMPLATE_MODULE_LOGIC_EXPORT vtkSlicerModuleTemplateLogic :
- public vtkSlicerModuleLogic
-{
-public:
-
- static vtkSlicerModuleTemplateLogic *New();
- vtkTypeMacro(vtkSlicerModuleTemplateLogic,vtkSlicerModuleLogic);
- void PrintSelf(ostream& os, vtkIndent indent);
-
-protected:
- vtkSlicerModuleTemplateLogic();
- virtual ~vtkSlicerModuleTemplateLogic();
-
- virtual void SetMRMLSceneInternal(vtkMRMLScene * newScene);
- /// Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.
- virtual void RegisterNodes();
- virtual void UpdateFromMRMLScene();
- virtual void OnMRMLSceneNodeAdded(vtkMRMLNode* node);
- virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode* node);
-private:
-
- vtkSlicerModuleTemplateLogic(const vtkSlicerModuleTemplateLogic&); // Not implemented
- void operator=(const vtkSlicerModuleTemplateLogic&); // Not implemented
-};
-
-#endif
-
View
BIN  Modules/Loadable/ModuleTemplate/Resources/Icons/ModuleTemplate.png
Deleted file not rendered
View
59 Modules/Loadable/ModuleTemplate/Resources/UI/qSlicerModuleTemplateModule.ui
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>qSlicerModuleTemplateModule</class>
- <widget class="qSlicerWidget" name="qSlicerModuleTemplateModule">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>525</width>
- <height>319</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Module Template</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="ctkCollapsibleButton" name="CTKCollapsibleButton">
- <property name="text">
- <string>Display</string>
- </property>
- <property name="contentsFrameShape">
- <enum>QFrame::StyledPanel</enum>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3"/>
- </widget>
- </item>
- <item>
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>0</width>
- <height>0</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <customwidgets>
- <customwidget>
- <class>qSlicerWidget</class>
- <extends>QWidget</extends>
- <header>qSlicerWidget.h</header>
- <container>1</container>
- </customwidget>
- <customwidget>
- <class>ctkCollapsibleButton</class>
- <extends>QWidget</extends>
- <header>ctkCollapsibleButton.h</header>
- <container>1</container>
- </customwidget>
- </customwidgets>
- <resources/>
- <connections/>
-</ui>
View
5 Modules/Loadable/ModuleTemplate/Resources/qSlicerModuleTemplateModule.qrc
@@ -1,5 +0,0 @@
-<!DOCTYPE RCC><RCC version="1.0">
- <qresource>
- <file>Icons/ModuleTemplate.png</file>
- </qresource>
-</RCC>
View
1  Modules/Loadable/ModuleTemplate/Testing/CMakeLists.txt
@@ -1 +0,0 @@
-add_subdirectory(Cxx)
View
22 Modules/Loadable/ModuleTemplate/Testing/Cxx/CMakeLists.txt
@@ -1,22 +0,0 @@
-set(KIT qSlicer${MODULE_NAME}Module)
-
-set(KIT_TEST_SRCS)
-set(KIT_TEST_NAMES)
-set(KIT_TEST_NAMES_CXX)
-SlicerMacroConfigureGenericCxxModuleTests(${MODULE_NAME} KIT_TEST_SRCS KIT_TEST_NAMES KIT_TEST_NAMES_CXX)
-
-set(CMAKE_TESTDRIVER_BEFORE_TESTMAIN "DEBUG_LEAKS_ENABLE_EXIT_ERROR();" )
-create_test_sourcelist(Tests ${KIT}CxxTests.cxx
- ${KIT_TEST_NAMES_CXX}
- EXTRA_INCLUDE vtkMRMLDebugLeaksMacro.h
- )
-
-list(REMOVE_ITEM Tests ${KIT_TEST_NAMES_CXX})
-list(APPEND Tests ${KIT_TEST_SRCS})
-
-add_executable(${KIT}CxxTests ${Tests})
-target_link_libraries(${KIT}CxxTests ${KIT})
-
-foreach(testname ${KIT_TEST_NAMES})
- SIMPLE_TEST( ${testname} )
-endforeach()
View
118 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModule.cxx
@@ -1,118 +0,0 @@
-/*==============================================================================
-
- 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();
-}
View
78 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModule.h
@@ -1,78 +0,0 @@
-/*==============================================================================
-
- 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.
-
-==============================================================================*/
-
-#ifndef __qSlicerModuleTemplateModule_h
-#define __qSlicerModuleTemplateModule_h
-
-// SlicerQt includes
-#include "qSlicerLoadableModule.h"
-
-#include "qSlicerModuleTemplateModuleExport.h"
-
-class qSlicerModuleTemplateModulePrivate;
-
-/// \ingroup Slicer_QtModules_ModuleTemplate
-class Q_SLICER_QTMODULES_MODULETEMPLATE_EXPORT qSlicerModuleTemplateModule :
- public qSlicerLoadableModule
-{
- Q_OBJECT
- Q_INTERFACES(qSlicerLoadableModule);
-
-public:
-
- typedef qSlicerLoadableModule Superclass;
- explicit qSlicerModuleTemplateModule(QObject *parent=0);
- virtual ~qSlicerModuleTemplateModule();
-
- qSlicerGetTitleMacro(QTMODULE_TITLE);
-
- /// Help to use the module
- virtual QString helpText()const;
-
- /// Return acknowledgements
- virtual QString acknowledgementText()const;
-
- /// Return the authors of the module
- virtual QStringList contributors()const;
-
- /// Return a custom icon for the module
- virtual QIcon icon()const;
-
- /// Return the categories for the module
- virtual QStringList categories()const;
-
-protected:
-
- /// Initialize the module. Register the volumes reader/writer
- virtual void setup();
-
- /// Create and return the widget representation associated to this module
- virtual qSlicerAbstractModuleRepresentation * createWidgetRepresentation();
-
- /// Create and return the logic associated to this module
- virtual vtkMRMLAbstractLogic* createLogic();
-
-protected:
- QScopedPointer<qSlicerModuleTemplateModulePrivate> d_ptr;
-
-private:
- Q_DECLARE_PRIVATE(qSlicerModuleTemplateModule);
- Q_DISABLE_COPY(qSlicerModuleTemplateModule);
-
-};
-
-#endif
View
62 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModuleWidget.cxx
@@ -1,62 +0,0 @@
-/*==============================================================================
-
- 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
-
-// SlicerQt includes
-#include "qSlicerModuleTemplateModuleWidget.h"
-#include "ui_qSlicerModuleTemplateModule.h"
-
-//-----------------------------------------------------------------------------
-/// \ingroup Slicer_QtModules_ModuleTemplate
-class qSlicerModuleTemplateModuleWidgetPrivate: public Ui_qSlicerModuleTemplateModule
-{
-public:
- qSlicerModuleTemplateModuleWidgetPrivate();
-};
-
-//-----------------------------------------------------------------------------
-// qSlicerModuleTemplateModuleWidgetPrivate methods
-
-//-----------------------------------------------------------------------------
-qSlicerModuleTemplateModuleWidgetPrivate::qSlicerModuleTemplateModuleWidgetPrivate()
-{
-}
-
-//-----------------------------------------------------------------------------
-// qSlicerModuleTemplateModuleWidget methods
-
-//-----------------------------------------------------------------------------
-qSlicerModuleTemplateModuleWidget::qSlicerModuleTemplateModuleWidget(QWidget* _parent)
- : Superclass( _parent )
- , d_ptr( new qSlicerModuleTemplateModuleWidgetPrivate )
-{
-}
-
-//-----------------------------------------------------------------------------
-qSlicerModuleTemplateModuleWidget::~qSlicerModuleTemplateModuleWidget()
-{
-}
-
-//-----------------------------------------------------------------------------
-void qSlicerModuleTemplateModuleWidget::setup()
-{
- Q_D(qSlicerModuleTemplateModuleWidget);
- d->setupUi(this);
- this->Superclass::setup();
-}
-
View
54 Modules/Loadable/ModuleTemplate/qSlicerModuleTemplateModuleWidget.h
@@ -1,54 +0,0 @@
-/*==============================================================================
-
- 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.
-
-==============================================================================*/
-
-#ifndef __qSlicerModuleTemplateModuleWidget_h
-#define __qSlicerModuleTemplateModuleWidget_h
-
-// SlicerQt includes
-#include "qSlicerAbstractModuleWidget.h"
-
-#include "qSlicerModuleTemplateModuleExport.h"
-
-class qSlicerModuleTemplateModuleWidgetPrivate;
-class vtkMRMLNode;
-
-/// \ingroup Slicer_QtModules_ModuleTemplate
-class Q_SLICER_QTMODULES_MODULETEMPLATE_EXPORT qSlicerModuleTemplateModuleWidget :
- public qSlicerAbstractModuleWidget
-{
- Q_OBJECT
-
-public:
-
- typedef qSlicerAbstractModuleWidget Superclass;
- qSlicerModuleTemplateModuleWidget(QWidget *parent=0);
- virtual ~qSlicerModuleTemplateModuleWidget();
-
-public slots:
-
-
-protected:
- QScopedPointer<qSlicerModuleTemplateModuleWidgetPrivate> d_ptr;
-
- virtual void setup();
-
-private:
- Q_DECLARE_PRIVATE(qSlicerModuleTemplateModuleWidget);
- Q_DISABLE_COPY(qSlicerModuleTemplateModuleWidget);
-};
-
-#endif
View
1  Utilities/Doxygen/Doxyfile.txt.in
@@ -684,7 +684,6 @@ EXCLUDE = "@Slicer_BINARY_DIR@" \
"@Slicer_SOURCE_DIR@/Base/GUI" \
"@Slicer_SOURCE_DIR@/CMake" \
"@Slicer_SOURCE_DIR@/Extensions" \
- "@Slicer_SOURCE_DIR@/Modules/Loadable/ModuleTemplate" \
"@Slicer_SOURCE_DIR@/Resources" \
"@Slicer_SOURCE_DIR@/SuperBuild" \
"@Slicer_SOURCE_DIR@/Utilities/Scripts"
View
7 Utilities/Scripts/ModuleWizard.py
@@ -19,7 +19,8 @@ def findSource(dir):
fnmatch.fnmatch(file, "*.xml") or \
fnmatch.fnmatch(file, "*.xml.in") or \
fnmatch.fnmatch(file, "*.md5") or \
- fnmatch.fnmatch(file, "*.png"):
+ fnmatch.fnmatch(file, "*.png") or \
+ fnmatch.fnmatch(file, "*.dox"):
file = os.path.join(root,file)
file = file[len(dir):] # strip common dir
fileList.append(file)
@@ -46,7 +47,7 @@ def usage():
print ""
print "Usage:"
print "ModuleWizard [--template <dir>] [--templateKey <key>] [--target <dir>] <moduleName>"
- print " --template default ./Modules/Loadable/ModuleTemplate"
+ print " --template default ./Extensions/Testing/LoadableExtensionTemplate"
print " --templateKey default is dirname of template"
print " --target default ./Modules/Loadable/<moduleName>"
print "Examples (from Slicer source directory):"
@@ -86,7 +87,7 @@ def main(argv):
exit()
if template == "":
- template = "Modules/Loadable/ModuleTemplate/"
+ template = "Extensions/Testing/LoadableExtensionTemplate/"
if template[-1] != '/':
template += '/'
Please sign in to comment.
Something went wrong with that request. Please try again.