Changeset 42838 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Aug 16, 2012 9:21:09 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80095
- Location:
- trunk/src/VBox/Main/xml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r42551 r42838 1589 1589 #endif 1590 1590 1591 /**1592 * Hardware struct constructor.1593 */1594 1591 Hardware::Hardware() 1595 1592 : strVersion("1"), … … 1610 1607 fAccelerate3D(false), 1611 1608 fAccelerate2DVideo(false), 1609 ulVideoCaptureHorzRes(640), 1610 ulVideoCaptureVertRes(480), 1611 fVideoCaptureEnabled(false), 1612 strVideoCaptureFile("Test.webm"), 1612 1613 firmwareType(FirmwareType_BIOS), 1613 1614 pointingHIDType(PointingHIDType_PS2Mouse), … … 1674 1675 && (fAccelerate3D == h.fAccelerate3D) 1675 1676 && (fAccelerate2DVideo == h.fAccelerate2DVideo) 1677 && (fVideoCaptureEnabled == h.fVideoCaptureEnabled) 1678 && (strVideoCaptureFile == h.strVideoCaptureFile) 1679 && (ulVideoCaptureHorzRes == h.ulVideoCaptureHorzRes) 1680 && (ulVideoCaptureVertRes == h.ulVideoCaptureVertRes) 1676 1681 && (firmwareType == h.firmwareType) 1677 1682 && (pointingHIDType == h.pointingHIDType) … … 2556 2561 pelmHwChild->getAttributeValue("accelerate2DVideo", hw.fAccelerate2DVideo); 2557 2562 } 2563 else if (pelmHwChild->nameEquals("VideoRecording")) 2564 { 2565 pelmHwChild->getAttributeValue("enabled", hw.fVideoCaptureEnabled); 2566 pelmHwChild->getAttributeValue("file", hw.strVideoCaptureFile); 2567 pelmHwChild->getAttributeValue("horzRes", hw.ulVideoCaptureHorzRes); 2568 pelmHwChild->getAttributeValue("vertRes", hw.ulVideoCaptureVertRes); 2569 } 2570 2558 2571 else if (pelmHwChild->nameEquals("RemoteDisplay")) 2559 2572 { … … 3702 3715 if (m->sv >= SettingsVersion_v1_8) 3703 3716 pelmDisplay->setAttribute("accelerate2DVideo", hw.fAccelerate2DVideo); 3717 xml::ElementNode *pelmVideoCapture = pelmHardware->createChild("VideoRecording"); 3718 3719 if (m->sv >= SettingsVersion_v1_12) 3720 { 3721 pelmVideoCapture->setAttribute("enabled", hw.fVideoCaptureEnabled); 3722 pelmVideoCapture->setAttribute("file", hw.strVideoCaptureFile); 3723 pelmVideoCapture->setAttribute("horzRes", hw.ulVideoCaptureHorzRes); 3724 pelmVideoCapture->setAttribute("vertRes", hw.ulVideoCaptureVertRes); 3725 } 3704 3726 3705 3727 xml::ElementNode *pelmVRDE = pelmHardware->createChild("RemoteDisplay"); -
trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd
r42261 r42838 460 460 461 461 <xsd:complexType name="TDisplay"> 462 <xsd:element name="VideoRecording"> 463 <xsd:complexType> 464 <xsd:attribute name="enabled" type="xsd:boolean"/> 465 <xsd:attribute name="file" type="xsd:string"/> 466 <xsd:attribute name="horzRes" use="required"> 467 <xsd:simpleType> 468 <xsd:restriction base="xsd:unsignedInt"> 469 <xsd:minInclusive value="4"/> 470 <xsd:maxInclusive value="2097152"/> 471 </xsd:restriction> 472 </xsd:simpleType> 473 </xsd:attribute> 474 <xsd:attribute name="vertRes" type="xsd:unsignedInt"/> 475 </xsd:complexType> 476 </xsd:element> 462 477 <xsd:attribute name="VRAMSize" use="required"> 463 478 <xsd:simpleType>
Note:
See TracChangeset
for help on using the changeset viewer.