<workbench id="Construction">
<group id="Basic">
<feature id="Point" text="Point" tooltip="Create a new point" icon=":icons/point.png">
- <doublevalue id="x" label="X:" min="0" max="" step="0.1" default="0"
- icon=":pictures/x_point.png" tooltip="Set X"/>
- <doublevalue id="y" label="Y:" min="0" max="" step="0.1" default="1"
- icon=":pictures/y_point.png" tooltip="Set Y"/>
- <doublevalue id="z" label="Z:" min="0" max="10" step="0.1" default="2"
- icon=":pictures/z_point.png" tooltip="Set Z"/>
+ <doublevalue id="x" label="X:" max="50" step="1.0" default="0" icon=":pictures/x_point.png" tooltip="Set X"/>
+ <doublevalue id="y" label="Y:" min="x" default="1" icon=":pictures/y_point.png" tooltip="Set Y"/>
+ <doublevalue id="z" label="Z:" min="-20" step="0.1" default="2" icon=":pictures/z_point.png" tooltip="Set Z"/>
</feature>
<feature id="Axis" text="Axis" tooltip="Create a new axis" icon=":icons/axis.png" keysequence=""/>
<feature id="Plane" text="Plane" tooltip="Create a new plane" icon=":icons/plane.png" keysequence=""/>
#include <QDebug>
#endif
+#include <cfloat>
+#include <climits>
+
XGUI_WidgetFactory::XGUI_WidgetFactory(ModuleBase_Operation* theOperation)
: myOperation(theOperation)
{
double aMinVal = qs(aProp).toDouble(&isOk);
if (isOk) {
aBox->setMinimum(aMinVal);
+ } else {
+ aBox->setMinimum(-DBL_MAX);
}
aProp = myWidgetApi->getProperty(DOUBLE_WDG_MAX);
double aMaxVal = qs(aProp).toDouble(&isOk);
if (isOk) {
aBox->setMaximum(aMaxVal);
+ } else {
+ aBox->setMaximum(DBL_MAX);
}
aProp = myWidgetApi->getProperty(DOUBLE_WDG_STEP);
double aStepVal = qs(aProp).toDouble(&isOk);