22 #include <dtkCoreSupport/dtkGlobal.h>
26 class axlInspectorObjectSceneWidgetFieldVectorStreamPrivate
29 QDoubleSpinBox *stream_radius_spin;
30 QDoubleSpinBox *stream_propagati_spin;
31 QComboBox *stream_direction_comb;
36 QWidget *stream_form =
new QWidget(
this);
37 stream_form->setObjectName(
"axlInspectorObjectSceneWidgetFieldVectorStreamForm");
39 d->stream_propagati_spin =
new QDoubleSpinBox(
this);
40 d->stream_propagati_spin->setValue(100);
41 d->stream_propagati_spin->setMinimum(0);
42 d->stream_propagati_spin->setMaximum(100000);
43 d->stream_propagati_spin->setSingleStep(1);
45 d->stream_radius_spin =
new QDoubleSpinBox(
this);
46 d->stream_radius_spin->setValue(0.001);
47 d->stream_radius_spin->setMinimum(0);
48 d->stream_radius_spin->setMaximum(100000);
49 d->stream_radius_spin->setSingleStep(0.001);
50 d->stream_radius_spin->setDecimals(3);
52 d->stream_direction_comb =
new QComboBox(
this);
53 d->stream_direction_comb->addItem(
"Forward");
54 d->stream_direction_comb->addItem(
"Backward");
55 d->stream_direction_comb->addItem(
"Both");
56 d->stream_direction_comb->setCurrentIndex(2);
58 QFormLayout *stream_form_layout =
new QFormLayout(stream_form);
59 stream_form_layout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
60 stream_form_layout->addRow(
"Radius", d->stream_radius_spin);
61 stream_form_layout->addRow(
"Propagation", d->stream_propagati_spin);
62 stream_form_layout->addRow(
"Direction", d->stream_direction_comb);
64 QVBoxLayout *layout =
new QVBoxLayout(
this);
65 layout->setContentsMargins(0, 0, 0, 0);
66 layout->addWidget(
new QLabel(
"Stream",
this));
67 layout->addWidget(stream_form);