Documentation for OpenFLUID 2.2.0
openfluid::ui Namespace Reference

Namespaces

 builderext
 
 common
 
 spatial
 
 waresdev
 

Functions

QString toIniCompatible (const std::string &Str)
 
std::string fromIniCompatible (const QVariant &Var)
 
std::list< std::string > toStdStringList (const QStringList &StrList)
 
std::vector< std::string > toStdStringVector (const QStringList &StrList)
 
std::map< std::string, std::string > toStdStringMap (const std::map< QString, QString > &StrMap)
 
QDateTime toQDateTime (const openfluid::core::DateTime &DT)
 
QStringList toQStringList (const std::vector< std::string > &StrVect)
 
QStringList toQStringList (const std::set< std::string > &StrSet)
 
QStringList toQStringList (const std::list< std::string > &StrList)
 
QStringList toQStringList (const std::set< int > &IntSet)
 
QStringList convertArgsStringToList (const QString &ArgsStr)
 
QString escapeXMLEntities (const QString &Str)
 
QString decodeXMLEntities (const QString &Str)
 
QPoint toQPoint (const std::string &Str)
 
std::string fromQPoint (const QPoint &Point)
 
QSize toQSize (const std::string &Str)
 
std::string fromQSize (const QSize &Size)
 

Function Documentation

◆ convertArgsStringToList()

QStringList openfluid::ui::convertArgsStringToList ( const QString &  ArgsStr)
inline

Converts arguments string to list. It first splits the string using spaces that are not inclosed in quotes, then remove enclosing quotes for each argument if any.

Parameters
[in]ArgsStrthe argument string to convert
Returns
The list of arguments

◆ decodeXMLEntities()

QString openfluid::ui::decodeXMLEntities ( const QString &  Str)
inline

Decodes XML entities to characters

Parameters
[in]Strthe string to decode
Returns
The decoded string

◆ escapeXMLEntities()

QString openfluid::ui::escapeXMLEntities ( const QString &  Str)
inline

Escapes characters in the given string to be compatible with the XML format.

Parameters
[in]Strthe string to escape
Returns
The escaped string

◆ fromIniCompatible()

std::string openfluid::ui::fromIniCompatible ( const QVariant &  Var)
inline

Transforms the given variable from an INI file managed with QSettings to a string

Parameters
[in]Varthe variable to transform
Returns
The variable transformed into a string

◆ fromQPoint()

std::string openfluid::ui::fromQPoint ( const QPoint &  Point)
inline

Converts a QPoint to a @Point formatted string

Parameters
[in]Pointthe QPoint object to convert
Returns
the @Point formatted string (e.g. "\@Point(-127 53)")

◆ fromQSize()

std::string openfluid::ui::fromQSize ( const QSize &  Size)
inline

Converts a QSize to a @Size formatted string

Parameters
[in]Sizethe Size object to convert
Returns
the @Size formatted string (e.g. "\@Size(1920 1080)")

◆ toIniCompatible()

QString openfluid::ui::toIniCompatible ( const std::string &  Str)
inline

Transforms the given string to a string compatible with the INI files managed with QSettings.

Parameters
[in]Strthe string to transform
Returns
The transformed string

◆ toQDateTime()

QDateTime openfluid::ui::toQDateTime ( const openfluid::core::DateTime DT)
inline

Transforms an OpenFLUID DateTime to a QDateTime

Parameters
[in]DTThe OpenFLUID DateTime to transform
Returns
The DT transformed into QDateTime

◆ toQPoint()

QPoint openfluid::ui::toQPoint ( const std::string &  Str)
inline

Converts a @Point formatted string to a QPoint

Parameters
[in]Strthe @Point formatted string (e.g. "\@Point(-127 53)")
Returns
the QPoint object

◆ toQSize()

QSize openfluid::ui::toQSize ( const std::string &  Str)
inline

Converts a @Size formatted string to a QSize

Parameters
[in]Strthe @Size formatted string (e.g. "\@Size(1920 1080)")
Returns
the QSize object

◆ toQStringList() [1/4]

QStringList openfluid::ui::toQStringList ( const std::list< std::string > &  StrList)
inline

Transforms a std::list of std::string into a QStringList

Parameters
[in]StrListthe std::list of std::string to transform
Returns
The StrList transformed into a QStringList

◆ toQStringList() [2/4]

QStringList openfluid::ui::toQStringList ( const std::set< int > &  IntSet)
inline

Transforms a std::set of int into a QStringList

Parameters
[in]IntSetthe std::set of int to transform
Returns
The intSet transformed into a QStringList

◆ toQStringList() [3/4]

QStringList openfluid::ui::toQStringList ( const std::set< std::string > &  StrSet)
inline

Transforms a std::set of std::string into a QStringList

Parameters
[in]StrSetthe std::set of std::string to transform
Returns
The StrSet transformed into a QStringList

◆ toQStringList() [4/4]

QStringList openfluid::ui::toQStringList ( const std::vector< std::string > &  StrVect)
inline

Transforms a std::vector of std::string into a QStringList

Parameters
[in]StrVectthe std::vector of std::string to transform
Returns
The StrVect transformed into a QStringList

◆ toStdStringList()

std::list<std::string> openfluid::ui::toStdStringList ( const QStringList &  StrList)
inline

Transforms a QStringList into a std::list of std::string

Parameters
[in]StrListthe QStringList to transform
Returns
The QStringList transformed into a std::list of std::string

◆ toStdStringMap()

std::map<std::string,std::string> openfluid::ui::toStdStringMap ( const std::map< QString, QString > &  StrMap)
inline

Transforms a std::map of QString,QString into a std::map of std::string,std::string

Parameters
[in]StrMapthe map to transform
Returns
The std::map of QString,QString>transformed into a std::map of std::string,std::string

◆ toStdStringVector()

std::vector<std::string> openfluid::ui::toStdStringVector ( const QStringList &  StrList)
inline

Transforms a QStringList into a std::vector of std::string

Parameters
[in]StrListthe QStringList to transform
Returns
The QStringList transformed into a std::vector of std::string