applicationdatabaseitem.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* Copyright (C) 2011-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 ArmarXCore::core
19
* @author Cedric Seehausen (usdnr at kit dot edu)
20
* @date 2016
21
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22
* GNU General Public License
23
*/
24
25
26
#pragma once
27
28
#include "
treeitem.h
"
29
#include <
ArmarXCore/util/ScenarioManagerCommon/data_structure/Package.h
>
30
/**
31
* @class ApplicationDatabaseItem
32
* @brief This class represents an item in the ApplicationDatabaseView.
33
*/
34
class
ApplicationDatabaseItem
:
public
TreeItem
35
{
36
public
:
37
/**
38
* Constructor that only sets the text to be displayed.
39
*/
40
ApplicationDatabaseItem
(QString text);
41
42
/**
43
* Constructor that sets a package to be displayed.
44
* @param package package to be displayed
45
*/
46
ApplicationDatabaseItem
(
ScenarioManager::Data_Structure::PackagePtr
package);
47
48
/**
49
* Constructor that sets an application to be displayed.
50
* @param application application to be displayed
51
*/
52
ApplicationDatabaseItem
(
ScenarioManager::Data_Structure::ApplicationPtr
application);
53
54
/**
55
* Returns the Package displayed in this item.
56
*/
57
ScenarioManager::Data_Structure::PackagePtr
getPackage
();
58
59
/**
60
* Returns the Application displayed in this item.
61
*/
62
ScenarioManager::Data_Structure::ApplicationPtr
getApplication
();
63
64
private
:
65
ScenarioManager::Data_Structure::PackagePtr
package;
66
ScenarioManager::Data_Structure::ApplicationPtr
application;
67
};
68
69
Q_DECLARE_METATYPE(
ApplicationDatabaseItem
*)
TreeItem
Definition:
treeitem.h:46
treeitem.h
ScenarioManager::Data_Structure::ApplicationPtr
std::shared_ptr< Application > ApplicationPtr
Definition:
Application.h:119
ApplicationDatabaseItem
This class represents an item in the ApplicationDatabaseView.
Definition:
applicationdatabaseitem.h:34
Package.h
ApplicationDatabaseItem::ApplicationDatabaseItem
ApplicationDatabaseItem(QString text)
Constructor that only sets the text to be displayed.
Definition:
applicationdatabaseitem.cpp:33
ScenarioManager::Data_Structure::PackagePtr
std::shared_ptr< Package > PackagePtr
Definition:
Package.h:121
ApplicationDatabaseItem::getPackage
ScenarioManager::Data_Structure::PackagePtr getPackage()
Returns the Package displayed in this item.
Definition:
applicationdatabaseitem.cpp:50
ApplicationDatabaseItem::getApplication
ScenarioManager::Data_Structure::ApplicationPtr getApplication()
Returns the Application displayed in this item.
Definition:
applicationdatabaseitem.cpp:55
ArmarXGui
gui-plugins
ScenarioManager
gui
applicationdatabaseitem.h
Generated on Sat Oct 12 2024 09:14:03 for armarx_documentation by
1.8.17