Difference between revisions of "Documentation/Nightly/Developers/Tutorials/CreateExtension"

From Slicer Wiki
Jump to: navigation, search
m (Created page with 'Create repo on github clone repo locally Copy/Paste Slicer4/Extensions/CLIExtensionTemplate.s4ext at the root directory of your local repo Copy/Paste Slicer4/Extensions/Testing/C…')
 
m (Text replacement - "https?:\/\/www.slicer.org\/slicerWiki\/index.php\/([^ ]+) " to "https://www.slicer.org/wiki/$1")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Create repo on github
+
<noinclude>{{documentation/versioncheck}}</noinclude>
clone repo locally
+
 
 +
<pre>
 +
1. Create repo on github
 +
 
 +
2. Clone repo locally
 +
 
 
Copy/Paste Slicer4/Extensions/CLIExtensionTemplate.s4ext at the root directory of your local repo
 
Copy/Paste Slicer4/Extensions/CLIExtensionTemplate.s4ext at the root directory of your local repo
 
Copy/Paste Slicer4/Extensions/Testing/CLIExtensionTemplate at the root directory of your local repo
 
Copy/Paste Slicer4/Extensions/Testing/CLIExtensionTemplate at the root directory of your local repo
 
Rename CLIExtensionTemplate into Modules/CLI/ImageMaker
 
Rename CLIExtensionTemplate into Modules/CLI/ImageMaker
 
Rename all the files and CMakeLists.txt
 
Rename all the files and CMakeLists.txt
 +
 
Add license to files
 
Add license to files
 +
 
Edit your CLI
 
Edit your CLI
 +
 
Build your extension
 
Build your extension
 +
 
Open Slicer and in Application Settings, add build path to Slicer
 
Open Slicer and in Application Settings, add build path to Slicer
 +
 
Restart and reopen Slicer with module
 
Restart and reopen Slicer with module
 +
 
-> debug ( Slicer.exe --VisualStudio Slicer.sln  and breakpoints in CLI).
 
-> debug ( Slicer.exe --VisualStudio Slicer.sln  and breakpoints in CLI).
 +
 
Push code to github:
 
Push code to github:
 
   Extension icon: https://raw.github.com/finetjul/QuickTools/master/Resources/QuickToolsLogo.png
 
   Extension icon: https://raw.github.com/finetjul/QuickTools/master/Resources/QuickToolsLogo.png
 +
 
Edit .s4xt
 
Edit .s4xt
 +
 
Set MIDAS_PACKAGE_EMAIL and MIDAS_PACKAGE_API
 
Set MIDAS_PACKAGE_EMAIL and MIDAS_PACKAGE_API
 +
 
Build ExperimentalUpload
 
Build ExperimentalUpload
 +
 
Create:
 
Create:
   http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/ImageMaker
+
   https://www.slicer.org/wiki/Documentation/Nightly/Modules/ImageMaker   https://www.slicer.org/wiki/Documentation/Nightly/Extensions/QuickToolsEdit:
  http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Extensions/QuickTools
+
   https://www.slicer.org/wiki/Documentation/Nightly/Extensions#Cat_2Remove module path from Application Settings
Edit:
 
   http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Extensions#Cat_2
 
Remove module path from Application Settings
 
 
Open Extension Manager
 
Open Extension Manager
 
Download experimental extension
 
Download experimental extension
Line 35: Line 48:
 
...
 
...
 
check dashboards.
 
check dashboards.
 +
</pre>

Latest revision as of 14:52, 27 November 2019

Home < Documentation < Nightly < Developers < Tutorials < CreateExtension


For the latest Slicer documentation, visit the read-the-docs.


1. Create repo on github

2. Clone repo locally

Copy/Paste Slicer4/Extensions/CLIExtensionTemplate.s4ext at the root directory of your local repo
Copy/Paste Slicer4/Extensions/Testing/CLIExtensionTemplate at the root directory of your local repo
Rename CLIExtensionTemplate into Modules/CLI/ImageMaker
Rename all the files and CMakeLists.txt

Add license to files

Edit your CLI

Build your extension

Open Slicer and in Application Settings, add build path to Slicer

Restart and reopen Slicer with module

-> debug ( Slicer.exe --VisualStudio Slicer.sln  and breakpoints in CLI).

Push code to github:
  Extension icon: https://raw.github.com/finetjul/QuickTools/master/Resources/QuickToolsLogo.png

Edit .s4xt

Set MIDAS_PACKAGE_EMAIL and MIDAS_PACKAGE_API

Build ExperimentalUpload

Create:
   https://www.slicer.org/wiki/Documentation/Nightly/Modules/ImageMaker   https://www.slicer.org/wiki/Documentation/Nightly/Extensions/QuickToolsEdit:
   https://www.slicer.org/wiki/Documentation/Nightly/Extensions#Cat_2Remove module path from Application Settings
Open Extension Manager
Download experimental extension
-> works !
Edit s4xt with screenshots URLS made for the doc wiki pages.
go to https://github.com/Slicer/ExtensionsIndex
Fork it
git clone it
git checkout -b add-QuickTools
git gui
git push origin add-QuickTools
on github, do the pull request.
...
check dashboards.