Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/widget/wnumber.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           wnumber.h  -  description
00003                              -------------------
00004     begin                : Wed Jun 18 2003
00005     copyright            : (C) 2003 by Tue & Ken Haste Andersen
00006     email                : haste@diku.dk
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef WNUMBER_H
00019 #define WNUMBER_H
00020 
00021 #include "wwidget.h"
00022 #include <qlabel.h>
00023 #include <qevent.h>
00024 
00029 class WNumber : public WWidget  {
00030     Q_OBJECT
00031 public:
00032     WNumber(QWidget *parent=0);
00033     virtual ~WNumber();
00034     void setup(QDomNode node);
00035     void setNumDigits(int);
00036     void setConstFactor(double);
00037 
00038 public slots:
00039     void setValue(double dValue);
00040 
00041 protected:
00042     QLabel *m_pLabel;
00043     QString m_qsText;
00044     int m_iNoDigits;
00046     QColor m_qFgColor, m_qBgColor;
00048     double m_dConstFactor;
00049 };
00050 
00051 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines