EffectParameter Class Reference |
Constant | Value | Description |
---|---|---|
Phonon::EffectParameter::ToggledHint | 0x04 | If this hint is set it means that the the control has only two states: zero and non-zero (see isToggleControl()). |
Phonon::EffectParameter::LogarithmicHint | 0x10 | LADSPA's SAMPLE_RATE hint needs to be translated by the backend to normal bounds, as the backend knows the sample rate - and the frontend doesn't (see isLogarithmicControl()). |
Phonon::EffectParameter::IntegerHint | 0x20 | See isIntegerControl(). |
The Hints type is a typedef for QFlags<Hint>. It stores an OR combination of Hint values.
Only to be used by backend implementations:
Creates a new effect parameter.
parameterId This is a number to uniquely identify the parameter. The id is used for value() and setValue().
name is the name/label for this parameter.
hints sets the hints for the type of parameter.
defaultValue The value that should be used as a default.
min is the minimum value allowed for this parameter. You only need to set this if the BoundedBelowHint is set.
max is the maximum value allowed for this parameter. You only need to set this if the BoundedAboveHint is set.
The values parameter is the values that the effect parameter can take (only applies if non-continuous)
description is a descriptive text for the parameter (explaining what it controls) to be used as a tooltip or WhatsThis help.
The default value.
The parameter may come with a description (LADSPA doesn't have a field for this, so don't expect many effects to provide a description).
The description can be used for a tooltip or WhatsThis help.
Returns A text describing the parameter.
Returns whether the parameter should be displayed using a logarithmic scale. This is particularly useful for frequencies and gains.
The maximum value to be used for the control to edit the parameter.
If the returned QVariant is invalid the value is not bounded from above.
The minimum value to be used for the control to edit the parameter.
If the returned QVariant is invalid the value is not bounded from below.
The name of the parameter. Can be used as the label.
Returns A label for the parameter.
The possible values to be used for the control to edit the parameter.
if the value of this parameter is to be picked from predefined values this returns the list (otherwise it returns an empty QVariantList).
Returns the parameter type.
Common types are QVariant::Int, QVariant::Double, QVariant::Bool and QVariant::String. When QVariant::String is returned you get the possible values from possibleValues.
Assigns the other effect parameter to this parameter and returns a reference to this parameter.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com