1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // Author : OPEN CASCADE
21 // File: GLViewer_MimeData.h
22 // Created: November, 2004
24 #ifndef GLVIEWER_MIMEDATA_H
25 #define GLVIEWER_MIMEDATA_H
36 #pragma warning( disable:4251 )
39 class GLViewer_Object;
42 \class GLViewer_MimeData
43 Needs for a work with QClipboard
45 class GLVIEWER_API GLViewer_MimeData: public QMimeData
48 GLViewer_MimeData():QMimeData(){};
51 //! Translate objects to byte array
52 bool setObjects( QList<GLViewer_Object*> );
53 //! Gets objects from byte array
54 /*If you want to use new class, following two method must be redefined*/
55 static QList<GLViewer_Object*> getObjects( QByteArray, QString theType);
56 //! Get object from byte array
57 /*If you want to use new class, following two method must be redefined*/
58 static GLViewer_Object* getObject( QByteArray, QString theType);
60 const char* format( int theIndex = 0 ) const;
61 QByteArray encodedData( const char* ) const;
64 QByteArray myByteArray;
68 #pragma warning ( default:4251 )