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

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/winskin/waSkin.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
  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
#ifndef __WASKIN_H
 
16
#define __WASKIN_H
 
17
#include <waJumpSlider.h>
 
18
#include <waVolumeSlider.h>
 
19
#include <waBalanceSlider.h>
 
20
 
 
21
#include <waSkinModell.h>
 
22
#include <waSkinOperation.h>
 
23
 
 
24
 
 
25
#include <qlayout.h>
 
26
#include <qwidget.h>
 
27
#include <qpainter.h>
 
28
#include <waButton.h>
 
29
#include <waDigit.h>
 
30
#include <waBPS.h>
 
31
#include <waFreq.h>
 
32
#include <waInfo.h>
 
33
#include <waStatus.h>
 
34
#include <waStereo.h>
 
35
#include <waMono.h>
 
36
#include <waTitleBar.h>
 
37
#include "guiSpectrumAnalyser.h"
 
38
 
 
39
#include "guiPlugin.h"
 
40
 
 
41
 
 
42
#define __SKINID_WINAMP       1
 
43
 
 
44
class WaSkin : public GuiPlugin {
 
45
  Q_OBJECT
 
46
 
 
47
   WaSkinModell* waSkinModell;
 
48
   QString skinDir;
 
49
 
 
50
 public:
 
51
  WaSkin(QString skinDir,QWidget *parent=0, const char *name=0 );
 
52
  ~WaSkin();
 
53
 
 
54
  int  getSkinId();
 
55
 
 
56
  void loadSkin(QString skinDir);
 
57
  void setSong(QString song);
 
58
  void setRepeat(int val);
 
59
  void setShuffle(int val);
 
60
  void setPlaylist(int val);
 
61
  void setBPS(int val);
 
62
  void setFreq(int val);
 
63
 
 
64
  void setJumpValue(int val);
 
65
  void setJumpRange(int val);
 
66
  void setVolumeValue(int val);
 
67
  void setBalanceValue(int val);
 
68
 
 
69
  void setStatus(int val);
 
70
  void setStereo(int val);
 
71
  void setTime(QString timeString);
 
72
  void setSpectrum(float floatArray[75]);
 
73
 
 
74
  QSize sizeHint() const;
 
75
  void paintEvent (QPaintEvent* paintEvent);
 
76
   GuiSpectrumAnalyser* guiSpectrumAnalyser;
 
77
 
 
78
 
 
79
 private slots:
 
80
   void pixmapChange();
 
81
 
 
82
 private:
 
83
   void createButtons();
 
84
   void createHighLevelElements();
 
85
   void sizeButtons();
 
86
 
 
87
   WaButton* prev;
 
88
   WaButton* play;
 
89
   WaButton* pause;
 
90
   WaButton* stop;
 
91
   WaButton* next;
 
92
   WaButton* eject;
 
93
   WaButton* shuffle;
 
94
   WaButton* repeat;
 
95
   WaButton* playlist;
 
96
   WaButton* eq;
 
97
   WaButton *titleshade;
 
98
 
 
99
   WaJumpSlider* waJumpSlider;
 
100
   WaVolumeSlider* waVolumeSlider;
 
101
   WaBalanceSlider* waBalanceSlider;
 
102
   WaDigit* waDigit;
 
103
   WaBPS* waBPS;
 
104
   WaFreq* waFreq;
 
105
   WaInfo* waInfo;
 
106
   WaStatus* waStatus;
 
107
   WaStereo* waStereo;
 
108
   WaMono* waMono;
 
109
   WaTitleBar *waTitleBar;
 
110
};
 
111
#endif