~ubuntu-branches/ubuntu/karmic/kguitar/karmic

« back to all changes in this revision

Viewing changes to kguitar/radiustuner.h

  • Committer: Bazaar Package Importer
  • Author(s): Loic Pefferkorn
  • Date: 2005-08-19 15:22:41 UTC
  • Revision ID: james.westby@ubuntu.com-20050819152241-n24w9np4vblrm5as
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef RADIUSTUNER_H
 
2
#define RADIUSTUNER_H
 
3
 
 
4
#include <qwidget.h>
 
5
#include "global.h"
 
6
 
 
7
#include "notespinbox.h"
 
8
 
 
9
#define RADTUNER_W   47
 
10
#define RADTUNER_H   50
 
11
 
 
12
class RadiusTuner: public QWidget {
 
13
        Q_OBJECT
 
14
public:
 
15
        RadiusTuner(QWidget *parent=0, const char *name=0);
 
16
        void setValue(uchar x) { val->setValue(x); };
 
17
        uchar value() { return val->value(); };
 
18
 
 
19
signals:
 
20
        void valueChanged(int);
 
21
 
 
22
private slots:
 
23
        void emitValueChanged();
 
24
 
 
25
private:
 
26
        NoteSpinBox *val;
 
27
        virtual void resizeEvent(QResizeEvent *e);
 
28
        virtual void paintEvent(QPaintEvent *p);
 
29
};
 
30
 
 
31
#endif