DefaultWidgetDescriptions.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package RobotAPI::RobotUnit
17 * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18 * @date 2017
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
25#include <set>
26#include <string>
27
28#include <VirtualRobot/VirtualRobot.h>
29
30#include <ArmarXGui/interface/WidgetDescription.h>
32
34{
35 StringComboBoxPtr makeStringSelectionComboBox(std::string name,
36 std::vector<std::string> options);
37
38 StringComboBoxPtr makeStringSelectionComboBox(std::string name,
39 std::vector<std::string> options,
40 const std::set<std::string>& preferredSet);
41
42 inline StringComboBoxPtr
44 std::vector<std::string> options,
45 const std::initializer_list<std::string>& preferredSet)
46 {
48 std::move(name), std::move(options), std::set<std::string>{preferredSet});
49 }
50
51 StringComboBoxPtr makeStringSelectionComboBox(std::string name,
52 std::vector<std::string> options,
53 const std::string& mostPreferred);
54
55 StringComboBoxPtr makeStringSelectionComboBox(std::string name,
56 std::vector<std::string> options,
57 const std::set<std::string>& preferredSet,
58 const std::string& mostPreferred);
59
60 StringComboBoxPtr makeStringSelectionComboBox(std::string name,
61 std::vector<std::string> options,
62 const std::string& mostPreferred,
63 const std::set<std::string>& preferredSet);
64
65 StringComboBoxPtr makeRNSComboBox(const VirtualRobot::RobotPtr& robot,
66 std::string name = "RobotNodeSet",
67 const std::set<std::string>& preferredSet = {},
68 const std::string& mostPreferred = "");
69
70 StringComboBoxPtr makeRobotNodeComboBox(const VirtualRobot::RobotPtr& robot,
71 std::string name = "RobotNode",
72 const std::set<std::string>& preferredSet = {},
73 const std::string& mostPreferred = "");
74} // namespace armarx::WidgetDescription
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
StringComboBoxPtr makeRNSComboBox(const VirtualRobot::RobotPtr &robot, std::string name, const std::set< std::string > &preferredSet, const std::string &mostPreferred)
StringComboBoxPtr makeRobotNodeComboBox(const VirtualRobot::RobotPtr &robot, std::string name, const std::set< std::string > &preferredSet, const std::string &mostPreferred)
StringComboBoxPtr makeStringSelectionComboBox(std::string name, std::vector< std::string > options)