Mixxx

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

Go to the documentation of this file.
00001 /***************************************************************************
00002                           wwidget.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 WWIDGET_H
00019 #define WWIDGET_H
00020 
00021 #include <QtGui>
00022 #include <QtXml>
00023 
00024 #include "configobject.h"
00025 
00036 class WWidget : public QWidget  {
00037    Q_OBJECT
00038 public:
00039     WWidget(QWidget *parent=0, Qt::WFlags flags=0);
00040     virtual ~WWidget();
00041 
00043     static void setPixmapPath(QString qPath);
00044     static QDomNode selectNode(const QDomNode &nodeHeader, const QString sNode);
00045     static int selectNodeInt(const QDomNode &nodeHeader, const QString sNode);
00046     static float selectNodeFloat(const QDomNode &nodeHeader, const QString sNode);
00047     static QString selectNodeQString(const QDomNode &nodeHeader, const QString sNode);
00048 
00050     static const QString getPath(QString location);
00051     static QDomElement openXMLFile(QString path, QString name);
00052     double getValue();
00053 public slots:
00054     virtual void setValue(double fValue);
00055     void updateValue(double fValue);
00056     void setOnOff(double);
00057 private slots:
00058     void slotReEmitValueDown(double);
00059     void slotReEmitValueUp(double);
00060 signals:
00061     void valueChangedDown(double);
00062     void valueChangedUp(double);
00063     void valueChangedLeftDown(double);
00064     void valueChangedLeftUp(double);
00065     void valueChangedRightDown(double);
00066     void valueChangedRightUp(double);
00067 protected:
00069     double m_fValue;
00071     bool m_bOff;
00072 
00073 private:
00075     static QString m_qPath;
00077     bool m_bEmitOnDownPress;
00078 };
00079 
00080 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines