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 
34 
35 class QListWidgetItem;
36 
37 namespace armarx::Ui
38 {
39  class EditStatechartGroupDialog;
40 }
41 
42 namespace armarx
43 {
44  class EditStatechartGroupDialog : public QDialog
45  {
46  Q_OBJECT
47 
48  public:
50  explicit EditStatechartGroupDialog(EditMode editMode, QString groupName, ArmarXPackageToolInterfacePtr packageTool, VariantInfoPtr variantInfo,
51  QList<QString> selectedProxies, bool generateContext,
52  const StatechartProfilesPtr& statechartProfiles, const QMap<QString, QString>& statechartGroupConfigurations = QMap<QString, QString>(),
53  const QString& description = "", StatechartGroupPtr group = StatechartGroupPtr(), QWidget* parent = 0);
54  ~EditStatechartGroupDialog() override;
56  QString getGroupName() const;
57  QString getGroupPath() const;
58  QString getGroupDescription() const;
59  QString getPackageName() const;
60  QString getPackagePath() const;
61  QList<QString> getProxies() const;
62  bool contextGenerationEnabled() const;
63  QMap<QString, QString> getConfigurations() const;
64 
65  public slots:
66  void requestCheckPackagePath(QString path);
67  void selectPackagePath();
68  void checkPackagePath();
69  void updateProxyListEnabled(int state);
70  void updateConfigurationTextField(QString profileText);
73  void updateDependencies(QModelIndex index1 = QModelIndex(), QModelIndex index2 = QModelIndex());
74 
75  private slots:
76  void on_pushButton_clicked();
77 
78  void on_btnShowPackageError_clicked();
79 
80  private:
81  Ui::EditStatechartGroupDialog* ui;
83  QTimer* timer;
84  EditMode editMode;
85  StatechartProfilesPtr statechartProfiles;
86  QMap<QString, QString> configurations;
87  VariantInfoPtr variantInfo;
88  StatechartGroupPtr group;
89  };
90 
91 
92 }
armarx::EditStatechartGroupDialog::requestCheckPackagePath
void requestCheckPackagePath(QString path)
Definition: EditStatechartGroupDialog.cpp:279
armarx::Ui
Definition: GuiUseCaseSelector.h:33
StatechartGroupDefs.h
armarx::EditStatechartGroupDialog::selectPackagePath
void selectPackagePath()
Definition: EditStatechartGroupDialog.cpp:285
armarx::EditStatechartGroupDialog::EditGroup
@ EditGroup
Definition: EditStatechartGroupDialog.h:49
armarx::EditStatechartGroupDialog::getProxies
QList< QString > getProxies() const
Definition: EditStatechartGroupDialog.cpp:252
armarx::EditStatechartGroupDialog::storeConfigurationText
void storeConfigurationText()
Definition: EditStatechartGroupDialog.cpp:362
armarx::EditStatechartGroupDialog::getPackagePath
QString getPackagePath() const
Definition: EditStatechartGroupDialog.cpp:230
armarx::ArmarXPackageToolInterfacePtr
std::shared_ptr< ArmarXPackageToolInterface > ArmarXPackageToolInterfacePtr
Definition: ArmarXPackageToolInterface.h:55
index
uint8_t index
Definition: EtherCATFrame.h:59
armarx::EditStatechartGroupDialog::updateDependencies
void updateDependencies(QModelIndex index1=QModelIndex(), QModelIndex index2=QModelIndex())
Definition: EditStatechartGroupDialog.cpp:376
armarx::StatechartProfilesPtr
std::shared_ptr< StatechartProfiles > StatechartProfilesPtr
Definition: StatechartProfiles.h:35
ArmarXPackageToolInterface.h
armarx::EditStatechartGroupDialog
Definition: EditStatechartGroupDialog.h:44
armarx::EditStatechartGroupDialog::~EditStatechartGroupDialog
~EditStatechartGroupDialog() override
Definition: EditStatechartGroupDialog.cpp:159
StatechartProfiles.h
armarx::EditStatechartGroupDialog::updateProxyListEnabled
void updateProxyListEnabled(int state)
Definition: EditStatechartGroupDialog.cpp:346
armarx::EditStatechartGroupDialog::checkPackagePath
void checkPackagePath()
Definition: EditStatechartGroupDialog.cpp:311
armarx::EditStatechartGroupDialog::getConfigurations
QMap< QString, QString > getConfigurations() const
Definition: EditStatechartGroupDialog.cpp:274
armarx::EditStatechartGroupDialog::EditMode
EditMode
Definition: EditStatechartGroupDialog.h:49
armarx::EditStatechartGroupDialog::getGroupDescription
QString getGroupDescription() const
Definition: EditStatechartGroupDialog.cpp:203
armarx::StatechartGroupPtr
std::shared_ptr< StatechartGroup > StatechartGroupPtr
Definition: StatechartGroupDefs.h:34
armarx::EditStatechartGroupDialog::getGroupPath
QString getGroupPath() const
Definition: EditStatechartGroupDialog.cpp:174
armarx::EditStatechartGroupDialog::contextGenerationEnabled
bool contextGenerationEnabled() const
Definition: EditStatechartGroupDialog.cpp:269
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:46
armarx::EditStatechartGroupDialog::NewGroup
@ NewGroup
Definition: EditStatechartGroupDialog.h:49
armarx::EditStatechartGroupDialog::updateConfigurationTextField
void updateConfigurationTextField(QString profileText)
Definition: EditStatechartGroupDialog.cpp:351
armarx::EditStatechartGroupDialog::getGroupName
QString getGroupName() const
Definition: EditStatechartGroupDialog.cpp:169
armarx::VariantInfoPtr
std::shared_ptr< VariantInfo > VariantInfoPtr
Definition: VariantInfo.h:39
armarx::EditStatechartGroupDialog::getPackageName
QString getPackageName() const
Definition: EditStatechartGroupDialog.cpp:208
armarx::EditStatechartGroupDialog::updateConfigurationContent
void updateConfigurationContent(int index)
Definition: EditStatechartGroupDialog.cpp:370
armarx::EditStatechartGroupDialog::getPackageTool
ArmarXPackageToolInterfacePtr getPackageTool() const
Definition: EditStatechartGroupDialog.cpp:164
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
VariantInfo.h