MODEL_EXPORT virtual int value();
protected:
- /// Initializes attibutes
+ /// Initializes attributes
Model_AttributeInteger(TDF_Label& theLabel);
friend class Model_Data;
/// Defines the integer value
MODELAPI_EXPORT virtual void setValue(const int theValue) = 0;
- /// Returns the inhteger value
+ /// Returns the integer value
MODELAPI_EXPORT virtual int value() = 0;
/// Returns the type of this class of attributes
}
/*!
- \brief This function is called when the spinbox recieves key press event.
+ \brief This function is called when the spinbox receives key press event.
*/
//void ModuleBase_ParamSpinBox::keyPressEvent(QKeyEvent* e)
//{
//}
/*!
- \brief This function is called when the spinbox recieves show event.
+ \brief This function is called when the spinbox receives show event.
*/
void ModuleBase_ParamSpinBox::showEvent(QShowEvent* theEvent)
{
/// Returns True if the given value is within min and max of the control
bool checkRange(const double) const;
- /// Finds a variable by its name. Rreturns true in success
+ /// Finds a variable by its name. Returns true in success
/// \param theName a name of variable
- /// \param outValue an output val;ue of the variable
+ /// \param outValue an output value of the variable
bool findVariable(const QString& theName, double& outValue) const;
protected:
/**
* \ingroup GUI
-* A class of property panel widget for double value input
-* It can be defined with "doublevalue" keyword. For example:
+* A class of property panel widget for integer value input
+* It can be defined with "integervalue" keyword. For example:
* \code
-* <doublevalue id="x" label="X:" icon=":pictures/x_point.png" tooltip="X coordinate"/>
+* <integervalue id="x" label="X:" icon=":pictures/x_point.png" tooltip="X coordinate"/>
* \endcode
*/
class MODULEBASE_EXPORT ModuleBase_WidgetIntValue : public ModuleBase_ModelWidget
public:
/// Constructor
/// \param theParent the parent object
- /// \param theData the widget configuation. The attribute of the model widget is obtained from
+ /// \param theData the widget configuration. The attribute of the model widget is obtained from
/// \param theParentId is Id of a parent structure (widget, operation, group)
ModuleBase_WidgetIntValue(QWidget* theParent, const Config_WidgetAPI* theData,
const std::string& theParentId);