~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to noatun/noatun/library/effectview.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EFFECTS_VIEW_H
 
2
#define EFFECTS_VIEW_H
 
3
 
 
4
#include <kdialogbase.h>
 
5
#include <klistview.h>
 
6
#include <kiconview.h>
 
7
class EffectList;
 
8
class QDragObject;
 
9
class Effect;
 
10
 
 
11
class EffectView : public KDialogBase
 
12
{
 
13
Q_OBJECT
 
14
public:
 
15
        EffectView();
 
16
 
 
17
        QListViewItem *toListItem(Effect *e) const;
 
18
        EffectList *active() const {return mActive;}
 
19
 
 
20
        virtual void show();
 
21
        
 
22
protected slots:
 
23
        void dropEvent(QDropEvent*, QListViewItem*);
 
24
 
 
25
public slots:
 
26
        void added(Effect *item);
 
27
        void removed(Effect *item);
 
28
        void moved(Effect *item);
 
29
 
 
30
        // buttons
 
31
        void moveDown();
 
32
        void moveUp();
 
33
        void moveLeft();
 
34
        void moveRight();
 
35
        void removeCurrent();
 
36
        void leftHelp();
 
37
        void rightHelp();
 
38
 
 
39
        void activeChanged(QListViewItem*);
 
40
        void availableChanged(QIconViewItem*);
 
41
        
 
42
private:
 
43
        QIconView *mAvailable;
 
44
        EffectList *mActive;
 
45
        
 
46
        QPushButton *mUp, *mDown, *mLeft, *mRight, *mLeftHelp, *mRightHelp;
 
47
        bool first;
 
48
};
 
49
 
 
50
 
 
51
class EffectList : public KListView
 
52
{
 
53
Q_OBJECT
 
54
public:
 
55
        EffectList(QWidget *parent);
 
56
        virtual bool acceptDrag(QDropEvent *) const;
 
57
        virtual QDragObject *dragObject() const;
 
58
};
 
59
 
 
60
class EffectAvailable : public KIconView
 
61
{
 
62
Q_OBJECT
 
63
public:
 
64
        EffectAvailable(QWidget *parent, EffectView*);
 
65
        virtual QDragObject *dragObject();
 
66
 
 
67
protected:
 
68
        virtual void contentsDropEvent(QDropEvent*);
 
69
 
 
70
private:
 
71
        EffectView *mView;
 
72
};
 
73
 
 
74
#endif
 
75