PriorEditorConfigDialog.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::MemoryX::PriorMemoryEditorPlugin
17 * @author Alexey Kozlov (kozlov at kit dot edu)
18 * @date 2012
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22 
23 #pragma once
24 
25 #include <RobotAPI/interface/core/RobotState.h>
28 
29 #include <QFileDialog>
30 #include <QDialog>
31 
32 
33 namespace Ui
34 {
35  class PriorEditorConfigDialog;
36 }
37 
38 namespace memoryx
39 {
40  class PriorEditorConfigDialog : public QDialog,
42  {
43  Q_OBJECT
44 
45  public:
46  explicit PriorEditorConfigDialog(armarx::IceManagerPtr iceManager, QWidget* parent = 0);
47  ~PriorEditorConfigDialog() override;
48 
49  public slots:
50  void modelFileSelected();
51  private:
52  Ui::PriorEditorConfigDialog* ui;
53  QFileDialog* fileDialog;
55  friend class PriorEditorController;
56  std::string uuid;
57  // ManagedIceObject interface
58  protected:
59  void onInitComponent() override
60  {
61  proxyFinder->setIceManager(getIceManager());
62  }
63  void onConnectComponent() override
64  {
65  }
66  std::string getDefaultName() const override
67  {
68  return "PriorEditorConfigDialog" + uuid;
69  }
70  };
71 }
72 
armarx::ManagedIceObject::getIceManager
IceManagerPtr getIceManager() const
Returns the IceManager.
Definition: ManagedIceObject.cpp:353
memoryx::PriorEditorConfigDialog::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: PriorEditorConfigDialog.h:63
memoryx::PriorEditorConfigDialog::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: PriorEditorConfigDialog.h:59
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
memoryx::PriorEditorConfigDialog::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: PriorEditorConfigDialog.h:66
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:54
ManagedIceObject.h
IceProxyFinder.h
memoryx::PriorEditorConfigDialog
Definition: PriorEditorConfigDialog.h:40
armarx::ManagedIceObject
The ManagedIceObject is the base class for all ArmarX objects.
Definition: ManagedIceObject.h:163
memoryx::PriorEditorConfigDialog::modelFileSelected
void modelFileSelected()
Definition: PriorEditorConfigDialog.cpp:55
IceUtil::Handle< IceManager >
armarx::IceProxyFinder
Definition: StatechartViewerController.h:51
memoryx::PriorEditorConfigDialog::~PriorEditorConfigDialog
~PriorEditorConfigDialog() override
Definition: PriorEditorConfigDialog.cpp:50
memoryx::PriorEditorController
This widget allows to view and edit data entries in the prior memory.
Definition: PriorMemoryEditorPlugin.h:120
memoryx::PriorEditorConfigDialog::PriorEditorConfigDialog
PriorEditorConfigDialog(armarx::IceManagerPtr iceManager, QWidget *parent=0)
Definition: PriorEditorConfigDialog.cpp:30