Changesets: Import 2017-06-07 23:51:09

master feddeec8

2014-05-30 18:43:28

mwoehlke

Details Diff
COMP: Ensure output directory exists

Tweak slicerFunctionAddPythonQtResources to also include a rule to
ensure that the output directory for the resource script exists. This
fixes build errors on non-Ninja clean builds.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23292 3bd1e089-480b-0410-8dfb-8563597acbee
mod - CMake/SlicerFunctionAddPythonQtResources.cmake Diff File

master 4e47c687

2014-05-30 18:43:27

mwoehlke

Details Diff
STYLE: Add icon for Extension Wizard module

Reorganize Extension Wizard module resources to account for the
directory structure being conducive to generating a compiled resource
script in a reasonable location. Add rules to generate and import the
same. Add code to set the module icon resource.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23291 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/ExtensionWizard.qrc Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master ba7c3782

2014-05-30 18:43:25

mwoehlke

Details Diff
ENH: Add support for real Qt resources in Python

Add methods to qSlicerCoreApplication to allow Python code to invoke the
raw data overloads of QResource::[un]registerResource (which otherwise
cannot be invoked, as the requisite uchar* overloads are hidden by the
QString overloads). Create a Python script to generate a Python compiled
resource script (similar to pyrcc4 or pyside-rcc, except leveraging Qt's
native rcc rather than reimplementing it). Create CMake functions to
invoke this in an appropriate manner, and to create necessary target
dependencies so that the resulting Python files are created before the
ctkFunctionAddCompilePythonScriptTargets targets try to copy them to
their final build locations.

