EditStatechartGroupDialog.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 ArmarX::
17* @author Mirko Waechter ( mirko.waechter at kit dot edu)
18* @date 2014
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#pragma once
24
25#include <QDialog>
26#include <QList>
27#include <QMap>
28#include <QModelIndex>
29
33
35
36class QListWidgetItem;
37
38namespace armarx::Ui
39{
40 class EditStatechartGroupDialog;
41}
42
43namespace armarx
44{
45 class EditStatechartGroupDialog : public QDialog
46 {
47 Q_OBJECT
48
49 public:
55
57 EditMode editMode,
58 QString groupName,
60 VariantInfoPtr variantInfo,
61 QList<QString> selectedProxies,
62 bool generateContext,
63 const StatechartProfilesPtr& statechartProfiles,
64 const QMap<QString, QString>& statechartGroupConfigurations = QMap<QString, QString>(),
65 const QString& description = "",
67 QWidget* parent = 0);
70 QString getGroupName() const;
71 QString getGroupPath() const;
72 QString getGroupDescription() const;
73 QString getPackageName() const;
74 QString getPackagePath() const;
75 QList<QString> getProxies() const;
76 bool contextGenerationEnabled() const;
77 QMap<QString, QString> getConfigurations() const;
78
79 public slots:
80 void requestCheckPackagePath(QString path);
81 void selectPackagePath();
82 void checkPackagePath();
83 void updateProxyListEnabled(int state);
84 void updateConfigurationTextField(QString profileText);
87 void updateDependencies(QModelIndex index1 = QModelIndex(),
88 QModelIndex index2 = QModelIndex());
89
90 private slots:
91 void on_pushButton_clicked();
92
93 void on_btnShowPackageError_clicked();
94
95 private:
96 Ui::EditStatechartGroupDialog* ui;
98 QTimer* timer;
99 EditMode editMode;
100 StatechartProfilesPtr statechartProfiles;
101 QMap<QString, QString> configurations;
102 VariantInfoPtr variantInfo;
103 StatechartGroupPtr group;
104 };
105
106
107} // namespace armarx
uint8_t index
QMap< QString, QString > getConfigurations() const
ArmarXPackageToolInterfacePtr getPackageTool() const
EditStatechartGroupDialog(EditMode editMode, QString groupName, ArmarXPackageToolInterfacePtr packageTool, VariantInfoPtr variantInfo, QList< QString > selectedProxies, bool generateContext, const StatechartProfilesPtr &statechartProfiles, const QMap< QString, QString > &statechartGroupConfigurations=QMap< QString, QString >(), const QString &description="", StatechartGroupPtr group=StatechartGroupPtr(), QWidget *parent=0)
void updateDependencies(QModelIndex index1=QModelIndex(), QModelIndex index2=QModelIndex())
void updateConfigurationTextField(QString profileText)
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< StatechartProfiles > StatechartProfilesPtr
std::shared_ptr< StatechartGroup > StatechartGroupPtr
std::shared_ptr< VariantInfo > VariantInfoPtr
Definition VariantInfo.h:39
std::shared_ptr< ArmarXPackageToolInterface > ArmarXPackageToolInterfacePtr