Mixxx

WWidget Class Reference

#include <wwidget.h>

Inheritance diagram for WWidget:

List of all members.

Public Slots

virtual void setValue (double fValue)
void updateValue (double fValue)
void setOnOff (double)

Signals

void valueChangedDown (double)
void valueChangedUp (double)
void valueChangedLeftDown (double)
void valueChangedLeftUp (double)
void valueChangedRightDown (double)
void valueChangedRightUp (double)

Public Member Functions

 WWidget (QWidget *parent=0, Qt::WFlags flags=0)
virtual ~WWidget ()
double getValue ()

Static Public Member Functions

static void setPixmapPath (QString qPath)
static QDomNode selectNode (const QDomNode &nodeHeader, const QString sNode)
static int selectNodeInt (const QDomNode &nodeHeader, const QString sNode)
static float selectNodeFloat (const QDomNode &nodeHeader, const QString sNode)
static QString selectNodeQString (const QDomNode &nodeHeader, const QString sNode)
static const QString getPath (QString location)
static QDomElement openXMLFile (QString path, QString name)

Protected Attributes

double m_fValue
bool m_bOff

Detailed Description

Abstract class used in widgets connected to ControlObjects. Derived widgets can implement the signal and slot for manipulating the widgets value. The widgets internal value should match that of a MIDI control. The ControlObject can contain another mapping of the MIDI/Widget value, but the mapping should always be done in the ControlObject.

Author:
Tue & Ken Haste Andersen

Definition at line 36 of file wwidget.h.


Constructor & Destructor Documentation

WWidget::WWidget ( QWidget *  parent = 0,
Qt::WFlags  flags = 0 
)

Definition at line 30 of file wwidget.cpp.

Here is the call graph for this function:

WWidget::~WWidget ( ) [virtual]

Definition at line 45 of file wwidget.cpp.


Member Function Documentation

const QString WWidget::getPath ( QString  location) [static]

Given a filename of a pixmap, returns its path

Definition at line 115 of file wwidget.cpp.

Here is the caller graph for this function:

double WWidget::getValue ( )

Definition at line 146 of file wwidget.cpp.

Here is the caller graph for this function:

QDomElement WWidget::openXMLFile ( QString  path,
QString  name 
) [static]

Definition at line 126 of file wwidget.cpp.

Here is the caller graph for this function:

QDomNode WWidget::selectNode ( const QDomNode &  nodeHeader,
const QString  sNode 
) [static]

Definition at line 103 of file wwidget.cpp.

Here is the caller graph for this function:

float WWidget::selectNodeFloat ( const QDomNode &  nodeHeader,
const QString  sNode 
) [static]

Definition at line 87 of file wwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int WWidget::selectNodeInt ( const QDomNode &  nodeHeader,
const QString  sNode 
) [static]

Definition at line 75 of file wwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString WWidget::selectNodeQString ( const QDomNode &  nodeHeader,
const QString  sNode 
) [static]

Definition at line 92 of file wwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WWidget::setOnOff ( double  d) [slot]

Definition at line 55 of file wwidget.cpp.

void WWidget::setPixmapPath ( QString  qPath) [static]

Sets the path used to find pixmaps

Definition at line 121 of file wwidget.cpp.

void WWidget::setValue ( double  fValue) [virtual, slot]

Reimplemented in WNumber, WNumberPos, WNumberRate, WOverview, WPushButton, WSliderComposed, WStatusLight, WVisualSimple, and WVuMeter.

Definition at line 49 of file wwidget.cpp.

Here is the caller graph for this function:

void WWidget::updateValue ( double  fValue) [slot]

Definition at line 150 of file wwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WWidget::valueChangedDown ( double  ) [signal]

Here is the caller graph for this function:

void WWidget::valueChangedLeftDown ( double  ) [signal]

Here is the caller graph for this function:

void WWidget::valueChangedLeftUp ( double  ) [signal]

Here is the caller graph for this function:

void WWidget::valueChangedRightDown ( double  ) [signal]

Here is the caller graph for this function:

void WWidget::valueChangedRightUp ( double  ) [signal]

Here is the caller graph for this function:

void WWidget::valueChangedUp ( double  ) [signal]

Here is the caller graph for this function:


Member Data Documentation

bool WWidget::m_bOff [protected]

Is true if widget is off

Definition at line 71 of file wwidget.h.

double WWidget::m_fValue [protected]

Value/state of widget

Definition at line 69 of file wwidget.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines