MMMPlayerConfigDialog.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 Lesser General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * ArmarX is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * @package ArmarX::
18 * @author Nikolaus Vahrenkamp ( vahrenkamp at kit dot edu)
19 * @date 2012
20 * @copyright http://www.gnu.org/licenses/gpl.txt
21 * GNU General Public License
22 */
23 
24 #pragma once
25 
28 
29 #include <QFileDialog>
30 #include <QDialog>
31 
32 namespace Ui
33 {
34  class MMMPlayerConfigDialog;
35 }
36 
37 namespace armarx
38 {
40  public QDialog, virtual public ManagedIceObject
41  {
42  Q_OBJECT
43  friend class MMMPlayerWidget;
44 
45  public:
46  explicit MMMPlayerConfigDialog(QWidget* parent = 0);
47  ~MMMPlayerConfigDialog() override;
48 
49  // inherited from ManagedIceObject
50  std::string getDefaultName() const override
51  {
52  return "MMMPlayerConfigDialog" + uuid;
53  }
54 
55  void onInitComponent() override;
56  void onConnectComponent() override;
57  void onExitComponent() override;
58 
59  private slots:
60  void verifyConfiguration();
61  void reject() override;
62 
63 
64  private:
65  Ui::MMMPlayerConfigDialog* ui;
66 
67  IceProxyFinderBase* kinematicUnitComponentProxyFinder;
68  IceProxyFinderBase* mmmPlayerComponentProxyFinder;
69  IceProxyFinderBase* trajPlayerComponentProxyFinder;
70 
71 
72  std::string kinematicTopicName;
73 
74  bool needtoCreate;
75 
76  std::string uuid;
77 
78  };
79 }
80 
armarx::MMMPlayerConfigDialog::MMMPlayerConfigDialog
MMMPlayerConfigDialog(QWidget *parent=0)
Definition: MMMPlayerConfigDialog.cpp:41
armarx::IceProxyFinderBase
The IceProxyFinderBase class provides a convenient way to query online proxies in the ice network,...
Definition: IceProxyFinder.h:53
armarx::MMMPlayerConfigDialog::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: MMMPlayerConfigDialog.cpp:72
armarx::MMMPlayerConfigDialog::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: MMMPlayerConfigDialog.h:50
armarx::MMMPlayerConfigDialog::~MMMPlayerConfigDialog
~MMMPlayerConfigDialog() override
Definition: MMMPlayerConfigDialog.cpp:83
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:54
ManagedIceObject.h
IceProxyFinder.h
armarx::ManagedIceObject
The ManagedIceObject is the base class for all ArmarX objects.
Definition: ManagedIceObject.h:163
armarx::MMMPlayerConfigDialog::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: MMMPlayerConfigDialog.cpp:65
armarx::MMMPlayerConfigDialog::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: MMMPlayerConfigDialog.cpp:77
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::MMMPlayerWidget
With this widget the MMMPlayer can be controlled.
Definition: MMMPlayerGuiPlugin.h:87
armarx::MMMPlayerConfigDialog
Definition: MMMPlayerConfigDialog.h:39