Main Page
Namespaces
Classes
Files
File List
File Members
src
params_submenu.cpp
Go to the documentation of this file.
1
#include <
choreo_gui/params_submenu.h
>
2
#include <ui_params_submenu.h>
3
4
choreo_gui::ParamsSubmenu::ParamsSubmenu
(QWidget* parent) : QWidget(parent)
5
{
6
ui_
=
new
Ui::ParamsSubmenu();
7
ui_
->setupUi(
this
);
8
9
// Set up option menus
10
// ModelInput
11
model_input_widget_
=
new
ModelInputConfigWidget
(choreo_msgs::ModelInputParameters());
12
connect(
ui_
->pushbutton_model_input, SIGNAL(clicked()),
model_input_widget_
, SLOT(show()));
13
14
// Path Input
15
task_sequence_input_widget_
=
new
TaskSequenceInputConfigWidget
(choreo_msgs::TaskSequenceInputParameters());
16
connect(
ui_
->pushbutton_task_sequence_input, SIGNAL(clicked()),
task_sequence_input_widget_
, SLOT(show()));
17
18
// Robot Input
19
robot_input_widget_
=
new
RobotInputConfigWidget
(choreo_msgs::RobotInputParameters());
20
connect(
ui_
->pushbutton_robot_input, SIGNAL(clicked()),
robot_input_widget_
, SLOT(show()));
21
22
// Output Path Input
23
output_save_dir_input_widget_
=
new
OutputSaveDirInputConfigWidget
(choreo_msgs::OutputSaveDirInputParameters());
24
connect(
ui_
->pushbutton_output_save_dir_input, SIGNAL(clicked()),
output_save_dir_input_widget_
, SLOT(show()));
25
26
// Save Request Connection
27
connect(
model_input_widget_
, SIGNAL(parameters_save_requested()),
this
, SIGNAL(
saveRequested
()));
28
connect(
task_sequence_input_widget_
, SIGNAL(parameters_save_requested()),
this
, SIGNAL(
saveRequested
()));
29
connect(
robot_input_widget_
, SIGNAL(parameters_save_requested()),
this
, SIGNAL(
saveRequested
()));
30
connect(
output_save_dir_input_widget_
, SIGNAL(parameters_save_requested()),
this
, SIGNAL(
saveRequested
()));
31
32
// Accept Request Connection
33
connect(
model_input_widget_
, SIGNAL(parameters_changed()),
this
, SIGNAL(
acceptRequested
()));
34
connect(
task_sequence_input_widget_
, SIGNAL(parameters_changed()),
this
, SIGNAL(
acceptRequested
()));
35
connect(
robot_input_widget_
, SIGNAL(parameters_changed()),
this
, SIGNAL(
acceptRequested
()));
36
connect(
output_save_dir_input_widget_
, SIGNAL(parameters_changed()),
this
, SIGNAL(
acceptRequested
()));
37
}
38
39
void
choreo_gui::ParamsSubmenu::showOutputSaveDirInputConfigWidget
(
bool
enable)
40
{
41
if
(enable)
42
{
43
output_save_dir_input_widget_
->
show
();
44
}
45
else
46
{
47
output_save_dir_input_widget_
->hide();
48
}
49
}
50
51
const
choreo_msgs::ModelInputParameters&
choreo_gui::ParamsSubmenu::modelInputParams
()
const
52
{
53
return
model_input_widget_
->
params
();
54
}
55
56
void
choreo_gui::ParamsSubmenu::setModelInputParams
(
const
choreo_msgs::ModelInputParameters& params)
57
{
58
model_input_widget_
->
params
() = params;
59
model_input_widget_
->
update_display_fields
();
60
}
61
62
const
choreo_msgs::TaskSequenceInputParameters&
choreo_gui::ParamsSubmenu::taskSequenceInputParams
()
const
63
{
64
return
task_sequence_input_widget_
->
params
();
65
}
66
67
void
choreo_gui::ParamsSubmenu::setTaskSequenceInputParams
(
const
choreo_msgs::TaskSequenceInputParameters& params)
68
{
69
task_sequence_input_widget_
->
params
() = params;
70
task_sequence_input_widget_
->
update_display_fields
();
71
}
72
73
const
choreo_msgs::RobotInputParameters&
choreo_gui::ParamsSubmenu::robotInputParams
()
const
74
{
75
return
robot_input_widget_
->
params
();
76
}
77
78
void
choreo_gui::ParamsSubmenu::setRobotInputParams
(
const
choreo_msgs::RobotInputParameters& params)
79
{
80
robot_input_widget_
->
params
() = params;
81
robot_input_widget_
->
update_display_fields
();
82
}
83
84
const
choreo_msgs::OutputSaveDirInputParameters&
choreo_gui::ParamsSubmenu::outputSaveDirInputParams
()
const
85
{
86
return
output_save_dir_input_widget_
->
params
();
87
}
88
89
void
choreo_gui::ParamsSubmenu::setOutputSaveDirInputParams
(
const
choreo_msgs::OutputSaveDirInputParameters& params)
90
{
91
output_save_dir_input_widget_
->
params
() = params;
92
output_save_dir_input_widget_
->
update_display_fields
();
93
}
choreo_gui::ParamsSubmenu::output_save_dir_input_widget_
OutputSaveDirInputConfigWidget * output_save_dir_input_widget_
Definition:
params_submenu.h:53
choreo_gui::ParamsSubmenu::setModelInputParams
void setModelInputParams(const choreo_msgs::ModelInputParameters ¶ms)
Definition:
params_submenu.cpp:56
choreo_gui::ParamsSubmenu::saveRequested
void saveRequested()
params_submenu.h
choreo_gui::ModelInputConfigWidget
Definition:
model_input_config_widget.h:20
choreo_gui::ParamsSubmenu::task_sequence_input_widget_
TaskSequenceInputConfigWidget * task_sequence_input_widget_
Definition:
params_submenu.h:51
choreo_gui::RobotInputConfigWidget::update_display_fields
virtual void update_display_fields()
Reads the internal data structure to update the fields of the GUI.
Definition:
robot_input_config_widget.cpp:33
choreo_gui::TaskSequenceInputConfigWidget
Definition:
task_sequence_input_config_widget.h:19
choreo_gui::ParamsSubmenu::showOutputSaveDirInputConfigWidget
void showOutputSaveDirInputConfigWidget(bool enable)
Definition:
params_submenu.cpp:39
choreo_gui::ParamsSubmenu::outputSaveDirInputParams
const choreo_msgs::OutputSaveDirInputParameters & outputSaveDirInputParams() const
Definition:
params_submenu.cpp:84
choreo_gui::ModelInputConfigWidget::update_display_fields
virtual void update_display_fields()
Reads the internal data structure to update the fields of the GUI.
Definition:
model_input_config_widget.cpp:34
choreo_gui::ParameterWindowBase::show
virtual void show()
Updates GUI parameters and shows the main window.
Definition:
parameter_window_base.cpp:5
choreo_gui::ModelInputConfigWidget::params
choreo_msgs::ModelInputParameters & params()
Definition:
model_input_config_widget.h:25
choreo_gui::ParamsSubmenu::taskSequenceInputParams
const choreo_msgs::TaskSequenceInputParameters & taskSequenceInputParams() const
Definition:
params_submenu.cpp:62
choreo_gui::ParamsSubmenu::robotInputParams
const choreo_msgs::RobotInputParameters & robotInputParams() const
Definition:
params_submenu.cpp:73
choreo_gui::RobotInputConfigWidget::params
choreo_msgs::RobotInputParameters & params()
Definition:
robot_input_config_widget.h:24
choreo_gui::ParamsSubmenu::setRobotInputParams
void setRobotInputParams(const choreo_msgs::RobotInputParameters ¶ms)
Definition:
params_submenu.cpp:78
choreo_gui::OutputSaveDirInputConfigWidget::params
choreo_msgs::OutputSaveDirInputParameters & params()
Definition:
output_save_dir_input_config_widget.h:26
choreo_gui::OutputSaveDirInputConfigWidget
Definition:
output_save_dir_input_config_widget.h:19
choreo_gui::OutputSaveDirInputConfigWidget::update_display_fields
virtual void update_display_fields()
Reads the internal data structure to update the fields of the GUI.
Definition:
output_save_dir_input_config_widget.cpp:45
choreo_gui::ParamsSubmenu::acceptRequested
void acceptRequested()
choreo_gui::ParamsSubmenu::robot_input_widget_
RobotInputConfigWidget * robot_input_widget_
Definition:
params_submenu.h:52
choreo_gui::ParamsSubmenu::setTaskSequenceInputParams
void setTaskSequenceInputParams(const choreo_msgs::TaskSequenceInputParameters ¶ms)
Definition:
params_submenu.cpp:67
choreo_gui::ParamsSubmenu::model_input_widget_
ModelInputConfigWidget * model_input_widget_
Definition:
params_submenu.h:50
choreo_gui::TaskSequenceInputConfigWidget::params
choreo_msgs::TaskSequenceInputParameters & params()
Definition:
task_sequence_input_config_widget.h:24
choreo_gui::TaskSequenceInputConfigWidget::update_display_fields
virtual void update_display_fields()
Reads the internal data structure to update the fields of the GUI.
Definition:
task_sequence_input_config_widget.cpp:25
choreo_gui::RobotInputConfigWidget
Definition:
robot_input_config_widget.h:19
choreo_gui::ParamsSubmenu::setOutputSaveDirInputParams
void setOutputSaveDirInputParams(const choreo_msgs::OutputSaveDirInputParameters ¶ms)
Definition:
params_submenu.cpp:89
choreo_gui::ParamsSubmenu::ParamsSubmenu
ParamsSubmenu(QWidget *parent=0)
Definition:
params_submenu.cpp:4
choreo_gui::ParamsSubmenu::modelInputParams
const choreo_msgs::ModelInputParameters & modelInputParams() const
Definition:
params_submenu.cpp:51
choreo_gui::ParamsSubmenu::ui_
Ui::ParamsSubmenu * ui_
Definition:
params_submenu.h:47
choreo_gui
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:58:56