diff options
Diffstat (limited to 'pica-client/dialogs/settingsdialog.h')
| -rw-r--r-- | pica-client/dialogs/settingsdialog.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pica-client/dialogs/settingsdialog.h b/pica-client/dialogs/settingsdialog.h index d5b624c..3525cbf 100644 --- a/pica-client/dialogs/settingsdialog.h +++ b/pica-client/dialogs/settingsdialog.h @@ -96,6 +96,27 @@ private: // told the user why, if it cannot be. bool validateAddrTable(); + // "Call quality" on the "Presets" tab, see CallQualityPreset. + QRadioButton *rbQualityMax; + QRadioButton *rbQualityAdaptive; + QRadioButton *rbQualityEconomy; + QRadioButton *rbQualityCustom; + // What the selected preset comes to on this machine with the selected + // camera, and which hardware encoders work. Null until built, which is + // after the camera lists that refresh it. + QLabel *lbQualitySummary; + // The hardware encoder probe has been asked of testCam's thread. + bool hwProbeRequested; + // Say on the tabs the custom settings live on that a preset is deciding + // them instead. + QLabel *lbCallPresetHint; + QLabel *lbVideoPresetHint; + + CallQualityPreset selectedQualityPreset() const; + // Enables what only the Custom preset uses, and disables it otherwise. + void updateCallQualityWidgets(); + void updateCallQualitySummary(); + QRadioButton *rbMLPProhibit; QRadioButton *rbMLPReplace; QRadioButton *rbMLPAllowMultiple; @@ -147,6 +168,10 @@ private: QComboBox *callAudioCodec; QSpinBox *callVideoBitrate; QSpinBox *callAudioBitrate; + // Holds the four above, and is disabled with a preset other than Custom. + // Whether callAudioBitrate is disabled on its own account - a fixed rate + // codec - is told by isEnabledTo(callCustomBox), see audioBitrateKbps. + QWidget *callCustomBox; // "Maximum incoming video resolution": the recommended resolution a call // sends to the peer in 0x70/0x71, see IncomingVideoLimit. The combo box @@ -355,6 +380,8 @@ private slots: // Greys out the audio bitrate box for a codec whose bitrate is not ours to // choose - see audioBitrateKbps. void callAudioCodecChanged(); + void callQualityChanged(); + void hardwareEncodersProbed(); // Device names are driver specific, so all three lists have to be filled // again when the driver changes. Only ever connected on Linux. void audioDriverChanged(int index); |
