LoadSnapshotDialog.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package MemoryX::gui-plugins::SceneEditor
19  * @date 2015
20  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
21  * GNU General Public License
22  */
23 
24 #pragma once
25 
26 #include <QDialog>
27 
28 #include "../../controller/Controller.h"
29 
30 namespace Ui
31 {
32  class LoadSnapshotDialog;
33 }
34 
35 namespace gui::dialog
36 {
37  class LoadSnapshotDialog : public QDialog
38  {
39  Q_OBJECT
40 
41  public:
42  /**
43  * Constructor
44  *
45  * Creates a new Instance of this class.
46  *
47  * @param control Pointer to Main Controller
48  * @param parent Pointer to parent Widget
49  */
50  explicit LoadSnapshotDialog(controller::ControllerPtr control, QWidget* parent = 0);
51 
52  /**
53  * Destructor.
54  *
55  */
56  ~LoadSnapshotDialog() override;
57 
58  /**
59  * Translates all translatable strings in this dialog.
60  */
61  void retranslate();
62 
63  private Q_SLOTS:
64  void accepted();
65 
66  private:
67  void showEvent(QShowEvent*) override;
68  Ui::LoadSnapshotDialog* ui;
70  };
71 }
gui::dialog::LoadSnapshotDialog::retranslate
void retranslate()
Translates all translatable strings in this dialog.
Definition: LoadSnapshotDialog.cpp:97
gui::dialog::LoadSnapshotDialog
Definition: LoadSnapshotDialog.h:37
gui::dialog::LoadSnapshotDialog::~LoadSnapshotDialog
~LoadSnapshotDialog() override
Destructor.
Definition: LoadSnapshotDialog.cpp:39
gui::dialog
Definition: GroupExplorerDialog.h:41
controller::ControllerWeakPtr
std::weak_ptr< Controller > ControllerWeakPtr
Definition: ClassDefinitions.h:42
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:58
controller::ControllerPtr
std::shared_ptr< Controller > ControllerPtr
Definition: ClassDefinitions.h:41
gui::dialog::LoadSnapshotDialog::LoadSnapshotDialog
LoadSnapshotDialog(controller::ControllerPtr control, QWidget *parent=0)
Constructor.
Definition: LoadSnapshotDialog.cpp:30
control
This file is part of ArmarX.