VirtualBox

Ignore:
Timestamp:
Jun 10, 2013 12:03:03 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86304
Message:

FE/Qt: Machine settings: Display page: Video Capture tab: Little cleanup.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r46459 r46461  
    465465}
    466466
    467 void UIMachineSettingsDisplay::sltHandleVideoCaptureSizeChange(int iCurrentIndex)
     467void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameSizeComboboxChange()
    468468{
    469469    /* Get the proposed size: */
     470    int iCurrentIndex = m_pComboVideoCaptureSize->currentIndex();
    470471    QSize videoCaptureSize = m_pComboVideoCaptureSize->itemData(iCurrentIndex).toSize();
    471472
     
    479480}
    480481
    481 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRateChange(int iFrameRate)
    482 {
    483     /* Apply proposed frame-rate: */
    484     m_pEditorVideoCaptureFrameRate->setValue(iFrameRate);
    485 }
    486 
    487 void UIMachineSettingsDisplay::sltHandleVideoCaptureWidthChange()
     482void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameWidthSpinboxChange()
    488483{
    489484    /* Look for preset: */
     
    493488}
    494489
    495 void UIMachineSettingsDisplay::sltHandleVideoCaptureHeightChange()
     490void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameHeightSpinboxChange()
    496491{
    497492    /* Look for preset: */
     
    501496}
    502497
    503 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRateChange()
     498void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRateSliderChange()
    504499{
    505500    /* Apply proposed frame-rate: */
     501    m_pEditorVideoCaptureFrameRate->blockSignals(true);
     502    m_pEditorVideoCaptureFrameRate->setValue(m_pSliderVideoCaptureFrameRate->value());
     503    m_pEditorVideoCaptureFrameRate->blockSignals(false);
     504    /* Update quality and bit-rate: */
     505    sltHandleVideoCaptureQualitySliderChange();
     506}
     507
     508void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRateSpinboxChange()
     509{
     510    /* Apply proposed frame-rate: */
     511    m_pSliderVideoCaptureFrameRate->blockSignals(true);
    506512    m_pSliderVideoCaptureFrameRate->setValue(m_pEditorVideoCaptureFrameRate->value());
     513    m_pSliderVideoCaptureFrameRate->blockSignals(false);
    507514    /* Update quality and bit-rate: */
    508515    sltHandleVideoCaptureQualitySliderChange();
     
    633640    m_pComboVideoCaptureSize->addItem("1920 x 1080 (16:9)",  QVariant(QSize(1920, 1080)));
    634641    m_pComboVideoCaptureSize->addItem("1920 x 1200 (16:10)", QVariant(QSize(1920, 1200)));
    635     connect(m_pComboVideoCaptureSize, SIGNAL(currentIndexChanged(int)), this, SLOT(sltHandleVideoCaptureSizeChange(int)));
     642    connect(m_pComboVideoCaptureSize, SIGNAL(currentIndexChanged(int)), this, SLOT(sltHandleVideoCaptureFrameSizeComboboxChange()));
    636643
    637644    /* Prepare frame-width/height spin-boxes: */
     
    642649    m_pEditorVideoCaptureHeight->setMinimum(16);
    643650    m_pEditorVideoCaptureHeight->setMaximum(1200);
    644     connect(m_pEditorVideoCaptureWidth, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureWidthChange()));
    645     connect(m_pEditorVideoCaptureHeight, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureHeightChange()));
     651    connect(m_pEditorVideoCaptureWidth, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameWidthSpinboxChange()));
     652    connect(m_pEditorVideoCaptureHeight, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameHeightSpinboxChange()));
    646653
    647654    /* Prepare frame-rate slider: */
     
    654661    m_pSliderVideoCaptureFrameRate->setOptimalHint(1, 25);
    655662    m_pSliderVideoCaptureFrameRate->setWarningHint(25, 30);
    656     connect(m_pSliderVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRateChange(int)));
     663    connect(m_pSliderVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRateSliderChange()));
    657664
    658665    /* Prepare frame-rate spin-box: */
     
    660667    m_pEditorVideoCaptureFrameRate->setMinimum(1);
    661668    m_pEditorVideoCaptureFrameRate->setMaximum(30);
    662     connect(m_pEditorVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRateChange()));
     669    connect(m_pEditorVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRateSpinboxChange()));
    663670
    664671    /* Prepare quality combo-box: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h

    r46459 r46461  
    167167
    168168    /* Handlers: Video Capture stuff: */
    169     void sltHandleVideoCaptureSizeChange(int iCurrentIndex);
    170     void sltHandleVideoCaptureFrameRateChange(int iFrameRate);
    171     void sltHandleVideoCaptureWidthChange();
    172     void sltHandleVideoCaptureHeightChange();
    173     void sltHandleVideoCaptureFrameRateChange();
     169    void sltHandleVideoCaptureFrameSizeComboboxChange();
     170    void sltHandleVideoCaptureFrameWidthSpinboxChange();
     171    void sltHandleVideoCaptureFrameHeightSpinboxChange();
     172    void sltHandleVideoCaptureFrameRateSliderChange();
     173    void sltHandleVideoCaptureFrameRateSpinboxChange();
    174174    void sltHandleVideoCaptureQualitySliderChange();
    175175    void sltHandleVideoCaptureBitRateSpinboxChange();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette