Directory Base/QTCore/

Directory Created:
2009-12-04 22:27
Total Files:
9
Deleted Files:
2
Lines of Code:
1647

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

Lines of Code

Base/QTCore/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
jcfr 49 (100.0%) 1663 (100.0%) 33.9

Most Recent Commits

jcfr 2009-12-10 20:43 Rev.: 11250

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:

  • Base/QTCore: qSlicerCoreApplication.cxx (changed)
jcfr 2009-12-08 13:29 Rev.: 11222

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:

  • Base/QTCore: qSlicerCoreIOManager.cxx (changed), qSlicerCoreIOManager.h (changed)
jcfr 2009-12-08 13:29 Rev.: 11221

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:

  • Base/QTCore: CMakeLists.txt (changed)
jcfr 2009-12-08 04:31 Rev.: 11217

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:

  • Base/QTCore: qSlicerCoreApplication.cxx (changed)
jcfr 2009-12-08 04:31 Rev.: 11216

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:

  • Base/QTCore: qSlicerCoreIOManager.cxx (changed), qSlicerCoreIOManager.h (changed)
jcfr 2009-12-08 04:31 Rev.: 11215

ENH: SlicerQT - Added qSlicerCoreIOManager and qSlicerIOManager

new file: QTCore/qSlicerCoreIOManager.cxx
new file: QTCore/qSlicerCoreIOManager.h

0 lines of code changed in 2 files:

  • Base/QTCore: qSlicerCoreIOManager.cxx (changed), qSlicerCoreIOManager.h (changed)
jcfr 2009-12-08 04:10 Rev.: 11214

ENH: SlicerQT - Added qSlicerCoreIOManager and qSlicerIOManager

208 lines of code changed in 5 files:

  • Base/QTCore: CMakeLists.txt (changed), qSlicerCoreApplication.cxx (changed), qSlicerCoreApplication.h (changed), qSlicerCoreIOManager.cxx (new 157), qSlicerCoreIOManager.h (new 51)
jcfr 2009-12-07 23:13 Rev.: 11206

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:

  • Base/QTCore: qSlicerModuleManager.cxx (changed), qSlicerModuleManager.h (changed)
jcfr 2009-12-06 17:58 Rev.: 11187

ENH: SlicerQT - Remove Base/QTGUI/qSlicerModuleManager, Rename Base/QTCore/qSlicerCoreModuleManager to Base/QTCore/qSlicerModuleManager

260 lines of code changed in 7 files:

  • Base/QTCore: CMakeLists.txt (changed), qSlicerCoreApplication.cxx (changed), qSlicerCoreApplication.h (changed), qSlicerCoreModuleManager.cxx (del), qSlicerCoreModuleManager.h (del), qSlicerModuleManager.cxx (new 183), qSlicerModuleManager.h (new 77)
jcfr 2009-12-06 17:57 Rev.: 11181

ENH: SlicerQT - Add convenient method moduleName to qSlicerCoreModuleManager

13 lines of code changed in 2 files:

  • Base/QTCore: qSlicerCoreModuleManager.cxx (+7 -1), qSlicerCoreModuleManager.h (+6 -2)
jcfr 2009-12-05 11:09 Rev.: 11169

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:

  • Base/QTCore: CMakeLists.txt (changed), qSlicerModuleFactory.cxx (changed)
jcfr 2009-12-05 11:09 Rev.: 11167

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:

  • Base/QTCore: CMakeLists.txt (changed), qSlicerCoreApplication.cxx (changed), qSlicerCoreModuleManager.cxx (changed), qSlicerModuleFactory.cxx (changed), qSlicerModuleFactory.h (changed)
jcfr 2009-12-04 23:29 Rev.: 11163

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:

  • Base/QTCore: qSlicerCoreModuleManager.cxx (changed), qSlicerCoreModuleManager.h (changed), qSlicerModuleFactory.cxx (changed)
jcfr 2009-12-04 22:28 Rev.: 11162

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:

  • Base/QTCore: qSlicerCoreApplication.cxx (changed)
jcfr 2009-12-04 22:28 Rev.: 11160

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:

  • Base/QTCore: CMakeLists.txt (new 65), qSlicerCoreApplication.cxx (changed), qSlicerCoreApplication.h (changed), qSlicerCoreModuleManager.cxx (changed), qSlicerCoreModuleManager.h (changed), qSlicerModuleFactory.cxx (changed), qSlicerModuleFactory.h (changed)
jcfr 2009-12-04 22:27 Rev.: 11159

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:

  • Base/QTCore: qSlicerCoreApplication.cxx (new 364), qSlicerCoreApplication.h (new 92), qSlicerCoreModuleManager.cxx (new 1), qSlicerCoreModuleManager.h (new 2), qSlicerModuleFactory.cxx (new 544), qSlicerModuleFactory.h (new 114)
Generated by StatSVN 0.5.0