SaveSnapshotDialog.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
SaveSnapshotDialog;
33
}
34
35
namespace
gui::dialog
36
{
37
class
SaveSnapshotDialog
:
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
SaveSnapshotDialog
(
controller::ControllerPtr
control
, QWidget* parent = 0);
51
52
/**
53
* Destructor.
54
*
55
*/
56
~SaveSnapshotDialog
()
override
;
57
58
/**
59
* Translates all translatable strings in this dialog.
60
*/
61
void
retranslate
();
62
63
private
:
64
Ui::SaveSnapshotDialog* ui;
65
void
connectSlots();
66
void
showEvent(QShowEvent*)
override
;
67
controller::ControllerWeakPtr
control
;
68
bool
newSnapshot;
69
bool
allObjects;
70
71
private
Q_SLOTS:
72
void
enableSaveNewSnapshot(
bool
enabled
);
73
void
enableReplaceSnapshot(
bool
enabled
);
74
void
enableSaveAllObjects(
bool
enabled
);
75
void
enableSaveGroups(
bool
enabled
);
76
void
accept()
override
;
77
void
checkOkButtonStatus();
78
};
79
}
gui::dialog::SaveSnapshotDialog
Definition:
SaveSnapshotDialog.h:37
gui::dialog
Definition:
GroupExplorerDialog.h:41
controller::ControllerWeakPtr
std::weak_ptr< Controller > ControllerWeakPtr
Definition:
ClassDefinitions.h:42
Ui
ArmarX Headers.
Definition:
ArmarXMainWindow.h:54
controller::ControllerPtr
std::shared_ptr< Controller > ControllerPtr
Definition:
ClassDefinitions.h:41
enabled
std::atomic< bool > * enabled
Definition:
RemoteGuiWidgetController.cpp:75
gui::dialog::SaveSnapshotDialog::SaveSnapshotDialog
SaveSnapshotDialog(controller::ControllerPtr control, QWidget *parent=0)
Constructor.
Definition:
SaveSnapshotDialog.cpp:28
gui::dialog::SaveSnapshotDialog::~SaveSnapshotDialog
~SaveSnapshotDialog() override
Destructor.
Definition:
SaveSnapshotDialog.cpp:39
gui::dialog::SaveSnapshotDialog::retranslate
void retranslate()
Translates all translatable strings in this dialog.
Definition:
SaveSnapshotDialog.cpp:168
control
This file is part of ArmarX.
MemoryX
gui-plugins
SceneEditor
gui
dialog
SaveSnapshotDialog.h
Generated on Sat Oct 12 2024 09:14:05 for armarx_documentation by
1.8.17