Version: 8.3.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ItemMimeData.hxx
Go to the documentation of this file.
1
// Copyright (C) 2006-2016 CEA/DEN, EDF R&D
2
//
3
// This library is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU Lesser General Public
5
// License as published by the Free Software Foundation; either
6
// version 2.1 of the License, or (at your option) any later version.
7
//
8
// This library is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
12
//
13
// You should have received a copy of the GNU Lesser General Public
14
// License along with this library; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
//
17
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
//
19
20
#ifndef _ITEMMIMEDATA_HXX_
21
#define _ITEMMIMEDATA_HXX_
22
23
#include <QMimeData>
24
#include <string>
25
#include <vector>
26
27
namespace
YACS
28
{
29
namespace
ENGINE
30
{
31
class
Catalog;
32
}
33
34
namespace
HMI
35
{
36
class
Subject;
37
41
class
ItemMimeData
:
public
QMimeData
42
{
43
public
:
44
ItemMimeData
();
45
virtual
~ItemMimeData
();
46
virtual
void
setSubject
(
Subject
*sub);
47
virtual
void
setCatalog
(
YACS::ENGINE::Catalog
*cata);
48
virtual
void
setCataName
(std::string cataName);
49
virtual
void
setCompo
(std::string compo);
50
virtual
void
setType
(std::string aType);
51
virtual
void
setCase
(
int
aCase);
52
virtual
Subject
*
getSubject
(
int
i
=0)
const
;
53
virtual
YACS::ENGINE::Catalog
*
getCatalog
(
int
i
=0)
const
;
54
virtual
std::string
getCataName
(
int
i
=0)
const
;
55
virtual
std::string
getCompo
(
int
i
=0)
const
;
56
virtual
std::string
getType
(
int
i
=0)
const
;
57
virtual
int
getCase
()
const
;
58
virtual
bool
getControl
()
const
;
59
virtual
void
setControl
(
bool
control);
60
virtual
int
getDataSize
()
const
;
61
protected
:
62
std::vector<Subject*>
_sub
;
63
std::vector<YACS::ENGINE::Catalog*>
_catalog
;
64
std::vector<std::string>
_cataName
;
65
std::vector<std::string>
_compoName
;
66
std::vector<std::string>
_typeName
;
67
int
_swCase
;
68
bool
_control
;
69
};
70
71
}
72
}
73
74
#endif
src
genericgui
ItemMimeData.hxx
Copyright © 2006-2017 CEA/DEN, EDF R&D