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

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/winskin/waInfo.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 __WAINFO_H
 
17
#define __WAINFO_H
 
18
 
 
19
#include <waSkinModell.h>
 
20
#include <qpainter.h>
 
21
#include <qtimer.h>
 
22
#include <qwidget.h>
 
23
 
 
24
class WaInfo : public QWidget {
 
25
 Q_OBJECT
 
26
 
 
27
  QPixmap* completePixmap;
 
28
  QPixmap* buildPixmap;
 
29
  WaSkinModell* waSkinModell;
 
30
  QString text;
 
31
  QTimer* timer;
 
32
  int xScrollPos;
 
33
  int xScrollDirection;
 
34
 
 
35
 
 
36
 public:
 
37
   WaInfo(WaSkinModell* waSkinModell,QWidget* parent=0,char* name=0);
 
38
   ~WaInfo();
 
39
 
 
40
   void setSong(QString song);
 
41
   QString getSong();
 
42
 
 
43
 
 
44
 public slots:
 
45
  QSize sizeHint() const;
 
46
  void paintEvent ( QPaintEvent * paintEvent );
 
47
 
 
48
 private slots:
 
49
  void pixmapChange();
 
50
  void timeEvent();
 
51
  void scrollerSetup();
 
52
  
 
53
 
 
54
 
 
55
};
 
56
#endif
 
57