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

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/winskin/waTitleBar.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 __WATITLEBAR_H
 
17
#define __WATITLEBAR_H
 
18
 
 
19
#include <waSkinModell.h>
 
20
#include <qpainter.h>
 
21
#include <qwidget.h>
 
22
 
 
23
class WaTitleBar : public QWidget {
 
24
 Q_OBJECT
 
25
 
 
26
  QPixmap *titlePixmap;
 
27
 
 
28
  WaSkinModell* waSkinModell;
 
29
 public:
 
30
   WaTitleBar(WaSkinModell* waSkinModell,QWidget* parent=0,char* name=0);
 
31
   ~WaTitleBar();
 
32
 
 
33
private:
 
34
        void mousePressEvent(QMouseEvent *e);
 
35
        void mouseReleaseEvent(QMouseEvent *e);
 
36
        void mouseMoveEvent(QMouseEvent *e);
 
37
 
 
38
        bool moving;
 
39
        QWidget *waParent;
 
40
        QPoint mLastPos;
 
41
        QPoint mDragStart;
 
42
 
 
43
 public slots:
 
44
  QSize sizeHint() const;
 
45
  void paintEvent ( QPaintEvent * paintEvent );
 
46
 
 
47
 private slots:
 
48
  void pixmapChange();
 
49
 
 
50
};
 
51
#endif