6#ifndef iqtmeas_CNumericParamsGuiComp_included
7#define iqtmeas_CNumericParamsGuiComp_included
11#include<QtCore/QtGlobal>
12#include <QtWidgets/QFrame>
13#include <QtWidgets/QGroupBox>
30 istdgui::TGuiComponentBase<QWidget>,
31 imod::TSingleModelObserverBase<imeas::INumericValue> >,
43 I_ASSIGN(m_isSliderVisibleAttrPtr,
"SliderVisible",
"Enables slider control",
true,
true);
44 I_ASSIGN(m_isButtonsVisibleAttrPtr,
"ButtonsVisible",
"Enables min/max buttons",
true,
true);
45 I_ASSIGN(m_isSingleRowAttrPtr,
"SingleRow",
"Single row layout",
true,
false);
46 I_ASSIGN(m_inputPolicyAttrPtr,
"InputSizePolicy",
"0 - minimal width (default)\n1 - expanding input \n2 - label and input have same width",
false, 0);
47 I_ASSIGN(m_verticalLayoutAttrPtr,
"VerticalLayout",
"Vertical or horizontal layout for multiple widgets",
true,
true);
48 I_ASSIGN(m_editorPrecisionAttrPtr,
"EditorPrecision",
"Precision of the spin editor (-1 - don't change, 0 - integer, 1 - one decimal etc.)",
true, 2);
49 I_ASSIGN(m_postValidationEnabledAttrPtr,
"PostValidationEnabled",
"If enabled, the constraints check will be done after finishing editing of value",
true,
false);
72 I_ATTR(
bool, m_isSliderVisibleAttrPtr);
73 I_ATTR(
bool, m_isButtonsVisibleAttrPtr);
74 I_ATTR(
bool, m_isSingleRowAttrPtr);
75 I_ATTR(
int, m_inputPolicyAttrPtr);
76 I_ATTR(
bool, m_verticalLayoutAttrPtr);
77 I_ATTR(
int, m_editorPrecisionAttrPtr);
78 I_ATTR(
bool, m_postValidationEnabledAttrPtr);
istdgui::TGuiObserverWrap< istdgui::TGuiComponentBase< QWidget >, imod::TSingleModelObserverBase< imeas::INumericValue > > BaseClass
imod::CMultiModelDispatcherBase BaseClass2
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Do update of the GUI to reflect the state of model.
void OnGuiModelDetached() override
Called when model is detached or GUI is destroyed.
void OnGuiCreated() override
Called just after GUI is initialized.
void OnModelChanged(int modelId, const istd::IChangeable::ChangeSet &changeSet) override
Called when some model observed by dispatcher will be changed.
void UpdateModel() const override
Do update of the model to reflect the current contents of GUI.
virtual ~CNumericParamsGuiComp()
void OnGuiModelAttached() override
Called when model is attached and GUI is created.
void OnGuiDestroyed() override
Called just before GUI is released.
Generic implementation of a data model changes notifier.
Common interface for an model editor.
Basic implementation for a single model observer with binding to concrete data object interface.
Set of change flags (its IDs).
Implementation of a pointer container, which controls the live cycle of the pointer object.
Base class for all Qt GUI componentes.
Join functionality of istdgui::IGuiObject interface and imod::IObserver.
This package contains Qt based implementations of measurement components.