31 const QString &name,
const QColor &color) {
32 setLayout(
new QVBoxLayout());
34 setSizePolicy(QSizePolicy::MinimumExpanding,
35 QSizePolicy::MinimumExpanding);
37 typeSelectionArea->setLayout(
new QHBoxLayout());
38 typeSelectionArea->layout()->addWidget(
new QLabel(
"Stretch Type"));
47 layout()->addWidget(typeSelectionArea);
53 connect(linear, SIGNAL(saveToCube()),
this, SIGNAL(saveToCube()));
54 connect(linear, SIGNAL(deleteFromCube()),
this, SIGNAL(deleteFromCube()));
55 connect(linear, SIGNAL(loadStretch()),
this, SIGNAL(loadStretch()));
61 connect(sawtooth, SIGNAL(saveToCube()),
this, SIGNAL(saveToCube()));
62 connect(sawtooth, SIGNAL(deleteFromCube()),
this, SIGNAL(deleteFromCube()));
63 connect(sawtooth, SIGNAL(loadStretch()),
this, SIGNAL(loadStretch()));
69 connect(binary, SIGNAL(saveToCube()),
this, SIGNAL(saveToCube()));
70 connect(binary, SIGNAL(deleteFromCube()),
this, SIGNAL(deleteFromCube()));
71 connect(binary, SIGNAL(loadStretch()),
this, SIGNAL(loadStretch()));
77 connect(manual, SIGNAL(saveToCube()),
this, SIGNAL(saveToCube()));
78 connect(manual, SIGNAL(deleteFromCube()),
this, SIGNAL(deleteFromCube()));
79 connect(manual, SIGNAL(loadStretch()),
this, SIGNAL(loadStretch()));
130 QString stretchTypeName = newStretch.getType();
132 if (stretchTypeName.compare(
"Linear") == 0 ) {
135 else if (stretchTypeName.compare(
"Sawtooth") == 0 ) {
138 else if (stretchTypeName.compare(
"Binary") == 0) {
141 else if (stretchTypeName.compare(
"Manual") == 0) {