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

« back to all changes in this revision

Viewing changes to kmid/channelview.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
/**************************************************************************
 
2
 
 
3
    channelview.h - The ChannelView dialog
 
4
    Copyright (C) 1998  Antonio Larrosa Jimenez
 
5
 
 
6
    This program is free software; you can redistribute it and/or modify
 
7
    it under the terms of the GNU General Public License as published by
 
8
    the Free Software Foundation; either version 2 of the License, or
 
9
    (at your option) any later version.
 
10
 
 
11
    This program is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
    GNU General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU General Public License
 
17
    along with this program; if not, write to the Free Software
 
18
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
 
 
20
    Send comments and bug fixes to larrosa@kde.org
 
21
    or to Antonio Larrosa, Rio Arnoya, 10 5B, 29006 Malaga, Spain
 
22
 
 
23
***************************************************************************/
 
24
 
 
25
#ifndef CHANNELVIEW_H
 
26
#define CHANNELVIEW_H
 
27
 
 
28
#include <kmainwindow.h>
 
29
#include <qscrollbar.h>
 
30
#include "channel.h"
 
31
 
 
32
 
 
33
class ChannelView : public KMainWindow
 
34
{
 
35
    Q_OBJECT
 
36
private:
 
37
    KMidChannel *Channel[16];
 
38
    int nvisiblechannels;
 
39
 
 
40
    virtual void resizeEvent(QResizeEvent *);
 
41
    virtual void closeEvent(QCloseEvent *e);
 
42
    
 
43
public:
 
44
        ChannelView(void);
 
45
        virtual ~ChannelView();
 
46
 
 
47
        void setScrollBarRange(void);
 
48
 
 
49
        void noteOn(int chn,int note);
 
50
        void noteOff(int chn,int note);
 
51
        void changeInstrument(int chn,int pgm);
 
52
        void changeForceState(int chn,bool i);
 
53
 
 
54
        void reset(int level=1);
 
55
 
 
56
        static int lookMode(void);
 
57
 
 
58
        void lookMode(int i);
 
59
 
 
60
public slots:
 
61
    void ScrollChn(int i);
 
62
    void slottokmidclient(int *data);
 
63
 
 
64
signals:
 
65
    void destroyMe();
 
66
    void signalToKMidClient(int *data);
 
67
 
 
68
private:
 
69
    QScrollBar *scrollbar;
 
70
 
 
71
 
 
72
    static int lookmode;
 
73
 
 
74
 
 
75
};
 
76
#endif