Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 6.4 KB

GlvWidgetData_specs.md

File metadata and controls

42 lines (36 loc) · 6.4 KB

GlvWidgetData specializations

Here is the list of the managed types and containers in the library. You can include the corresponding header to your code depending on your needs. More types can be specialized. Also, you can modify the specialization of a type depending on your needs.

Type Header Widget
int GlvWidgetData_spec_AT.h QSpinBox
unsigned int GlvWidgetData_spec_AT.h QSpinBox
float GlvWidgetData_spec_AT.h QDoubleSpinBox
double GlvWidgetData_spec_AT.h QDoubleSpinBox
bool GlvWidgetData_spec_AT.h QCheckBox
std::string GlvWidgetData_spec_std_string.h QLineEdit
std::pair GlvWidgetData_spec_std_pair.h GlvPairWidget
std::vector * GlvWidgetData_spec_std_vector.h GlvVectorWidget
std::array * GlvWidgetData_spec_std_array.h GlvArrayWidget
Nested containers ** GlvWidgetData_spec_std_container_container.h GlvTableView
std::map GlvWidgetData_spec_std_map.h GlvMapWidget
enum GlvWidgetData_spec_SlvEnum.h GlvEnumWidget
SlvProportion GlvWidgetData_spec_SlvProportion.h GlvProportionWidget
SlvSize2d GlvWidgetData_spec_SlvSize2d.h GlvSize2dWidget
SlvFile GlvWidgetData_spec_SlvFile.h GlvOpenFile
SlvDirectory GlvWidgetData_spec_SlvDirectory.h GlvOpenDirectory
std::filesystem::path *** GlvWidgetData_spec_std_filesystem_path.h GlvOpenFile
SlvParametrization GlvWidgetData_spec_SlvParametrization.h GlvParametrizationWidget
All GlvWidgetData_spec_All.h

* If nested type is not a container. Example: std::vector.
** Example: std::vector< std::array<int, 4> >. See this page.
*** C++17 and above only

Remark

For numerical types, the default range and number of decimals is:

Type Range Decimals
int [std::numeric_limits::lowest(), std::numeric_limits::max()] -
unsigned int [0, std::numeric_limits::max()] -
float [std::numeric_limits::lowest(), std::numeric_limits::max()] max(2, N decimals of construction value)
double [std::numeric_limits::lowest(), std::numeric_limits::max()] max(2, N decimals of construction value)