10 setObjectName(
"Modify poses");
17 "The selection contains poses in Joint mode and Linear mode, it is thus not allowed to modified the robot speed.");
18 label->setWordWrap(
true);
22 layout_->addWidget(
new QLabel(
"<b>Geometric pose:</b>"));
23 QGridLayout* geometric_pose_grid =
new QGridLayout;
24 layout_->addLayout(geometric_pose_grid);
28 QVBoxLayout *pose_layout =
new QVBoxLayout;
34 pose_->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
37 pose_abs_rel_->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
49 layout_->addWidget(
new QLabel(
"<b>Pose:</b>"));
50 QGridLayout* pose_grid =
new QGridLayout;
59 polygon_start_->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
62 QVBoxLayout *polygon_start_layout =
new QVBoxLayout;
65 polygon_start_layout->addWidget(
new QLabel(
"Polygon start:"));
79 QVBoxLayout *polygon_end_layout =
new QVBoxLayout;
82 polygon_end_layout->addWidget(
new QLabel(
"Polygon end:"));
89 layout_->addWidget(
new QLabel(
"<b>Parameters:</b>"));
91 QGridLayout* parameters_grid =
new QGridLayout;
92 layout_->addLayout(parameters_grid);
100 movement_type_->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
104 QVBoxLayout *movement_type_layout =
new QVBoxLayout;
107 movement_type_layout->addWidget(
new QLabel(
"Movement type:"));
122 QVBoxLayout *approach_type_layout =
new QVBoxLayout;
125 approach_type_layout->addWidget(
new QLabel(
"Approach type:"));
145 QVBoxLayout *blend_radius_layout =
new QVBoxLayout;
148 blend_radius_layout->addWidget(
new QLabel(
"Blend radius:"));
158 speed_ =
new QDoubleSpinBox;
169 QVBoxLayout *speed_layout =
new QVBoxLayout;
174 speed_layout->addWidget(
new QLabel(
"Speed:"));
176 speed_layout->addWidget(
speed_);
196 QVBoxLayout *laser_power_layout =
new QVBoxLayout;
199 laser_power_layout->addWidget(
new QLabel(
"Laser power:"));
221 QVBoxLayout *feed_rate_layout =
new QVBoxLayout;
224 feed_rate_layout->addWidget(
new QLabel(
"Feed rate:"));
243 button_box_ =
new QDialogButtonBox(QDialogButtonBox::Ok
244 | QDialogButtonBox::Cancel);
304 QStandardItemModel *model =
dynamic_cast<QStandardItemModel *
>(
speed_abs_rel_->model());
305 model->item(0, 0)->setEnabled(
true);
306 model->item(1, 0)->setEnabled(
true);
324 QStandardItemModel *model =
dynamic_cast<QStandardItemModel *
>(
speed_abs_rel_->model());
325 model->item(0, 0)->setEnabled(
true);
326 model->item(1, 0)->setEnabled(
true);
330 QStandardItemModel *model =
dynamic_cast<QStandardItemModel *
>(
speed_abs_rel_->model());
331 model->item(0, 0)->setEnabled(
false);
332 model->item(1, 0)->setEnabled(
true);
339 speed_->setSuffix(
" meters/min");
344 QStandardItemModel *model =
dynamic_cast<QStandardItemModel *
>(
speed_abs_rel_->model());
345 model->item(0, 0)->setEnabled(
false);
346 model->item(1, 0)->setEnabled(
true);
351 QStandardItemModel *model =
dynamic_cast<QStandardItemModel *
>(
speed_abs_rel_->model());
352 model->item(0, 0)->setEnabled(
true);
353 model->item(1, 0)->setEnabled(
true);
399 speed_->setRange(-100, 100);
402 speed_->setRange(0.001, 100);
QComboBox * movement_type_
QComboBox * feed_rate_abs_rel_
QComboBox * polygon_start_
QWidget * laser_power_widget_
QWidget * approach_type_widget_
void modifyMovementType()
QCheckBox * approach_type_modify_
QCheckBox * polygon_end_modify_
double speed_conversion_factor_
QComboBox * blend_radius_abs_rel_
void movementTypeChanged()
QComboBox * approach_type_
QWidget * feed_rate_widget_
void speedAbsRel(const int index)
QCheckBox * movement_type_modify_
void modifyApproachType()
QDoubleSpinBox * feed_rate_
ModifyPoses(QVBoxLayout *layout, const unsigned mode)
QCheckBox * polygon_start_modify_
QCheckBox * laser_power_modify_
QCheckBox * feed_rate_modify_
QWidget * polygon_end_widget_
void feedRateAbsRel(const int index)
void poseAbsRel(const int index)
QVBoxLayout * getLayout()
void blendRadiusAbsRel(const int index)
void setEnabled(bool enabled)
QDialogButtonBox * button_box_
void modifyPolygonStart()
QWidget * polygon_start_widget_
void laserPowerAbsRel(const int index)
QWidget * movement_type_widget_
QCheckBox * blend_radius_modify_
QWidget * blend_radius_widget_
QComboBox * laser_power_abs_rel_
QComboBox * speed_abs_rel_
QCheckBox * speed_modify_
QComboBox * pose_abs_rel_