This system will allow Python loadable modules to use Qt resources by
creating a .qrc file and loading the resources using ':/path' notation,
in the same manner as C++ code (rather than individually copying every
resource file and loading them relative to the module's directory).

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23290 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Base/QTCore/qSlicerCoreApplication.cxx Diff File
mod - Base/QTCore/qSlicerCoreApplication.h Diff File
mod - Base/QTCore/qSlicerCoreApplication_p.h Diff File
add - CMake/SlicerFunctionAddPythonQtResources.cmake Diff File
mod - CMake/UseSlicer.cmake.in Diff File
mod - CMakeLists.txt Diff File
add - Utilities/Scripts/qrcc.py Diff File

master da227822

2014-05-30 18:43:24

mwoehlke

Details Diff
COMP: Allow generated scripted module files

Modify slicerMacroBuildScriptedModule to accept SCRIPTS and/or RESOURCES
that are generated files, rather than requiring them to exist at
configure time.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23289 3bd1e089-480b-0410-8dfb-8563597acbee
mod - CMake/SlicerMacroBuildScriptedModule.cmake Diff File

master e531dbad

2014-05-30 18:43:23

mwoehlke

Details Diff
STYLE: Create icon for Extension Wizard module

Add icon images ("same" icon, multiple resolutions) and source SVG's for
the same for the Extension Wizard module. (The XSmall resolution is just
the Medium SVG rendered at 16x16, hence no source SVG.)

These aren't being used yet.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23288 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
mod - Modules/Scripted/ExtensionWizard/Resources/Icons/ExtensionWizard.png Diff File
add - Modules/Scripted/ExtensionWizard/Resources/Icons/ExtensionWizard.svg Diff File
add - Modules/Scripted/ExtensionWizard/Resources/Icons/Medium/ExtensionWizard.png Diff File
add - Modules/Scripted/ExtensionWizard/Resources/Icons/Medium/ExtensionWizard.svg Diff File
add - Modules/Scripted/ExtensionWizard/Resources/Icons/XLarge/ExtensionWizard.png Diff File
add - Modules/Scripted/ExtensionWizard/Resources/Icons/XSmall/ExtensionWizard.png Diff File

master 651badb3

2014-05-30 18:43:22

mwoehlke

Details Diff
ENH: Use installed templates, if available

Refactor template path handling in the Extension Wizard module to reduce
duplication of key literals. Add a helper function to try to get the
location of the "standard" templates (e.g. from an install), and use
these if available. Also, display this path (non-editable) in the
settings panel.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23287 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/SettingsPanel.py Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/TemplatePathUtilities.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master 75ca36af

2014-05-30 18:43:20

mwoehlke

Details Diff
ENH: Expose Slicer share path

Make Slicer_SHARE_DIR accessible via a property on the
qSlicerCoreApplication, which makes it available via Python without
relying on the SLICER_SHARE_DIR environment variable.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23286 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Base/QTCore/qSlicerCoreApplication.cxx Diff File
mod - Base/QTCore/qSlicerCoreApplication.h Diff File

master 97019570

2014-05-30 18:43:19

mwoehlke

Details Diff
BUG: Don't choke on empty path value

Fix logic that loads list of template paths from settings to not choke
(i.e. throw an unexpected exception) in case the key value is None.
Also, remove some stray debugging statements that were accidentally
committed.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23285 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File

master f2d48933

2014-05-30 18:43:18

mwoehlke

Details Diff
ENH: Add UI for modifying template paths

Create a settings panel for the Extension Wizard module that allows
editing the list of paths used to find templates. Change how we read
settings to work with the way ctkSettingsPanel stores lists.

Issue 0003603

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23284 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/SettingsPanel.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master 2ea8f97a

2014-05-30 18:43:17

mwoehlke

Details Diff
ENH: Allow access to settings dialog from Python

Make qSlicerApplication::settingsDialog Q_INVOKABLE, in order to allow
access to the settings dialog from Python (e.g. scripted modules).

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23283 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Base/QTGUI/qSlicerApplication.h Diff File

master 603d9ed0

2014-05-30 18:43:16

mwoehlke

Details Diff
ENH: Create editable directory list

Create utility widget class DirectoryListWidget, which provides a
standard interface of supplemental buttons to support a user editable
qSlicerDirectoryListView. (Surprisingly, no such class previously
exists; existing occurrences of this pattern reimplement the
supplemental UI in the parent, for each occurrence!)

This will allow us to trivially create multiple instances of editable
lists.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23282 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/DirectoryListWidget.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master caaf8b43

2014-05-30 18:43:15

mwoehlke

Details Diff
ENH: Implement loading of extension modules

Hook up the loading of modules in the Extension Wizard when requesting
to do so. (See previous two commits.)

Issue 0003603

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23281 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File

master 638cb327

2014-05-30 18:43:14

mwoehlke

Details Diff
ENH: Allow loading modules [from Python]

Move qSlicerAbstractModuleFactoryManager::registerModule(QFileInfo) from
protected to public Q_INVOKABLE, so that users (Python users in
particular) can manually register additional modules at run time. Add
new (also public Q_INVOKABLE) method to qSlicerModuleFactoryManager
allowing users to request that a specific list of modules be loaded (and
instantiated, if necessary).

This allows e.g. a user at the Python console to dynamically load a
module that is not in the search paths at run time, without modifying
the search paths. In particular, this will be useful to the Extension
Wizard module.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23280 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Base/QTCore/qSlicerAbstractModuleFactoryManager.h Diff File
mod - Base/QTCore/qSlicerModuleFactoryManager.cxx Diff File
mod - Base/QTCore/qSlicerModuleFactoryManager.h Diff File

master 37a58f15

2014-05-30 18:43:12

mwoehlke

Details Diff
ENH: Prompt to load extension modules (WIP)

Create a dialog to prompt the user if they want to load modules
available from a selected extension. (Also used to ask the user if they
want to load a newly-created module immediately.) The UI is implemented,
but the actual loading requires changes to the C++ interfaces, and so is
not hooked up yet.

Issue 0003603

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23279 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/LoadModulesDialog.py Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/ModuleInfo.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master 8e22b116

2014-05-30 18:43:11

mwoehlke

Details Diff
ENH: Implement creation of extension modules

Add ability to create modules for extensions to extension wizard module.
Refactor CreateExtensionDialog into more generic CreateComponentDialog
so that it can be shared for this purpose.

Issue 0003603

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23278 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/CreateComponentDialog.py Diff File
rm - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/CreateExtensionDialog.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master d9dd1eeb

2014-05-30 18:43:10

mwoehlke

Details Diff
ENH: Select from location of selected extension

Change extension selection in the extension wizard module to use the
location of the currently selected extension (when applicable) as the
initial directory for choosing another extension.

Issue 0003603

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23277 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File

master 5b4a725c

2014-05-30 18:43:09

mwoehlke

Details Diff
ENH: Use I-beam cursor for information fields

Tweak the read only line edits used to show information about the
currently selected extension in the Extension Wizard module to use the
I-beam cursor, to make it more obvious that the text can be selected.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23276 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File

master ddf5e9a3

2014-05-30 18:43:08

mwoehlke

Details Diff
ENH: Implement editing of extension metadata

Create dialog for editing extension metadata and hook up to necessary
bi-directional manipulation of the same in the extension project and
description classes.

Issue 0003603

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23275 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/EditExtensionMetadataDialog.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/EditableTreeWidget.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master b3eacb13

2014-05-30 18:43:07

mwoehlke

Details Diff
ENH: Make ExtensionProject.project writable

Add a setter for the ExtensionProject.project property, allowing users
to change the name given to the project() call of a corresponding build
script (CMakeLists.txt).

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23274 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Utilities/Scripts/SlicerWizard/ExtensionProject.py Diff File

master ad52be15

2014-05-30 18:43:06

mwoehlke

Details Diff
BUG: More unicode support fixes

Add support for conversion-to-unicode to CMakeParser. Fix str conversion
to more explicitly avoid having unicode in the results. Add encoding
detection and support to ExtensionProject. This should make it possible
to work with non-ASCII unicode in an ExtensionProject.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23273 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Utilities/Scripts/SlicerWizard/CMakeParser.py Diff File
mod - Utilities/Scripts/SlicerWizard/ExtensionProject.py Diff File

master a30f077e

2014-05-30 18:43:05

mwoehlke

Details Diff
ENH: Create editable tree widget

Create utility widget class EditableTreeWidget, for extension wizard
module. This will be useful for editing extension metadata that takes
the form of lists, e.g. contributors.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23272 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/CMakeLists.txt Diff File
add - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/EditableTreeWidget.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/__init__.py Diff File

master 629210d7

2014-05-30 18:43:04

mwoehlke

Details Diff
STYLE: Use properties in CreateExtensionDialog

Change CreateExtensionDialog classes to subclass object, which is needed
to give them properties (they weren't originally as there seems to be
some problem if a module's primary classes derive from object). Change
accessor methods of the same to Python properties, which are slightly
more convenient and "more Pythonic".

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23271 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
mod - Modules/Scripted/ExtensionWizard/ExtensionWizardLib/CreateExtensionDialog.py Diff File

master a729fdab

2014-05-30 18:43:03

mwoehlke

Details Diff
BUG: Improve ExtensionDescription robustness

Fix ExtensionDescription to not fail in case of a git repository with no
commits, and/or a local git repository with no remotes.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23270 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Utilities/Scripts/SlicerWizard/ExtensionDescription.py Diff File

master 1c219ba9

2014-05-30 18:43:02

mwoehlke

Details Diff
ENH: More work on in-Slicer Extension Wizard

Add some widgets to the 'edit extension' section to show basic
information about the selected extension, and hook up the ability to
select an extension. There is a not-yet-implemented 'edit metadata'
action that will likely be joined eventually by other actions.

Issue 0003603

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23269 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File

master 216af2a9

2014-05-30 18:43:01

mwoehlke

Details Diff
ENH: Improve styling of wizard actions

Replace the QPushButton extension wizard actions with "flat"
QToolButton's, using (for now) a forward-arrow icon. This gives a
cleaner look than the odd stack of unusually wide buttons, that is
loosely based on Windows wizards (which were the only example of a
list-of-possible-actions - as opposed to list-of-steps - type wizard I
could find).

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23268 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Scripted/ExtensionWizard/ExtensionWizard.py Diff File
 First  Prev  1 2 3 ... 10 ... 20 ... 30 ... 40 ... 50 ... 60 ... 70 ... 80 ... 90 ... 100 ... 108 109 110 111 112 113 114 ... 120 ... 130 ... 133 134 135  Next  Last