VR-Forces 4.0.4 Class Documentation
include/tmqt/dragObject.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999-2002 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: dragObject.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DRAGOBJECT_H_
00013 #define DRAGOBJECT_H_
00014 
00015 #include <QtCore/QMimeData>
00016 #include <QtGui/QKeyEvent>
00017 #include <QtGui/QDragMoveEvent>
00018 
00019 #include "tmqt/tmqtDefines.h"
00020 class DT_DLL_tmqt DtDragObject : public QMimeData
00021 {
00022 Q_OBJECT
00023 
00024 public:
00025 
00026    DtDragObject(const QString& entityId, QString drag = dragType());
00027    
00028    virtual ~DtDragObject();
00029    
00030    static bool canDecode ( QDragMoveEvent* event, QString drag = dragType() );
00031    
00032    static bool decode( QDropEvent* event, QString& id, QString drag = dragType());
00033    static bool decode(QByteArray& rawData, QString& items);
00034 
00035    static QString dragType();
00036 };
00037 
00038 #endif //DRAGOBJECT_H_

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)