kwave
18.07.70
|
#include <PlayBackDialog.h>
Public Slots | |
void | setFileFilter (const QString &filter) |
void | setDevice (const QString &device) |
void | setBitsPerSample (unsigned int bits) |
void | setChannels (int channels) |
Signals | |
void | sigMethodChanged (Kwave::playback_method_t method) |
void | sigTestPlayback () |
Public Member Functions | |
PlayBackDialog (Kwave::Plugin &p, Kwave::PlaybackController &playback_controller, const Kwave::PlayBackParam ¶ms) | |
virtual | ~PlayBackDialog () |
const Kwave::PlayBackParam & | params () |
void | setMethod (Kwave::playback_method_t method) |
void | setSupportedDevices (QStringList devices) |
QString | fileFilter () |
void | setSupportedBits (const QList< unsigned int > &bits) |
void | setSupportedChannels (unsigned int min, unsigned int max) |
Private Slots | |
void | methodSelected (int index) |
void | setBufferSize (int exp) |
void | selectPlaybackDevice () |
void | listEntrySelected (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
void | listItemExpanded (QTreeWidgetItem *item) |
void | updateListSelection () |
void | bitsPerSampleSelected (const QString &text) |
void | invokeHelp () |
Private Attributes | |
Kwave::PlaybackController & | m_playback_controller |
Kwave::PlayBackDevice * | m_device |
Kwave::PlayBackParam | m_playback_params |
Kwave::PlayBackTypesMap | m_methods_map |
QString | m_file_filter |
QMap< QTreeWidgetItem *, QString > | m_devices_list_map |
bool | m_enable_setDevice |
Definition at line 42 of file PlayBackDialog.h.
Kwave::PlayBackDialog::PlayBackDialog | ( | Kwave::Plugin & | p, |
Kwave::PlaybackController & | playback_controller, | ||
const Kwave::PlayBackParam & | params | ||
) |
Constructor
Definition at line 55 of file PlayBackDialog.cpp.
References Kwave::PlayBackParam::bits_per_sample, bitsPerSampleSelected(), Kwave::PlayBackParam::bufbase, Kwave::PlayBackParam::channels, Kwave::connect(), Kwave::TypesMap< IDX, DATA >::count(), Kwave::TypesMap< IDX, DATA >::data(), Kwave::TypesMap< IDX, DATA >::description(), Kwave::PlayBackParam::device, invokeHelp(), listEntrySelected(), listItemExpanded(), m_methods_map, Kwave::PlayBackParam::method, methodSelected(), selectPlaybackDevice(), setBitsPerSample(), setBufferSize(), setChannels(), setDevice(), setMethod(), sigTestPlayback(), and updateListSelection().
|
virtual |
|
privateslot |
selection in the bits per sample combo box has changed
Definition at line 549 of file PlayBackDialog.cpp.
References setBitsPerSample().
Referenced by fileFilter(), and PlayBackDialog().
|
inline |
return the file filter used for the "Select..." dialog
Definition at line 70 of file PlayBackDialog.h.
References bitsPerSampleSelected(), invokeHelp(), listEntrySelected(), listItemExpanded(), m_file_filter, methodSelected(), selectPlaybackDevice(), setBitsPerSample(), setBufferSize(), setChannels(), setDevice(), setFileFilter(), setSupportedBits(), setSupportedChannels(), sigMethodChanged(), sigTestPlayback(), and updateListSelection().
|
privateslot |
invoke the online help
Definition at line 659 of file PlayBackDialog.cpp.
References _.
Referenced by fileFilter(), and PlayBackDialog().
|
privateslot |
selection in the device list view has changed
Definition at line 403 of file PlayBackDialog.cpp.
References m_devices_list_map, and setDevice().
Referenced by fileFilter(), and PlayBackDialog().
|
privateslot |
selection in the device list view has changed
Definition at line 415 of file PlayBackDialog.cpp.
References updateListSelection().
Referenced by fileFilter(), and PlayBackDialog().
|
privateslot |
called when a new playback method has been selected from the combo box
index | the position within the combo box |
Definition at line 239 of file PlayBackDialog.cpp.
References DBG, Kwave::TypesMap< IDX, DATA >::findFromData(), m_methods_map, Kwave::TypesMap< IDX, DATA >::name(), Kwave::PLAYBACK_INVALID, Kwave::PLAYBACK_NONE, and setMethod().
Referenced by fileFilter(), and PlayBackDialog().
const Kwave::PlayBackParam & Kwave::PlayBackDialog::params | ( | ) |
Returns the current set of parameters
Definition at line 622 of file PlayBackDialog.cpp.
References m_playback_params.
Referenced by Kwave::PlayBackPlugin::run(), Kwave::PlayBackPlugin::setup(), and Kwave::PlayBackPlugin::testPlayBack().
|
privateslot |
Select a playback device through a File/Open dialog
Definition at line 635 of file PlayBackDialog.cpp.
References _, Kwave::PlayBackParam::device, m_file_filter, m_playback_params, Kwave::FileDialog::OpenFile, and Kwave::FileDialog::selectUrl().
Referenced by fileFilter(), and PlayBackDialog().
|
slot |
sets the new value for bits per sample
Definition at line 559 of file PlayBackDialog.cpp.
References Kwave::PlayBackParam::bits_per_sample, and m_playback_params.
Referenced by bitsPerSampleSelected(), fileFilter(), PlayBackDialog(), and setSupportedBits().
|
privateslot |
Selects a buffer size exponent
Definition at line 495 of file PlayBackDialog.cpp.
References Kwave::PlayBackParam::bufbase, and m_playback_params.
Referenced by fileFilter(), and PlayBackDialog().
|
slot |
Sets the number of channels
Definition at line 594 of file PlayBackDialog.cpp.
References _, Kwave::PlayBackParam::channels, and m_playback_params.
Referenced by fileFilter(), PlayBackDialog(), and setSupportedChannels().
|
slot |
set a new device name
Definition at line 429 of file PlayBackDialog.cpp.
References _, DBG, Kwave::PlayBackDevice::detectChannels(), Kwave::PlayBackParam::device, m_device, m_devices_list_map, m_enable_setDevice, m_playback_params, setSupportedBits(), setSupportedChannels(), Kwave::PlayBackDevice::supportedBits(), and Kwave::PlayBackDevice::supportedDevices().
Referenced by fileFilter(), listEntrySelected(), PlayBackDialog(), setMethod(), and updateListSelection().
|
slot |
set the file filter used for the "Select..." dialog
Definition at line 628 of file PlayBackDialog.cpp.
References m_file_filter.
Referenced by fileFilter(), and setMethod().
void Kwave::PlayBackDialog::setMethod | ( | Kwave::playback_method_t | method | ) |
Selects a new playback method.
Definition at line 138 of file PlayBackDialog.cpp.
References _, Kwave::PlaybackController::checkMethod(), Kwave::PlaybackController::createDevice(), DBG, Kwave::PlayBackParam::device, Kwave::PlayBackDevice::fileFilter(), Kwave::TypesMap< IDX, DATA >::findFromData(), m_device, m_methods_map, m_playback_controller, m_playback_params, Kwave::PlayBackParam::method, Kwave::TypesMap< IDX, DATA >::name(), Kwave::PLAYBACK_INVALID, setDevice(), setFileFilter(), setSupportedDevices(), and Kwave::PlayBackDevice::supportedDevices().
Referenced by methodSelected(), PlayBackDialog(), and Kwave::PlayBackPlugin::setup().
void Kwave::PlayBackDialog::setSupportedBits | ( | const QList< unsigned int > & | bits | ) |
Sets the list of supported bits per sample
Definition at line 522 of file PlayBackDialog.cpp.
References Kwave::PlayBackParam::bits_per_sample, m_playback_params, and setBitsPerSample().
Referenced by fileFilter(), and setDevice().
void Kwave::PlayBackDialog::setSupportedChannels | ( | unsigned int | min, |
unsigned int | max | ||
) |
Sets the lowest and highest number of playback channels
min | lowest supported number of channels |
max | highest supported number of channels |
Definition at line 576 of file PlayBackDialog.cpp.
References Kwave::PlayBackParam::channels, m_playback_params, and setChannels().
Referenced by fileFilter(), and setDevice().
void Kwave::PlayBackDialog::setSupportedDevices | ( | QStringList | devices | ) |
Sets the list of supported devices, just entries for the device selection combo box.
Definition at line 255 of file PlayBackDialog.cpp.
References _, Kwave::PlayBackParam::device, m_devices_list_map, m_enable_setDevice, and m_playback_params.
Referenced by setMethod().
|
signal |
emits changes in the currently selected playback method
Referenced by fileFilter().
|
signal |
emitted when the user clicked on the "Test..." button
Referenced by fileFilter(), and PlayBackDialog().
|
privateslot |
updates/fixes the device selection when the tree view has lost focus, to avoid that nothing is selected
Definition at line 422 of file PlayBackDialog.cpp.
References Kwave::PlayBackParam::device, m_playback_params, and setDevice().
Referenced by fileFilter(), listItemExpanded(), and PlayBackDialog().
|
private |
The playback device used for configuring and testing playback
Definition at line 146 of file PlayBackDialog.h.
Referenced by setDevice(), and setMethod().
|
private |
map for items in the list view
Definition at line 158 of file PlayBackDialog.h.
Referenced by listEntrySelected(), setDevice(), and setSupportedDevices().
|
private |
if false, do nothing in setDevice
Definition at line 161 of file PlayBackDialog.h.
Referenced by setDevice(), and setSupportedDevices().
|
private |
file filter for the "Select..." dialog (optional)
Definition at line 155 of file PlayBackDialog.h.
Referenced by fileFilter(), selectPlaybackDevice(), and setFileFilter().
|
private |
map of playback methods/types
Definition at line 152 of file PlayBackDialog.h.
Referenced by methodSelected(), PlayBackDialog(), and setMethod().
|
private |
reference to the playback controller
Definition at line 143 of file PlayBackDialog.h.
Referenced by setMethod().
|
private |
all parameters needed for playback
Definition at line 149 of file PlayBackDialog.h.
Referenced by params(), selectPlaybackDevice(), setBitsPerSample(), setBufferSize(), setChannels(), setDevice(), setMethod(), setSupportedBits(), setSupportedChannels(), setSupportedDevices(), and updateListSelection().