promoe/src/NumberDisplay.h
2008-01-26 06:16:59 +01:00

49 lines
1.1 KiB
C++

/**
* This file is a part of Prome, an XMMS2 Client.
*
* Copyright (C) 2005-2007 XMMS2 Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __NUMBERDISPLAY_H__
#define __NUMBERDISPLAY_H__
class TimeDisplay;
#include "PixWidget.h"
class NumberDisplay : public PixWidget
{
Q_OBJECT
public:
NumberDisplay (QWidget *parent, TimeDisplay *td, uint, uint);
~NumberDisplay ();
void setNumber (uint, uint);
public slots:
void setPixmaps (Skin *skin);
signals:
void clicked(void);
protected:
void mousePressEvent (QMouseEvent *event);
void mouseReleaseEvent (QMouseEvent *event);
int m_w;
int m_startpx;
TimeDisplay *m_td;
uint m_n1;
uint m_n2;
};
#endif