removed initialization from header
This commit is contained in:
parent
2d68ad3495
commit
8a586c6035
3 changed files with 2 additions and 30 deletions
|
|
@ -1,29 +0,0 @@
|
|||
@Description("The resolution of the curves. Higher values give smoother curves but may increase the model render time.")
|
||||
@Parameter([10, 20, 30, 50, 100])
|
||||
resolution = 30;
|
||||
|
||||
@Description("The horizontal radius of the outer ellipse of the sign.")
|
||||
@Parameter([60 : 200])
|
||||
radius = 80;
|
||||
|
||||
@Parameter([1 : 10])
|
||||
@Description("Total height of the sign")
|
||||
height = 2;
|
||||
|
||||
@Parameter(["Welcome to...", "Happy Birthday!", "Happy Anniversary", "Congratulations", "Thank You"])
|
||||
selection = "Welcome to...";
|
||||
|
||||
@Parameter()
|
||||
text = "Parametric Designs";
|
||||
|
||||
$fn = resolution;
|
||||
|
||||
scale([1, 0.5]) difference() {
|
||||
cylinder(r = radius, h = 2 * height, center = true);
|
||||
translate([0, 0, height])
|
||||
cylinder(r = radius - 10, h = height + 1, center = true);
|
||||
}
|
||||
linear_extrude(height = height) {
|
||||
translate([0, --4]) text(selection, halign = "center");
|
||||
translate([0, -16]) text(text, halign = "center");
|
||||
}
|
||||
|
|
@ -42,6 +42,7 @@ ParameterWidget::ParameterWidget(QWidget *parent) : QWidget(parent)
|
|||
{
|
||||
setupUi(this);
|
||||
|
||||
descriptionShow=true;
|
||||
autoPreviewTimer.setInterval(500);
|
||||
autoPreviewTimer.setSingleShot(true);
|
||||
connect(&autoPreviewTimer, SIGNAL(timeout()), this, SLOT(onPreviewTimerElapsed()));
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class ParameterWidget : public QWidget, public Ui::ParameterWidget, public Param
|
|||
|
||||
typedef enum { UNDEFINED, COMBOBOX, SLIDER, CHECKBOX, TEXT, NUMBER, VECTOR } parameter_type_t;
|
||||
QTimer autoPreviewTimer;
|
||||
bool descriptionShow=true;
|
||||
bool descriptionShow;
|
||||
|
||||
public:
|
||||
ParameterWidget(QWidget *parent = 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue