Changeset 46461 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 10, 2013 12:03:03 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86304
- 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 465 465 } 466 466 467 void UIMachineSettingsDisplay::sltHandleVideoCapture SizeChange(int iCurrentIndex)467 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameSizeComboboxChange() 468 468 { 469 469 /* Get the proposed size: */ 470 int iCurrentIndex = m_pComboVideoCaptureSize->currentIndex(); 470 471 QSize videoCaptureSize = m_pComboVideoCaptureSize->itemData(iCurrentIndex).toSize(); 471 472 … … 479 480 } 480 481 481 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRateChange(int iFrameRate) 482 { 483 /* Apply proposed frame-rate: */ 484 m_pEditorVideoCaptureFrameRate->setValue(iFrameRate); 485 } 486 487 void UIMachineSettingsDisplay::sltHandleVideoCaptureWidthChange() 482 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameWidthSpinboxChange() 488 483 { 489 484 /* Look for preset: */ … … 493 488 } 494 489 495 void UIMachineSettingsDisplay::sltHandleVideoCapture HeightChange()490 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameHeightSpinboxChange() 496 491 { 497 492 /* Look for preset: */ … … 501 496 } 502 497 503 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRate Change()498 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRateSliderChange() 504 499 { 505 500 /* 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 508 void UIMachineSettingsDisplay::sltHandleVideoCaptureFrameRateSpinboxChange() 509 { 510 /* Apply proposed frame-rate: */ 511 m_pSliderVideoCaptureFrameRate->blockSignals(true); 506 512 m_pSliderVideoCaptureFrameRate->setValue(m_pEditorVideoCaptureFrameRate->value()); 513 m_pSliderVideoCaptureFrameRate->blockSignals(false); 507 514 /* Update quality and bit-rate: */ 508 515 sltHandleVideoCaptureQualitySliderChange(); … … 633 640 m_pComboVideoCaptureSize->addItem("1920 x 1080 (16:9)", QVariant(QSize(1920, 1080))); 634 641 m_pComboVideoCaptureSize->addItem("1920 x 1200 (16:10)", QVariant(QSize(1920, 1200))); 635 connect(m_pComboVideoCaptureSize, SIGNAL(currentIndexChanged(int)), this, SLOT(sltHandleVideoCapture SizeChange(int)));642 connect(m_pComboVideoCaptureSize, SIGNAL(currentIndexChanged(int)), this, SLOT(sltHandleVideoCaptureFrameSizeComboboxChange())); 636 643 637 644 /* Prepare frame-width/height spin-boxes: */ … … 642 649 m_pEditorVideoCaptureHeight->setMinimum(16); 643 650 m_pEditorVideoCaptureHeight->setMaximum(1200); 644 connect(m_pEditorVideoCaptureWidth, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCapture WidthChange()));645 connect(m_pEditorVideoCaptureHeight, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCapture HeightChange()));651 connect(m_pEditorVideoCaptureWidth, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameWidthSpinboxChange())); 652 connect(m_pEditorVideoCaptureHeight, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameHeightSpinboxChange())); 646 653 647 654 /* Prepare frame-rate slider: */ … … 654 661 m_pSliderVideoCaptureFrameRate->setOptimalHint(1, 25); 655 662 m_pSliderVideoCaptureFrameRate->setWarningHint(25, 30); 656 connect(m_pSliderVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRate Change(int)));663 connect(m_pSliderVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRateSliderChange())); 657 664 658 665 /* Prepare frame-rate spin-box: */ … … 660 667 m_pEditorVideoCaptureFrameRate->setMinimum(1); 661 668 m_pEditorVideoCaptureFrameRate->setMaximum(30); 662 connect(m_pEditorVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRate Change()));669 connect(m_pEditorVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleVideoCaptureFrameRateSpinboxChange())); 663 670 664 671 /* Prepare quality combo-box: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r46459 r46461 167 167 168 168 /* Handlers: Video Capture stuff: */ 169 void sltHandleVideoCapture SizeChange(int iCurrentIndex);170 void sltHandleVideoCaptureFrame RateChange(int iFrameRate);171 void sltHandleVideoCapture WidthChange();172 void sltHandleVideoCapture HeightChange();173 void sltHandleVideoCaptureFrameRate Change();169 void sltHandleVideoCaptureFrameSizeComboboxChange(); 170 void sltHandleVideoCaptureFrameWidthSpinboxChange(); 171 void sltHandleVideoCaptureFrameHeightSpinboxChange(); 172 void sltHandleVideoCaptureFrameRateSliderChange(); 173 void sltHandleVideoCaptureFrameRateSpinboxChange(); 174 174 void sltHandleVideoCaptureQualitySliderChange(); 175 175 void sltHandleVideoCaptureBitRateSpinboxChange();
Note:
See TracChangeset
for help on using the changeset viewer.