CustusX
16.5.0-rc9
An IGT application
|
#include <cxTSFPresets.h>
Public Member Functions | |
TSFPresets () | |
virtual | ~TSFPresets () |
virtual void | save () |
Saves last custom preset (current) More... | |
virtual void | remove () |
removes the presets from file More... | |
Public Member Functions inherited from cx::Presets | |
Presets (XmlOptionFile presetFile, XmlOptionFile customFile) | |
virtual | ~Presets () |
QString | getId () const |
void | addCustomPreset (QDomElement &element) |
adds a custom preset More... | |
virtual void | deleteCustomPreset (QString name) |
deletes the custom preset with the given name if it exists More... | |
QStringList | getPresetList (QString tag="") |
returns a list of the preset names for the given tag More... | |
bool | isDefaultPreset (QString presetName) |
Check is the preset is one of the "system presets". More... | |
XmlOptionFile | getCustomFile () |
Static Public Member Functions | |
static QDomElement | createPresetElement (QString name, std::map< QString, QString > ¶meters) |
Protected Member Functions | |
virtual QStringList | generatePresetList (QString tag) |
internally generate the preset list More... | |
void | loadPresetsFromFiles () |
void | convertToInternalFormat (std::map< QString, QString > &presets) |
std::map< QString, QString > | readFile (QString &filePath) |
void | saveFile (QString folderPath, std::map< QString, QString > parameters) |
void | deleteFile (QString filePath) |
void | getPresetsNameAndPath () |
void | addAsCustomPreset (std::map< QString, QString >::iterator it) |
Protected Member Functions inherited from cx::Presets | |
XmlOptionFile | getPresetNode (const QString &presetName) |
Look for a preset with the given name. Create one if not found. More... | |
void | addDefaultPreset (QDomElement &element) |
void | addPreset (XmlOptionFile &file, QDomElement &element) |
void | print (QDomElement element) |
debugging function for printing xml elements More... | |
Protected Attributes | |
QString | mPresetPath |
std::map< QString, QString > | mPresetsMap |
Protected Attributes inherited from cx::Presets | |
QString | mLastCustomPresetAdded |
QString | mLastCustomPresetRemoved |
< the name of the last custom preset added More... | |
XmlOptionFile | mPresetFile |
< the name of the last custom preset removed More... | |
Additional Inherited Members | |
Signals inherited from cx::Presets | |
void | changed () |
Definition at line 54 of file cxTSFPresets.h.
cx::TSFPresets::TSFPresets | ( | ) |
Definition at line 45 of file cxTSFPresets.cpp.
|
virtual |
Definition at line 52 of file cxTSFPresets.cpp.
|
protected |
Definition at line 200 of file cxTSFPresets.cpp.
|
protected |
Definition at line 125 of file cxTSFPresets.cpp.
|
static |
Definition at line 55 of file cxTSFPresets.cpp.
|
protected |
Definition at line 178 of file cxTSFPresets.cpp.
|
protectedvirtual |
internally generate the preset list
Reimplemented from cx::Presets.
Definition at line 107 of file cxTSFPresets.cpp.
|
protected |
Definition at line 186 of file cxTSFPresets.cpp.
|
protected |
Definition at line 119 of file cxTSFPresets.cpp.
|
protected |
Definition at line 133 of file cxTSFPresets.cpp.
|
virtual |
removes the presets from file
Reimplemented from cx::Presets.
Definition at line 101 of file cxTSFPresets.cpp.
|
virtual |
Saves last custom preset (current)
Reimplemented from cx::Presets.
Definition at line 73 of file cxTSFPresets.cpp.
|
protected |
Definition at line 157 of file cxTSFPresets.cpp.
|
protected |
Definition at line 76 of file cxTSFPresets.h.
|
protected |
Definition at line 77 of file cxTSFPresets.h.