26 #ifndef PERSISTENCE_MANAGER_H
27 #define PERSISTENCE_MANAGER_H
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
Definition: PersistenceManager.h:34
Definition: PersistenceManager.h:43
static bool loadComponents(QVariant, QDir rootPath)
Loads/Open the components from the QVariant and update the property values accordingly.
Definition: PersistenceManager.cpp:197
static QVariant fromComponents(QList< Component * >, QDir rootPath)
Converts component's filename and properties to QVariant.
Definition: PersistenceManager.cpp:178
static QVariant fromProperties(const QObject *)
Definition: PersistenceManager.cpp:234
static QVariant stringToVariant(QString value)
returns a valid QVariant for specific types corresponding to a specific string representation
Definition: PersistenceManager.cpp:420
static void updateVariantValueWhilePreservingType(QVariant &variant, QVariant &newValue, QString name="")
Update the variant value while trying to preserve its type.
Definition: PersistenceManager.cpp:323
static bool saveWorkspace(QString filepath)
Save the whole Application workspace including components, settings (e.g.
Definition: PersistenceManager.cpp:53
static bool loadWorkspace(QString filepath)
Definition: PersistenceManager.cpp:115
static void loadProperties(QObject *, QVariant)
Definition: PersistenceManager.cpp:287
static QString variantToString(const QVariant &variant)
returns a specific string representation of (limited list of) some specific QVariant types
Definition: PersistenceManager.cpp:398
Definition: Action.cpp:36