Changeset 75319 in vbox
- Timestamp:
- Nov 8, 2018 10:56:06 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 126435
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r75291 r75319 609 609 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize: strResult = "GuestAutoresize"; break; 610 610 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_TakeScreenshot: strResult = "TakeScreenshot"; break; 611 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Recording: strResult = " VideoCapture"; break;612 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_RecordingSettings: strResult = " VideoCaptureSettings"; break;613 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_StartRecording: strResult = "Start VideoCapture"; break;611 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Recording: strResult = "Recording"; break; 612 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_RecordingSettings: strResult = "RecordingSettings"; break; 613 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_StartRecording: strResult = "StartRecording"; break; 614 614 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_VRDEServer: strResult = "VRDEServer"; break; 615 615 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_MenuBar: strResult = "MenuBar"; break; … … 649 649 keys << "GuestAutoresize"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize; 650 650 keys << "TakeScreenshot"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_TakeScreenshot; 651 keys << " VideoCapture";values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Recording;652 keys << " VideoCaptureSettings";values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_RecordingSettings;653 keys << "Start VideoCapture";values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_StartRecording;651 keys << "Recording"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Recording; 652 keys << "RecordingSettings"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_RecordingSettings; 653 keys << "StartRecording"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_StartRecording; 654 654 keys << "VRDEServer"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_VRDEServer; 655 655 keys << "MenuBar"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_MenuBar; … … 1403 1403 case IndicatorType_SharedFolders: strResult = "SharedFolders"; break; 1404 1404 case IndicatorType_Display: strResult = "Display"; break; 1405 case IndicatorType_Recording: strResult = " VideoCapture"; break;1405 case IndicatorType_Recording: strResult = "Recording"; break; 1406 1406 case IndicatorType_Features: strResult = "Features"; break; 1407 1407 case IndicatorType_Mouse: strResult = "Mouse"; break; … … 1430 1430 keys << "SharedFolders"; values << IndicatorType_SharedFolders; 1431 1431 keys << "Display"; values << IndicatorType_Display; 1432 keys << " VideoCapture";values << IndicatorType_Recording;1432 keys << "Recording"; values << IndicatorType_Recording; 1433 1433 keys << "Features"; values << IndicatorType_Features; 1434 1434 keys << "Mouse"; values << IndicatorType_Mouse; … … 1455 1455 case IndicatorType_SharedFolders: strResult = QApplication::translate("VBoxGlobal", "Shared Folders", "IndicatorType"); break; 1456 1456 case IndicatorType_Display: strResult = QApplication::translate("VBoxGlobal", "Display", "IndicatorType"); break; 1457 case IndicatorType_Recording: strResult = QApplication::translate("VBoxGlobal", " Video Capture", "IndicatorType"); break;1457 case IndicatorType_Recording: strResult = QApplication::translate("VBoxGlobal", "Recording", "IndicatorType"); break; 1458 1458 case IndicatorType_Features: strResult = QApplication::translate("VBoxGlobal", "Features", "IndicatorType"); break; 1459 1459 case IndicatorType_Mouse: strResult = QApplication::translate("VBoxGlobal", "Mouse", "IndicatorType"); break; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r75291 r75319 1083 1083 virtual void retranslateUi() /* override */ 1084 1084 { 1085 setName(QApplication::translate("UIActionPool", " Audio/&Video Capture"));1085 setName(QApplication::translate("UIActionPool", "&Recording")); 1086 1086 } 1087 1087 }; … … 1120 1120 virtual QString shortcutExtraDataID() const /* override */ 1121 1121 { 1122 return QString(" VideoCaptureSettingsDialog");1123 } 1124 1125 /** Handles translation event. */ 1126 virtual void retranslateUi() /* override */ 1127 { 1128 setName(QApplication::translate("UIActionPool", "& Video CaptureSettings..."));1129 setStatusTip(QApplication::translate("UIActionPool", "Display virtual machine settings window to configure video capture"));1122 return QString("RecordingSettingsDialog"); 1123 } 1124 1125 /** Handles translation event. */ 1126 virtual void retranslateUi() /* override */ 1127 { 1128 setName(QApplication::translate("UIActionPool", "&Recording Settings...")); 1129 setStatusTip(QApplication::translate("UIActionPool", "Display virtual machine settings window to configure video/audio recording")); 1130 1130 } 1131 1131 }; … … 1167 1167 virtual QString shortcutExtraDataID() const /* override */ 1168 1168 { 1169 return QString(" VideoCapture");1170 } 1171 1172 /** Handles translation event. */ 1173 virtual void retranslateUi() /* override */ 1174 { 1175 setName(QApplication::translate("UIActionPool", " Audio/&Video Capture"));1176 setStatusTip(QApplication::translate("UIActionPool", "Enable guest display video capture"));1169 return QString("Recording"); 1170 } 1171 1172 /** Handles translation event. */ 1173 virtual void retranslateUi() /* override */ 1174 { 1175 setName(QApplication::translate("UIActionPool", "&Recording")); 1176 setStatusTip(QApplication::translate("UIActionPool", "Enable guest video/audio recording")); 1177 1177 } 1178 1178 }; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h
r75291 r75319 124 124 /** Notifies about VRDE device state change. */ 125 125 void sigVRDEChange(); 126 /** Notifies about capturestate change. */126 /** Notifies about recording state change. */ 127 127 void sigRecordingChange(); 128 128 /** Notifies about USB controller state change. */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp
r75291 r75319 574 574 /* Get machine-name preserving error-info: */ 575 575 QString strMachineName(CMachine(comMachine).GetName()); 576 alertWithDetails(pParent, "cannotToggle VideoCapture",576 alertWithDetails(pParent, "cannotToggleRecording", 577 577 fEnable ? 578 QApplication::translate("UIMessageCenter", "Failed to enable video capturing for the virtual machine <b>%1</b>.").arg(strMachineName) :579 QApplication::translate("UIMessageCenter", "Failed to disable video capturing for the virtual machine <b>%1</b>.").arg(strMachineName),578 QApplication::translate("UIMessageCenter", "Failed to enable recording for the virtual machine <b>%1</b>.").arg(strMachineName) : 579 QApplication::translate("UIMessageCenter", "Failed to disable recording for the virtual machine <b>%1</b>.").arg(strMachineName), 580 580 UIErrorString::formatErrorInfo(comMachine)); 581 581 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp
r75291 r75319 450 450 451 451 /* Recording info: */ 452 CCaptureSettings c aptureSettings = machine.GetCaptureSettings();453 if (c aptureSettings.GetEnabled())452 CCaptureSettings comRecordingSettings = machine.GetCaptureSettings(); 453 if (comRecordingSettings.GetEnabled()) 454 454 { 455 455 /* For now all screens have the same config: */ 456 CCaptureScreenSettings c aptureScreen0Settings = captureSettings.GetScreenSettings(0);456 CCaptureScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 457 457 458 458 /** @todo r=andy Refine these texts (wrt audio and/or video). */ 459 table << UITextTableLine(QApplication::translate("UIDetails", "Recording File", "details (display/ video capture)"),460 c aptureScreen0Settings.GetFileName());461 table << UITextTableLine(QApplication::translate("UIDetails", "Recording Attributes", "details (display/ video capture)"),459 table << UITextTableLine(QApplication::translate("UIDetails", "Recording File", "details (display/recording)"), 460 comRecordingScreen0Settings.GetFileName()); 461 table << UITextTableLine(QApplication::translate("UIDetails", "Recording Attributes", "details (display/recording)"), 462 462 QApplication::translate("UIDetails", "Frame Size: %1x%2, Frame Rate: %3fps, Bit Rate: %4kbps") 463 .arg(c aptureScreen0Settings.GetVideoWidth()).arg(captureScreen0Settings.GetVideoHeight())464 .arg(c aptureScreen0Settings.GetVideoFPS()).arg(captureScreen0Settings.GetVideoRate()));463 .arg(comRecordingScreen0Settings.GetVideoWidth()).arg(comRecordingScreen0Settings.GetVideoHeight()) 464 .arg(comRecordingScreen0Settings.GetVideoFPS()).arg(comRecordingScreen0Settings.GetVideoRate())); 465 465 } 466 466 else 467 467 { 468 468 /** @todo r=andy Refine these texts (wrt audio and/or video). */ 469 table << UITextTableLine(QApplication::translate("UIDetails", "Recording", "details (display/ video capture)"),470 QApplication::translate("UIDetails", "Disabled", "details (display/ video capture)"));469 table << UITextTableLine(QApplication::translate("UIDetails", "Recording", "details (display/recording)"), 470 QApplication::translate("UIDetails", "Disabled", "details (display/recording)")); 471 471 } 472 472 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r75313 r75319 813 813 , m_pAnimation(0) 814 814 , m_dRotationAngle(0) 815 , m_e RecordingMode(UIIndicatorStateRecordingMode_None)815 , m_enmRecordingMode(UIIndicatorStateRecordingMode_None) 816 816 { 817 817 /* Assign state-icons: */ … … 880 880 { 881 881 /* Get machine: */ 882 const CMachine machine = m_pSession->machine();882 const CMachine comMachine = m_pSession->machine(); 883 883 const bool fMachinePaused = m_pSession->isPaused(); 884 884 885 885 /* Update indicator state early: */ 886 CCaptureSettings c aptureSettings = machine.GetCaptureSettings();887 Assert(c aptureSettings.isOk());888 if (!c aptureSettings.GetEnabled())886 CCaptureSettings comRecordingSettings = comMachine.GetCaptureSettings(); 887 Assert(comRecordingSettings.isOk()); 888 if (!comRecordingSettings.GetEnabled()) 889 889 setState(UIIndicatorStateRecording_Disabled); 890 890 else if (!fMachinePaused) … … 901 901 case UIIndicatorStateRecording_Disabled: 902 902 { 903 strFullData += s_strTableRow1 /** @todo r=andy Refine this tooltip (audio and/or video). */904 .arg(QApplication::translate("UIIndicatorsPool", " Video capture disabled", "Video capturetooltip"));903 strFullData += s_strTableRow1 904 .arg(QApplication::translate("UIIndicatorsPool", "Recording disabled", "Recording tooltip")); 905 905 break; 906 906 } … … 909 909 { 910 910 QString strToolTip; 911 if ( m_eRecordingMode & UIIndicatorStateRecordingMode_Audio &&912 m_eRecordingMode & UIIndicatorStateRecordingMode_Video)913 strToolTip = "Video/audio capture file";914 else if (m_e RecordingMode & UIIndicatorStateRecordingMode_Audio)915 strToolTip = "Audio capture file";916 else if (m_e RecordingMode & UIIndicatorStateRecordingMode_Video)917 strToolTip = "Video capture file";911 if ( m_enmRecordingMode & UIIndicatorStateRecordingMode_Audio 912 && m_enmRecordingMode & UIIndicatorStateRecordingMode_Video) 913 strToolTip = QApplication::translate("UIIndicatorsPool", "Video/audio recording file", "Recording tooltip"); 914 else if (m_enmRecordingMode & UIIndicatorStateRecordingMode_Audio) 915 strToolTip = QApplication::translate("UIIndicatorsPool", "Audio recording file", "Recording tooltip"); 916 else if (m_enmRecordingMode & UIIndicatorStateRecordingMode_Video) 917 strToolTip = QApplication::translate("UIIndicatorsPool", "Video recording file", "Recording tooltip"); 918 918 919 919 /* For now all screens have the same config: */ 920 CCaptureScreenSettings c aptureScreen0Settings = captureSettings.GetScreenSettings(0);921 Assert(c aptureScreen0Settings.isOk());922 923 strFullData += s_strTableRow2 /** @todo r=andy Refine this tooltip (audio and/or video). */924 .arg( QApplication::translate("UIIndicatorsPool", strToolTip.toLatin1().constData(), "Video capture tooltip"))925 .arg(c aptureScreen0Settings.GetFileName());920 CCaptureScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 921 Assert(comRecordingScreen0Settings.isOk()); 922 923 strFullData += s_strTableRow2 924 .arg(strToolTip) 925 .arg(comRecordingScreen0Settings.GetFileName()); 926 926 break; 927 927 } … … 943 943 void setRotationAngle(double dRotationAngle) { m_dRotationAngle = dRotationAngle; update(); } 944 944 945 /* Parses CaptureScreenSettings::Options and updates m_e RecordingMode accordingly. */945 /* Parses CaptureScreenSettings::Options and updates m_enmRecordingMode accordingly. */ 946 946 void updateRecordingMode() 947 947 { 948 m_e RecordingMode = UIIndicatorStateRecordingMode_None;948 m_enmRecordingMode = UIIndicatorStateRecordingMode_None; 949 949 950 950 /* Get machine: */ 951 951 if (!m_pSession) 952 952 return; 953 const CMachine machine = m_pSession->machine();954 if ( machine.isNull())953 const CMachine comMachine = m_pSession->machine(); 954 if (comMachine.isNull()) 955 955 return; 956 956 957 CCaptureSettings recordingSettings = machine.GetCaptureSettings();957 CCaptureSettings comRecordingSettings = comMachine.GetCaptureSettings(); 958 958 /* For now all screens have the same config: */ 959 CCaptureScreenSettings recordingScreen0Settings = recordingSettings.GetScreenSettings(0);959 CCaptureScreenSettings recordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 960 960 if (recordingScreen0Settings.IsFeatureEnabled(KCaptureFeature_Video)) 961 m_e RecordingMode = (UIIndicatorStateRecordingMode)((int)m_eRecordingMode | (int)UIIndicatorStateRecordingMode_Video);961 m_enmRecordingMode = (UIIndicatorStateRecordingMode)((int)m_enmRecordingMode | (int)UIIndicatorStateRecordingMode_Video); 962 962 963 963 if (recordingScreen0Settings.IsFeatureEnabled(KCaptureFeature_Audio)) 964 m_e RecordingMode = (UIIndicatorStateRecordingMode)((int)m_eRecordingMode | (int)UIIndicatorStateRecordingMode_Audio);964 m_enmRecordingMode = (UIIndicatorStateRecordingMode)((int)m_enmRecordingMode | (int)UIIndicatorStateRecordingMode_Audio); 965 965 } 966 966 … … 970 970 double m_dRotationAngle; 971 971 972 UIIndicatorStateRecordingMode m_eRecordingMode; 972 /** Holds the recording mode. */ 973 UIIndicatorStateRecordingMode m_enmRecordingMode; 973 974 }; 974 975 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r75291 r75319 2104 2104 2105 2105 /* Make sure something had changed: */ 2106 CCaptureSettings recordingSettings = machine().GetCaptureSettings();2107 if ( recordingSettings.GetEnabled() == static_cast<BOOL>(fEnabled))2106 CCaptureSettings comRecordingSettings = machine().GetCaptureSettings(); 2107 if (comRecordingSettings.GetEnabled() == static_cast<BOOL>(fEnabled)) 2108 2108 return; 2109 2109 2110 2110 /* Update recording state: */ 2111 recordingSettings.SetEnabled(fEnabled);2112 if (! recordingSettings.isOk())2111 comRecordingSettings.SetEnabled(fEnabled); 2112 if (!comRecordingSettings.isOk()) 2113 2113 { 2114 2114 /* Make sure action is updated: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r75291 r75319 724 724 void UISession::sltRecordingChange() 725 725 { 726 CCaptureSettings c aptureSettings = machine().GetCaptureSettings();726 CCaptureSettings comRecordingSettings = machine().GetCaptureSettings(); 727 727 728 728 /* Check/Uncheck Capture action depending on feature status: */ 729 729 actionPool()->action(UIActionIndexRT_M_View_M_Recording_T_Start)->blockSignals(true); 730 actionPool()->action(UIActionIndexRT_M_View_M_Recording_T_Start)->setChecked(c aptureSettings.GetEnabled());730 actionPool()->action(UIActionIndexRT_M_View_M_Recording_T_Start)->setChecked(comRecordingSettings.GetEnabled()); 731 731 actionPool()->action(UIActionIndexRT_M_View_M_Recording_T_Start)->blockSignals(false); 732 732 733 /* Notify listeners about Capturechange: */733 /* Notify listeners about Recording change: */ 734 734 emit sigRecordingChange(); 735 735 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r75291 r75319 258 258 /** Updates VRDE Server action state. */ 259 259 void updateStatusVRDE() { sltVRDEChange(); } 260 /** Updates Video Captureaction state. */260 /** Updates Recording action state. */ 261 261 void updateStatusRecording() { sltRecordingChange(); } 262 262 /** Updates Audio output action state. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r75291 r75319 219 219 case IndicatorType_SharedFolders: pAction = actionPool()->action(UIActionIndexRT_M_Devices_M_SharedFolders); break; 220 220 case IndicatorType_Display: pAction = actionPool()->action(UIActionIndexRT_M_ViewPopup); break; 221 case IndicatorType_Recording: pAction = actionPool()->action(UIActionIndexRT_M_View_M_Recording);break;221 case IndicatorType_Recording: pAction = actionPool()->action(UIActionIndexRT_M_View_M_Recording); break; 222 222 case IndicatorType_Mouse: pAction = actionPool()->action(UIActionIndexRT_M_Input_M_Mouse); break; 223 223 case IndicatorType_Keyboard: pAction = actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard); break; -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp
r75291 r75319 1377 1377 { 1378 1378 ++iRowCount; 1379 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Recording File", "details (display/ video capture)"),1379 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Recording File", "details (display/recording)"), 1380 1380 empReport(aRecordingReport.value(0), aRecordingReportOld.value(0))); 1381 1381 ++iRowCount; 1382 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Recording Attributes", "details (display/ video capture)"),1382 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Recording Attributes", "details (display/recording)"), 1383 1383 empReport(aRecordingReport.value(1), aRecordingReportOld.value(1))); 1384 1384 } … … 1386 1386 { 1387 1387 ++iRowCount; 1388 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Recording", "details (display/ video capture)"),1389 empReport(QApplication::translate("UIGDetails", "Disabled", "details (display/ video capture)"), aRecordingReportOld.isEmpty()));1388 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Recording", "details (display/recording)"), 1389 empReport(QApplication::translate("UIGDetails", "Disabled", "details (display/recording)"), aRecordingReportOld.isEmpty())); 1390 1390 } 1391 1391 … … 1748 1748 QStringList aReport; 1749 1749 /* Acquire recording status: */ 1750 CCaptureSettings recordingSettings = comMachine.GetCaptureSettings();1750 CCaptureSettings comRecordingSettings = comMachine.GetCaptureSettings(); 1751 1751 /* For now all screens have the same config: */ 1752 CCaptureScreenSettings recordingScreen0Settings = recordingSettings.GetScreenSettings(0);1753 if ( recordingScreen0Settings.GetEnabled())1754 { 1755 /* Recording ile: */1756 aReport << recordingScreen0Settings.GetFileName();1752 CCaptureScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 1753 if (comRecordingScreen0Settings.GetEnabled()) 1754 { 1755 /* Recording file: */ 1756 aReport << comRecordingScreen0Settings.GetFileName(); 1757 1757 /* Recording attributes: */ 1758 1758 aReport << QApplication::translate("UIGDetails", "Frame Size: %1x%2, Frame Rate: %3fps, Bit Rate: %4kbps") 1759 .arg( recordingScreen0Settings.GetVideoWidth())1760 .arg( recordingScreen0Settings.GetVideoHeight())1761 .arg( recordingScreen0Settings.GetVideoFPS())1762 .arg( recordingScreen0Settings.GetVideoRate());1759 .arg(comRecordingScreen0Settings.GetVideoWidth()) 1760 .arg(comRecordingScreen0Settings.GetVideoHeight()) 1761 .arg(comRecordingScreen0Settings.GetVideoFPS()) 1762 .arg(comRecordingScreen0Settings.GetVideoRate()); 1763 1763 } 1764 1764 /* Return report: */
Note:
See TracChangeset
for help on using the changeset viewer.