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 
36 class QListWidgetItem;
37 
38 namespace armarx::Ui
39 {
40  class EditStatechartGroupDialog;
41 }
42 
43 namespace armarx
44 {
45  class EditStatechartGroupDialog : public QDialog
46  {
47  Q_OBJECT
48 
49  public:
50  enum EditMode
51  {
54  };
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);
68  ~EditStatechartGroupDialog() override;
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
armarx::EditStatechartGroupDialog::requestCheckPackagePath
void requestCheckPackagePath(QString path)
Definition: EditStatechartGroupDialog.cpp:323
armarx::Ui
Definition: GuiUseCaseSelector.h:33
StatechartGroupDefs.h
armarx::EditStatechartGroupDialog::selectPackagePath
void selectPackagePath()
Definition: EditStatechartGroupDialog.cpp:329
armarx::EditStatechartGroupDialog::EditGroup
@ EditGroup
Definition: EditStatechartGroupDialog.h:53
armarx::EditStatechartGroupDialog::getProxies
QList< QString > getProxies() const
Definition: EditStatechartGroupDialog.cpp:292
armarx::EditStatechartGroupDialog::storeConfigurationText
void storeConfigurationText()
Definition: EditStatechartGroupDialog.cpp:409
armarx::EditStatechartGroupDialog::getPackagePath
QString getPackagePath() const
Definition: EditStatechartGroupDialog.cpp:269
armarx::ArmarXPackageToolInterfacePtr
std::shared_ptr< ArmarXPackageToolInterface > ArmarXPackageToolInterfacePtr
Definition: ArmarXPackageToolInterface.h:71
index
uint8_t index
Definition: EtherCATFrame.h:59
armarx::EditStatechartGroupDialog::updateDependencies
void updateDependencies(QModelIndex index1=QModelIndex(), QModelIndex index2=QModelIndex())
Definition: EditStatechartGroupDialog.cpp:422
armarx::StatechartProfilesPtr
std::shared_ptr< StatechartProfiles > StatechartProfilesPtr
Definition: StatechartProfiles.h:36
ArmarXPackageToolInterface.h
armarx::EditStatechartGroupDialog
Definition: EditStatechartGroupDialog.h:45
armarx::EditStatechartGroupDialog::~EditStatechartGroupDialog
~EditStatechartGroupDialog() override
Definition: EditStatechartGroupDialog.cpp:191
StatechartProfiles.h
armarx::EditStatechartGroupDialog::updateProxyListEnabled
void updateProxyListEnabled(int state)
Definition: EditStatechartGroupDialog.cpp:391
armarx::EditStatechartGroupDialog::checkPackagePath
void checkPackagePath()
Definition: EditStatechartGroupDialog.cpp:356
armarx::EditStatechartGroupDialog::getConfigurations
QMap< QString, QString > getConfigurations() const
Definition: EditStatechartGroupDialog.cpp:317
armarx::EditStatechartGroupDialog::EditMode
EditMode
Definition: EditStatechartGroupDialog.h:50
armarx::EditStatechartGroupDialog::getGroupDescription
QString getGroupDescription() const
Definition: EditStatechartGroupDialog.cpp:240
armarx::StatechartGroupPtr
std::shared_ptr< StatechartGroup > StatechartGroupPtr
Definition: StatechartGroupDefs.h:34
armarx::EditStatechartGroupDialog::getGroupPath
QString getGroupPath() const
Definition: EditStatechartGroupDialog.cpp:209
armarx::EditStatechartGroupDialog::contextGenerationEnabled
bool contextGenerationEnabled() const
Definition: EditStatechartGroupDialog.cpp:311
armarx::EditStatechartGroupDialog::EditStatechartGroupDialog
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)
Definition: EditStatechartGroupDialog.cpp:43
armarx::EditStatechartGroupDialog::NewGroup
@ NewGroup
Definition: EditStatechartGroupDialog.h:52
armarx::EditStatechartGroupDialog::updateConfigurationTextField
void updateConfigurationTextField(QString profileText)
Definition: EditStatechartGroupDialog.cpp:397
armarx::EditStatechartGroupDialog::getGroupName
QString getGroupName() const
Definition: EditStatechartGroupDialog.cpp:203
armarx::VariantInfoPtr
std::shared_ptr< VariantInfo > VariantInfoPtr
Definition: VariantInfo.h:39
armarx::EditStatechartGroupDialog::getPackageName
QString getPackageName() const
Definition: EditStatechartGroupDialog.cpp:246
armarx::EditStatechartGroupDialog::updateConfigurationContent
void updateConfigurationContent(int index)
Definition: EditStatechartGroupDialog.cpp:417
armarx::EditStatechartGroupDialog::getPackageTool
ArmarXPackageToolInterfacePtr getPackageTool() const
Definition: EditStatechartGroupDialog.cpp:197
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
VariantInfo.h