Mixxx

ControlValueDelegate Class Reference

#include <controlvaluedelegate.h>

List of all members.

Public Member Functions

 ControlValueDelegate (QObject *parent=0)
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setEditorData (QWidget *editor, const QModelIndex &index) const
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const

Static Public Member Functions

static bool verifyControlValueValidity (QString controlGroup, QAbstractItemModel *model, const QModelIndex &index)
static QStringList getChannelControlValues ()
static QStringList getMasterControlValues ()
static QStringList getPlaylistControlValues ()
static QStringList getFlangerControlValues ()
static QStringList getMicrophoneControlValues ()

Detailed Description

Definition at line 18 of file controlvaluedelegate.h.


Constructor & Destructor Documentation

ControlValueDelegate::ControlValueDelegate ( QObject *  parent = 0)

Definition at line 23 of file controlvaluedelegate.cpp.


Member Function Documentation

QWidget * ControlValueDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 193 of file controlvaluedelegate.cpp.

static QStringList ControlValueDelegate::getChannelControlValues ( ) [inline, static]

These getters are used by the "Add Control" dialog in the MIDI prefs.

Definition at line 39 of file controlvaluedelegate.h.

Here is the caller graph for this function:

static QStringList ControlValueDelegate::getFlangerControlValues ( ) [inline, static]

Definition at line 42 of file controlvaluedelegate.h.

Here is the caller graph for this function:

static QStringList ControlValueDelegate::getMasterControlValues ( ) [inline, static]

Definition at line 40 of file controlvaluedelegate.h.

Here is the caller graph for this function:

static QStringList ControlValueDelegate::getMicrophoneControlValues ( ) [inline, static]

Definition at line 43 of file controlvaluedelegate.h.

Here is the caller graph for this function:

static QStringList ControlValueDelegate::getPlaylistControlValues ( ) [inline, static]

Definition at line 41 of file controlvaluedelegate.h.

Here is the caller graph for this function:

void ControlValueDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 171 of file controlvaluedelegate.cpp.

void ControlValueDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const

Definition at line 239 of file controlvaluedelegate.cpp.

void ControlValueDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const

Definition at line 248 of file controlvaluedelegate.cpp.

void ControlValueDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Definition at line 261 of file controlvaluedelegate.cpp.

bool ControlValueDelegate::verifyControlValueValidity ( QString  controlGroup,
QAbstractItemModel *  model,
const QModelIndex &  index 
) [static]

Verify that the currently selected ControlValue is valid for some given controlGroup. When the controlGroup is changed in the neighbouring column, the existing ControlValue might not be valid any more, so we need to clear it if that's the case.

Parameters:
controlGroupThe group that has just been selected and should be verified against.
indexThe model index of the ControlValue.

Definition at line 274 of file controlvaluedelegate.cpp.

Here is the caller graph for this function:


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