Fraxinus  16.5.0-fx-rc6
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::TSFPresets Class Reference

#include <cxTSFPresets.h>

Inheritance diagram for cx::TSFPresets:
cx::Presets

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 > &parameters)
 

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 ()
 

Detailed Description

Definition at line 54 of file cxTSFPresets.h.

Constructor & Destructor Documentation

cx::TSFPresets::TSFPresets ( )

Definition at line 45 of file cxTSFPresets.cpp.

cx::TSFPresets::~TSFPresets ( )
virtual

Definition at line 52 of file cxTSFPresets.cpp.

Member Function Documentation

void cx::TSFPresets::addAsCustomPreset ( std::map< QString, QString >::iterator  it)
protected

Definition at line 200 of file cxTSFPresets.cpp.

void cx::TSFPresets::convertToInternalFormat ( std::map< QString, QString > &  presets)
protected

Definition at line 125 of file cxTSFPresets.cpp.

QDomElement cx::TSFPresets::createPresetElement ( QString  name,
std::map< QString, QString > &  parameters 
)
static

Definition at line 55 of file cxTSFPresets.cpp.

void cx::TSFPresets::deleteFile ( QString  filePath)
protected

Definition at line 178 of file cxTSFPresets.cpp.

QStringList cx::TSFPresets::generatePresetList ( QString  tag)
protectedvirtual

internally generate the preset list

Reimplemented from cx::Presets.

Definition at line 107 of file cxTSFPresets.cpp.

void cx::TSFPresets::getPresetsNameAndPath ( )
protected

Definition at line 186 of file cxTSFPresets.cpp.

void cx::TSFPresets::loadPresetsFromFiles ( )
protected

Definition at line 119 of file cxTSFPresets.cpp.

std::map< QString, QString > cx::TSFPresets::readFile ( QString &  filePath)
protected

Definition at line 133 of file cxTSFPresets.cpp.

void cx::TSFPresets::remove ( )
virtual

removes the presets from file

Reimplemented from cx::Presets.

Definition at line 101 of file cxTSFPresets.cpp.

void cx::TSFPresets::save ( )
virtual

Saves last custom preset (current)

Reimplemented from cx::Presets.

Definition at line 73 of file cxTSFPresets.cpp.

void cx::TSFPresets::saveFile ( QString  folderPath,
std::map< QString, QString >  parameters 
)
protected

Definition at line 157 of file cxTSFPresets.cpp.

Member Data Documentation

QString cx::TSFPresets::mPresetPath
protected

Definition at line 76 of file cxTSFPresets.h.

std::map<QString,QString> cx::TSFPresets::mPresetsMap
protected

Definition at line 77 of file cxTSFPresets.h.


The documentation for this class was generated from the following files: