kwave
18.07.70
|
#include <CompressionWidget.h>
Public Types | |
enum | Mode { ABR_MODE = 0, VBR_MODE } |
Public Member Functions | |
CompressionWidget (QWidget *parent) | |
virtual | ~CompressionWidget () |
virtual void | init (Kwave::FileInfo &info) |
virtual void | enableABR (bool enable, bool lowest, bool highest) |
virtual void | enableVBR (bool enable) |
virtual void | setBitrates (int nominal, int lower, int upper) |
virtual void | setQuality (int quality) |
virtual Mode | mode () |
virtual void | setMode (Mode mode) |
virtual bool | lowestEnabled () |
virtual bool | highestEnabled () |
virtual void | getABRrates (int &nominal, int &lowest, int &highest) |
virtual int | baseQuality () |
Private Slots | |
virtual void | selectABR (bool checked) |
virtual void | lowestToggled (bool on) |
virtual void | abrChanged (int value) |
virtual void | lowestChanged (int value) |
virtual void | highestChanged (int value) |
virtual void | highestToggled (bool on) |
Private Member Functions | |
void | describeWidget (QWidget *widget, const QString &name, const QString &description) |
void | initInfo (QLabel *label, QWidget *widget, Kwave::FileProperty property, Kwave::FileInfo &info) |
Definition at line 33 of file CompressionWidget.h.
Compression Mode: ABR or VBR
Enumerator | |
---|---|
ABR_MODE | average bitrate mode |
VBR_MODE | variable bitrate mode |
Definition at line 39 of file CompressionWidget.h.
|
explicit |
Constructor
Definition at line 39 of file CompressionWidget.cpp.
References abrChanged(), Kwave::connect(), enableABR(), enableVBR(), highestChanged(), highestToggled(), Kwave::StandardBitrates::instance(), lowestChanged(), lowestToggled(), and selectABR().
|
virtual |
|
privatevirtualslot |
called when the "average bitrate" slider has changed
Definition at line 175 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
Returns the base quality in VBR mode, as percentage from 1...100
Definition at line 272 of file CompressionWidget.cpp.
|
private |
Sets the tooltip and "what's this" of a widget.
widget | any QWidget derived widget |
name | of the setting, normally equal to it's label |
description | verbose descriptive text that says what can be set |
Definition at line 88 of file CompressionWidget.cpp.
References _.
Referenced by initInfo().
|
virtual |
Enable or disable ABR mode controls
enable | controls the global ABR mode setting enable/disable |
lowest | checks/unchecks the lowest bitrate setting checkbox |
highest | checks/unchecks the highest bitrate setting checkbox |
Definition at line 109 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
Enable or disable VBR mode
Definition at line 127 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
Returns the bitrate settings of ABR mode
nominal | receives the nominal bitrate |
lowest | receives the lowest bitrate or null if unused |
highest | receives the highest bitrate or null if unused |
Definition at line 263 of file CompressionWidget.cpp.
|
privatevirtualslot |
called when the "highest bitrate" slider has changed
Definition at line 193 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
Returns the state of the "use highest" checkbox
Definition at line 257 of file CompressionWidget.cpp.
|
privatevirtualslot |
called when the "highest bitrate" checkbox has been toggled
Definition at line 161 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
info | the FileInfo used for getting the property descriptions |
Definition at line 73 of file CompressionWidget.cpp.
References Kwave::INF_BITRATE_LOWER, Kwave::INF_BITRATE_NOMINAL, Kwave::INF_BITRATE_UPPER, Kwave::INF_VBR_QUALITY, and initInfo().
|
private |
Sets the text of the label to the name of a file property and initializes the tool tip of the corresponding edit/display control.
label | the label to be set |
widget | the control to get the tool tip |
property | the file property which it belongs to |
info | the FileInfo used for getting the property descriptions |
Definition at line 98 of file CompressionWidget.cpp.
References _, describeWidget(), Kwave::FileInfo::description(), and Kwave::FileInfo::name().
Referenced by init().
|
privatevirtualslot |
called when the "lowest bitrate" slider has changed
Definition at line 184 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
Returns the state of the "use lowest" checkbox
Definition at line 251 of file CompressionWidget.cpp.
|
privatevirtualslot |
called when the "lowest bitrate" checkbox has been toggled
Definition at line 147 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
Returns the current bitrate mode: ABR or VBR
Definition at line 216 of file CompressionWidget.cpp.
References ABR_MODE, and VBR_MODE.
|
privatevirtualslot |
called when the selection state of the ABR radio button changed
Definition at line 140 of file CompressionWidget.cpp.
Referenced by CompressionWidget().
|
virtual |
Sets the bitrates in ABR mode
nominal | the nominal bitrate or zero if not used |
lower | the lowest bitrate or zero if not used |
upper | the highest bitrate or zero if not used |
Definition at line 202 of file CompressionWidget.cpp.
|
virtual |
Selects ABR or VBR mode
Definition at line 222 of file CompressionWidget.cpp.
References ABR_MODE, and VBR_MODE.
|
virtual |
Sets the VBR base quality or zero if unused.
Definition at line 210 of file CompressionWidget.cpp.