[root]/Base/QTCore
Resources
(1 files, 5 lines)
Files
(1 files, 36 lines)

| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| jcfr | 49 (100.0%) | 1663 (100.0%) | 33.9 |
ENH: Update vtkEventBroker to follow a more robust singleton pattern.
Since we are sure to have on instance per-process, all client should call
vtkEventBroker::GetInstance() and no bother using New/Delete
It follow now the nifty counter idiom:
http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Nifty_Counter
Largely inspired from the code of:
VTK/Common/vtkOutputWindow
VTK/Utilities/kwsys/SystemTools
It's also possible to use New (that way reference counting will be used)
Doing so the caller will be responsible to call the matching Delete.
For example, in Slicer3.cxx, TCL interpreter got a reference using New.
For that reason, we call the corresponding Delete.
It's also worth reading:
http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.12
0 lines of code changed in 1 file:
ENH: SlicerQT - Add function fileTypeFromExtension to qSlicerCoreIOManager
Given an extension, for example 'vtp', that function will return the
corresponding file type, ie 'VTK PolyData'
0 lines of code changed in 2 files:
ENH: SlicerQT - Add resource file QTCore/Resources/Files/default-extension-filetype.ini
This file store the default mapping between a file extension and a filetype.
Data are stored following that format:
[ExtensionFileType]
ext = filetype
See http://doc.trolltech.com/4.6/qsettings.html
0 lines of code changed in 1 file:
ENH: SlicerQT - Update qSlicerApplication::setMRMLScene method
When the scene is set to the application, the IOManager will also be updated
0 lines of code changed in 1 file:
ENH: SlicerQT - Add method setMRMLScene, loadScene, importScene and closeScene to qSlicerCoreIOManager
modified: Base/QTCore/qSlicerCoreIOManager.cxx
modified: Base/QTCore/qSlicerCoreIOManager.h
0 lines of code changed in 2 files:
ENH: SlicerQT - Added qSlicerCoreIOManager and qSlicerIOManager
new file: QTCore/qSlicerCoreIOManager.cxx
new file: QTCore/qSlicerCoreIOManager.h
0 lines of code changed in 2 files:
ENH: SlicerQT - Added qSlicerCoreIOManager and qSlicerIOManager
208 lines of code changed in 5 files:
ENH: SlicerQT - Remove all methods prefixed with 'ByName'
For example moduleManager got two methods:
1) getModule(const QString& moduleTitle)
2) getModuleByName(const QString& moduleName)
The first one has been removed
The signature of the second one changed from:
- getModuleByName(const QString& moduleName)
to:
- getModule(const QString& moduleName)
0 lines of code changed in 2 files:
ENH: SlicerQT - Remove Base/QTGUI/qSlicerModuleManager, Rename Base/QTCore/qSlicerCoreModuleManager to Base/QTCore/qSlicerModuleManager
260 lines of code changed in 7 files:
ENH: SlicerQT - Add convenient method moduleName to qSlicerCoreModuleManager
13 lines of code changed in 2 files:
ENH: SlicerQT - Refactor QTCLI to consider qSlicerAbstractModuleWidget
qSlicerAbstractModuleWidget has also a new method 'module()' allowing
to obtain the module object associated with a moduleWidget.
The API of qSlicerModulePanel (and based class) has been updated to
use qSlicerAbstractModuleWidget.
0 lines of code changed in 2 files:
ENH: SlicerQT - Refactor Modules - Added qSlicerAsbtractModuleWidget
QTModules and CLI module are disabled for now
The class qSlicerAbstractModule now inherit from QObject.
All UI specific code has been moved to qSlicerAbstractModuleWidget.
qSlicerAbstractModule provide a function named 'widgetRepresentation'
allowing to obtain the corresponding widget.
0 lines of code changed in 5 files:
ENH: SlicerQT - Module are available again in the ModuleToolbar
Created qSlicerMainWindowCore_p.h containing two slots:
- onModuleLoaded
- onModuleAboutToBeUnloaded
qSlicerCoreModuleManager now emit the signals:
- moduleLoaded
- moduleAboutToBeUnloaded
Signal from qSlicerCoremoduleManager and slot from qSlicerMainWindowCore are
connected in the constructor of qSlicerWindowCore.
0 lines of code changed in 3 files:
BUG: SlicerQT - Fix initializeLoadableModulesPaths method in qSlicerCoreApplication
The 'LoadableModulesPaths' was generating by concatenating slicerHome and
Slicer3_INSTALL_QTLOADABLEMODULES_LIB_DIR preprocessor variable.
Add the missing '/' was missing between both.
0 lines of code changed in 1 file:
ENH: SlicerQT - Added Base/QTCore directory.
The classes qSlicerModuleFactory and qSlicerCoreApplication have been moved
into Base/QTCore
The class qSlicerModuleManager has been split into:
* a base class named: qSlicerCoreModuleManager. That class allows to:
- load, unload, getModuleByName, getModuleByTitle, ...
* a class named: qSlicerModuleManager
- which provides the same functionnality as the former one.
qSlicerCoreModuleManager is located in Base/QtCore
qSlicerModuleManager is located in Base/QtGUI
Note also that, qSlicerModuleManager was using the same singleton as
vtkIOManager. A class, named qSlicerSingleton, containing this usefull
singleton pattern has been copied into Slicer3/Attic.
Since qSlicerModuleManager or qSlicerCoreModuleManager are not singleton
anymore. qSlicerCoreApplication will hold a pointer to it.
qSlicerCoreApplication contains now:
- setModuleManager(qSlicerCoreModuleManager* moduleManager) that will be
available in both qSlicerApplication and qSlicerCoreApplication.
- coreModuleManager() returning the object
qSlicerApplication contains now:
- mnoduleManager method returning the result of coreModuleManager casted
to qSlicerModuleManager.
Note: In this commit, the update of the ModuleToolBar by the moduleManager
has been disabled.
65 lines of code changed in 7 files:
ENH: SlicerQT - Update SlicerQT/CMakeLists.txt - Remove SlicerBaseGUI from SlicerBase_LIBRARIES
The application 'SlicerQT' was build against SlicerBase_LIBRARIES.
The SlicerBaseGUI libraries was also included. This is a hack
allowing to remove the item 'SlicerBaseGUI' from the list Slicer3_Base_LIBRARIES.
That way, the GUI libs isn't build anymore when SlicerQT is build.
See below:
[ 0%] Built target ModuleDescriptionParser
[ 3%] Built target FreeSurfer
[ 10%] Built target vtkTeem
[ 17%] Built target qCTKWidgets
[ 17%] Built target SlicerBaseCLI
[ 28%] Built target vtkITK
[ 71%] Built target MRML
[ 75%] Built target qMRMLWidgets
[ 85%] Built target SlicerBaseLogic
[ 89%] Built target qSlicerBaseQTBase
[ 92%] Built target qSlicerBaseQTCoreModules
[ 92%] Built target qSlicerBaseQTCLI
[ 92%] Built target qSlicerBaseQTCore
[ 96%] Built target qSlicerBaseQTGUI
[100%] Built target qSlicerQT
[100%] Built target SlicerQT-real
[100%] Built target SlicerQT
1117 lines of code changed in 6 files: