~ubuntu-branches/ubuntu/dapper/lmms/dapper

« back to all changes in this revision

Viewing changes to include/string_pair_drag.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ragwitz
  • Date: 2005-12-22 16:22:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051222162250-key3p7x0212jy6dn
Tags: 0.1.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * string_pair_drag.h - class stringPairDrag which provides general support
 
3
 *                      for drag'n'drop of string-pairs
 
4
 *
 
5
 * Copyright (c) 2005 Tobias Doerffel <tobydox/at/users.sourceforge.net>
 
6
 * 
 
7
 * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or
 
10
 * modify it under the terms of the GNU General Public
 
11
 * License as published by the Free Software Foundation; either
 
12
 * version 2 of the License, or (at your option) any later version.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
 * General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public
 
20
 * License along with this program (see COPYING); if not, write to the
 
21
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
22
 * Boston, MA 02111-1307, USA.
 
23
 *
 
24
 */
 
25
 
 
26
#ifndef _STRING_PAIR_DRAG_H
 
27
#define _STRING_PAIR_DRAG_H
 
28
 
 
29
#include "qt3support.h"
 
30
 
 
31
#ifdef QT4
 
32
 
 
33
#include <QDrag>
 
34
 
 
35
#else
 
36
 
 
37
#include <qdragobject.h>
 
38
 
 
39
#endif
 
40
 
 
41
 
 
42
class QPixmap;
 
43
 
 
44
 
 
45
class stringPairDrag : public
 
46
#ifdef QT4
 
47
                                QDrag
 
48
#else
 
49
                                QStoredDrag
 
50
#endif
 
51
{
 
52
public:
 
53
        stringPairDrag( const QString & _key, const QString & _value,
 
54
                                        const QPixmap & _icon, QWidget * _w );
 
55
        ~stringPairDrag();
 
56
 
 
57
        static bool processDragEnterEvent( QDragEnterEvent * _dee,
 
58
                                                const QString & _allowed_keys );
 
59
        static QString decodeKey( QDropEvent * _de );
 
60
        static QString decodeValue( QDropEvent * _de );
 
61
 
 
62
} ;
 
63
 
 
64
 
 
65
#endif