BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
customvariants.h File Reference

Defines class CLASS? More...

Include dependency graph for customvariants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ModelView
 materialitems.h Collection of materials to populate MaterialModel.
 
 ModelView::Utils
 Collection of various widget-related utils.
 

Functions

MVVM_MODEL_EXPORT bool ModelView::Utils::CompatibleVariantTypes (const Variant &oldValue, const Variant &newValue)
 Returns true if variants has compatible types. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsBoolVariant (const Variant &variant)
 Returns true in the case of double value based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsColorVariant (const Variant &variant)
 Returns true in the case of QColor based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsComboVariant (const Variant &variant)
 Returns true in the case of double value based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsDoubleVariant (const Variant &variant)
 Returns true in the case of double value based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsDoubleVectorVariant (const Variant &variant)
 Returns true in the case of variant based on std::vector<double>. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsExtPropertyVariant (const Variant &variant)
 Returns true in the case of ExternalProperty based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsIntVariant (const Variant &variant)
 Returns true in the case of double value based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsRealLimitsVariant (const Variant &variant)
 Returns true in the case of RealLimits based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsStdStringVariant (const Variant &variant)
 Returns true in the case of double value based variant. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::IsTheSame (const Variant &var1, const Variant &var2)
 Returns true if given variants have same type and value. More...
 
MVVM_MODEL_EXPORT Variant ModelView::Utils::toCustomVariant (const Variant &standard)
 Converts Qt variant to custom variant on board of SessionItem. More...
 
MVVM_MODEL_EXPORT Variant ModelView::Utils::toQtVariant (const Variant &custom)
 Converts custom variant to standard variant which Qt views will understand. More...
 
MVVM_MODEL_EXPORT std::string ModelView::Utils::VariantName (const Variant &variant)
 Returns name of variant. More...
 
MVVM_MODEL_EXPORT int ModelView::Utils::VariantType (const Variant &variant)
 Returns type of variant (additionally checks for user type). More...
 

Detailed Description

Defines class CLASS?

Registrations and translations for custom variants.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file customvariants.h.