Slicer
5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Base/QTCore/qSlicerRelativePathMapper.h>
Properties | |
QString | path |
QStringList | paths |
QByteArray | propertyName |
This property contains the name of the object mapped property. More... | |
QString | relativePath |
QStringList | relativePaths |
Public Slots | |
void | setPath (const QString &path) |
void | setPaths (const QStringList &path) |
void | setRelativePath (const QString &path) |
void | setRelativePaths (const QStringList &paths) |
Signals | |
void | pathChanged (const QString &value) |
void | pathsChanged (const QStringList &value) |
void | relativePathChanged (const QString &value) |
void | relativePathsChanged (const QStringList &value) |
Public Member Functions | |
QString | path () const |
QStringList | paths () const |
QByteArray | propertyName () const |
qSlicerRelativePathMapper (QObject *targetObject, const QByteArray &propertyName, const QByteArray &signal) | |
QString | relativePath () const |
QStringList | relativePaths () const |
QObject * | targetObject () const |
The mapped object (the mapper parent) More... | |
virtual | ~qSlicerRelativePathMapper () |
Protected Slots | |
void | emitPathChanged () |
void | emitPathsChanged () |
Protected Attributes | |
QScopedPointer< qSlicerRelativePathMapperPrivate > | d_ptr |
Example: ctkDirectoryButton* directorySelector = new ctkDirectoryButton; qSlicerRelativePathMapper* makeRelative = new qSlicerRelativePathMapper("directory", SIGNAL("directoryChanged(QString)"), directorySelector); makeRelative->setPath("some/folder"); // -> directorySelector->directory() == "applicationhome/some/folder" makeRelative->setPath("/some/absolute/folder"); // -> directorySelector->directory() == "/some/absolute/folder"
Python example: relativePathMapper = slicer.qSlicerRelativePathMapper(directorySelector, "directory", "directoryChanged(QString)") parent.registerProperty( "settingsPropertyName", relativePathMapper, "relativePath", qt.SIGNAL("relativePathChanged(QString)"))
Definition at line 47 of file qSlicerRelativePathMapper.h.
|
readwrite |
Definition at line 53 of file qSlicerRelativePathMapper.h.
|
readwrite |
Definition at line 54 of file qSlicerRelativePathMapper.h.
|
read |
This property contains the name of the object mapped property.
Definition at line 51 of file qSlicerRelativePathMapper.h.
|
readwrite |
Definition at line 56 of file qSlicerRelativePathMapper.h.
|
readwrite |
Definition at line 57 of file qSlicerRelativePathMapper.h.
qSlicerRelativePathMapper::qSlicerRelativePathMapper | ( | QObject * | targetObject, |
const QByteArray & | propertyName, | ||
const QByteArray & | signal | ||
) |
Map the property property of the object. The mapper becomes a child of object and will be destructed when object is destructed. property and object must be valid and non empty. If signal is 0, pathChanged(bool) and relativePathChanged(bool) won't be fired.
|
virtual |
|
protectedslot |
|
protectedslot |
QString qSlicerRelativePathMapper::path | ( | ) | const |
|
signal |
QStringList qSlicerRelativePathMapper::paths | ( | ) | const |
|
signal |
QByteArray qSlicerRelativePathMapper::propertyName | ( | ) | const |
QString qSlicerRelativePathMapper::relativePath | ( | ) | const |
|
signal |
QStringList qSlicerRelativePathMapper::relativePaths | ( | ) | const |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
QObject* qSlicerRelativePathMapper::targetObject | ( | ) | const |
The mapped object (the mapper parent)
|
protected |
Definition at line 94 of file qSlicerRelativePathMapper.h.