gepetto-viewer 6.0.0
An user-friendly Graphical Interface
Loading...
Searching...
No Matches
dialogloadenvironment.hh
Go to the documentation of this file.
1// Copyright (c) 2015-2018, LAAS-CNRS
2// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3//
4// This file is part of gepetto-viewer.
5// gepetto-viewer is free software: you can redistribute it
6// and/or modify it under the terms of the GNU Lesser General Public
7// License as published by the Free Software Foundation, either version
8// 3 of the License, or (at your option) any later version.
9//
10// gepetto-viewer is distributed in the hope that it will be
11// useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13// General Lesser Public License for more details. You should have
14// received a copy of the GNU Lesser General Public License along with
15// gepetto-viewer. If not, see <http://www.gnu.org/licenses/>.
16
17#ifndef GEPETTO_GUI_DIALOGLOADENVIRONMENT_HH
18#define GEPETTO_GUI_DIALOGLOADENVIRONMENT_HH
19
20#include <QComboBox>
21#include <QDialog>
22
23namespace Ui {
24class DialogLoadEnvironment;
25}
26
27namespace gepetto {
28namespace gui {
29class DialogLoadEnvironment : public QDialog {
30 Q_OBJECT
31
32 public:
33 explicit DialogLoadEnvironment(QWidget *parent = 0);
35
39 EnvironmentDefinition(QString name, QString envName, QString package,
40 QString urdfFilename, QString urdfSuffix,
41 QString srdfSuffix)
42 : name_(name),
43 envName_(envName),
44 urdfFilename_(urdfFilename),
45 package_(package),
46 urdfSuf_(urdfSuffix),
47 srdfSuf_(srdfSuffix) {}
48 };
49
50 static void addEnvironmentDefinition(QString name, QString envName,
51 QString package, QString urdfFilename,
52 QString urdfSuffix, QString srdfSuffix);
53 static QList<EnvironmentDefinition> getEnvironmentDefinitions();
54
56
57 private slots:
58 void accept();
59 void envSelect(int index);
60
61 private:
62 ::Ui::DialogLoadEnvironment *ui_;
63 QComboBox *defs_;
64 EnvironmentDefinition selected_;
65
66 static QList<EnvironmentDefinition> definitions;
67};
68} // namespace gui
69} // namespace gepetto
70
72
73#endif // GEPETTO_GUI_DIALOGLOADENVIRONMENT_HH
Definition dialogloadenvironment.hh:29
static void addEnvironmentDefinition(QString name, QString envName, QString package, QString urdfFilename, QString urdfSuffix, QString srdfSuffix)
EnvironmentDefinition getSelectedDescription()
Definition dialogloadenvironment.hh:55
DialogLoadEnvironment(QWidget *parent=0)
static QList< EnvironmentDefinition > getEnvironmentDefinitions()
Definition dialogloadenvironment.hh:23
Definition action-search-bar.hh:27
QString envName_
Definition dialogloadenvironment.hh:37
QString name_
Definition dialogloadenvironment.hh:37
QString urdfFilename_
Definition dialogloadenvironment.hh:37
QString urdfSuf_
Definition dialogloadenvironment.hh:37
QString srdfSuf_
Definition dialogloadenvironment.hh:37
EnvironmentDefinition(QString name, QString envName, QString package, QString urdfFilename, QString urdfSuffix, QString srdfSuffix)
Definition dialogloadenvironment.hh:39
EnvironmentDefinition()
Definition dialogloadenvironment.hh:38
QString package_
Definition dialogloadenvironment.hh:37