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

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/winskin/waStatus.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
  standard Button for winamp Skin
 
3
  Copyright (C) 1999  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
 
 
15
 
 
16
#ifndef __WASTATUS_H
 
17
#define __WASTATUS_H
 
18
 
 
19
#include <waSkinModell.h>
 
20
#include <qpainter.h>
 
21
#include <qwidget.h>
 
22
 
 
23
#define _STATUS_PLAYING 1
 
24
#define _STATUS_STOPPED 2
 
25
#define _STATUS_PAUSED  3
 
26
 
 
27
 
 
28
class WaStatus : public QWidget {
 
29
 Q_OBJECT
 
30
 
 
31
  QPixmap* playPixmap;
 
32
  QPixmap* pausePixmap;
 
33
  QPixmap* stopPixmap;
 
34
 
 
35
  WaSkinModell* waSkinModell;
 
36
  int nStatus;
 
37
 
 
38
 public:
 
39
   WaStatus(WaSkinModell* waSkinModell,QWidget* parent=0,char* name=0);
 
40
   ~WaStatus();
 
41
 
 
42
   void setStatus(int status);
 
43
   int getStatus();
 
44
 
 
45
 public slots:
 
46
  QSize sizeHint() const;
 
47
  void paintEvent ( QPaintEvent * paintEvent );
 
48
 
 
49
 private slots:
 
50
  void pixmapChange();
 
51
     
 
52
};
 
53
#endif