~ubuntu-branches/ubuntu/karmic/kst/karmic

« back to all changes in this revision

Viewing changes to kst/kst/kstplotimagedrag.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-06-30 19:11:30 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630191130-acumuar75bz4puty
Tags: 1.2.1-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                  kstplotimagedrag.h: class for drag objects
3
 
                             -------------------
4
 
    begin                : Mar 17, 2005
5
 
    copyright            : (C) 2005 The University of Toronto
6
 
    email                :
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
#ifndef KSTPLOTIMAGEDRAG_H
19
 
#define KSTPLOTIMAGEDRAG_H
20
 
 
21
 
#include "kstdrag.h"
22
 
#include "kstviewobject.h"
23
 
 
24
 
class KstPlotImageDrag : public KstDrag {
25
 
  public:
26
 
    KstPlotImageDrag(QWidget *dragSource);
27
 
    virtual ~KstPlotImageDrag();
28
 
 
29
 
    virtual const char *format(int i = 0) const;
30
 
    void setPlots(const KstViewObjectList& l);
31
 
    virtual QByteArray encodedData(const char *mimeType) const;
32
 
    virtual bool provides(const char *mimeType) const;
33
 
 
34
 
  private:
35
 
    mutable KstViewObjectList _plots; // hmm, not sure if this is good
36
 
    QStringList _mimeTypes;
37
 
};
38
 
 
39
 
#endif
40
 
// vim: ts=2 sw=2 et