Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef GLVIEWER_MIMEDATA_H
00025 #define GLVIEWER_MIMEDATA_H
00026
00027 #ifdef WIN32
00028 #include <windows.h>
00029 #endif
00030
00031 #include "GLViewer.h"
00032
00033 #include <QMimeData>
00034
00035 #ifdef WIN32
00036 #pragma warning( disable:4251 )
00037 #endif
00038
00039 class GLViewer_Object;
00040
00045 class GLVIEWER_API GLViewer_MimeData: public QMimeData
00046 {
00047 public:
00048 GLViewer_MimeData():QMimeData(){};
00049 ~GLViewer_MimeData();
00050
00052 bool setObjects( QList<GLViewer_Object*> );
00054
00055 static QList<GLViewer_Object*> getObjects( QByteArray, QString theType);
00057
00058 static GLViewer_Object* getObject( QByteArray, QString theType);
00059
00060 const char* format( int theIndex = 0 ) const;
00061 QByteArray encodedData( const char* ) const;
00062
00063 private:
00064 QByteArray myByteArray;
00065 };
00066
00067 #ifdef WIN32
00068 #pragma warning ( default:4251 )
00069 #endif
00070
00071 #endif