kdgantt

KDGanttViewItemDrag.h
1 
2 /****************************************************************************
3  ** Copyright (C) 2001-2004 Klarälvdalens Datakonsult AB. All rights reserved.
4  **
5  ** This file is part of the KDGantt library.
6  **
7  ** This file may be distributed and/or modified under the terms of the
8  ** GNU General Public License version 2 as published by the Free Software
9  ** Foundation and appearing in the file LICENSE.GPL included in the
10  ** packaging of this file.
11  **
12  ** Licensees holding valid commercial KDGantt licenses may use this file in
13  ** accordance with the KDGantt Commercial License Agreement provided with
14  ** the Software.
15  **
16  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
17  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18  **
19  ** See http://www.klaralvdalens-datakonsult.se/Public/products/ for
20  ** information about KDGantt Commercial License Agreements.
21  **
22  ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
23  ** licensing are not clear to you.
24  **
25  ** As a special exception, permission is given to link this program
26  ** with any edition of TQt, and distribute the resulting executable,
27  ** without including the source code for TQt in the source distribution.
28  **
29  **********************************************************************/
30 
31 
32 #ifndef KDGANTTVIEWITEMGRAG_H
33 #define KDGANTTVIEWITEMGRAG_H
34 
35 #include <tqwidget.h>
36 #include <tqcstring.h>
37 #include <tqdragobject.h>
38 
39 
40 class KDGanttViewItem;
41 
42 class KDGanttViewItemDrag :public TQStoredDrag
43 {
44 public:
45  KDGanttViewItemDrag(KDGanttViewItem* item, TQWidget *source, const char * name ) ;
46 
47  TQByteArray encodedData( const char * c) const;
49  static bool canDecode ( const TQMimeSource * e );
50  static bool decode ( const TQMimeSource * e, TQString & );
51 protected:
52 
53 private:
54  TQByteArray array;
55  KDGanttViewItem* myItem;
56 };
57 
58 
59 
60 
61 #endif
Drag and drop of KD Gantt items.
KDGanttViewItemDrag(KDGanttViewItem *item, TQWidget *source, const char *name)
KDGanttViewItem * getItem()
static bool decode(const TQMimeSource *e, TQString &)
static bool canDecode(const TQMimeSource *e)
TQByteArray encodedData(const char *c) const