VirtualBox

Changeset 1915 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2007 9:20:12 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20167
Message:

1920: Add UI for the Clipboard settings:

Made as designed: Advanced tab of the General category of VMSettings, above the Snapshot Folder group.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r1902 r1915  
    234234    }
    235235
     236    QString toString (CEnums::ClipboardMode t) const
     237    {
     238        AssertMsg (!clipboardTypes [t].isNull(), ("No text for %d", t));
     239        return clipboardTypes [t];
     240    }
     241
     242    CEnums::ClipboardMode toClipboardModeType (const QString &s) const
     243    {
     244        QStringVector::const_iterator it =
     245            qFind (clipboardTypes.begin(), clipboardTypes.end(), s);
     246        AssertMsg (it != clipboardTypes.end(), ("No value for {%s}", s.latin1()));
     247        return CEnums::ClipboardMode (it - clipboardTypes.begin());
     248    }
     249
    236250    CEnums::VRDPAuthType toVRDPAuthType (const QString &s) const
    237251    {
     
    510524    QStringVector audioDriverTypes;
    511525    QStringVector networkAttachmentTypes;
     526    QStringVector clipboardTypes;
    512527    QStringVector USBDeviceStates;
    513528
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r1902 r1915  
    501501    , audioDriverTypes (CEnums::AudioDriverType_COUNT)
    502502    , networkAttachmentTypes (CEnums::NetworkAttachmentType_COUNT)
     503    , clipboardTypes (CEnums::ClipboardMode_COUNT)
    503504    , USBDeviceStates (CEnums::USBDeviceState_COUNT)
    504505    , detailReportTemplatesReady (false)
     
    17541755        tr ("Internal Network", "NetworkAttachmentType");
    17551756
     1757    clipboardTypes [CEnums::ClipDisabled] =
     1758        tr ("Disabled", "ClipboardType");
     1759    clipboardTypes [CEnums::ClipHostToGuest] =
     1760        tr ("HostToGuest", "ClipboardType");
     1761    clipboardTypes [CEnums::ClipGuestToHost] =
     1762        tr ("GuestToHost", "ClipboardType");
     1763    clipboardTypes [CEnums::ClipBidirectional] =
     1764        tr ("Bidirectional", "ClipboardType");
     1765
    17561766    USBDeviceStates [CEnums::USBDeviceNotSupported] =
    17571767        tr ("Not supported", "USBDeviceState");
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui

    r1889 r1915  
    2727            <x>0</x>
    2828            <y>0</y>
    29             <width>465</width>
    30             <height>493</height>
     29            <width>486</width>
     30            <height>405</height>
    3131        </rect>
    3232    </property>
     
    975975                                <string>&amp;Advanced</string>
    976976                            </attribute>
    977                             <grid>
     977                            <vbox>
    978978                                <property name="name">
    979979                                    <cstring>unnamed</cstring>
     
    985985                                    <number>10</number>
    986986                                </property>
    987                                 <widget class="QGroupBox" row="2" column="0" rowspan="1" colspan="3">
     987                                <widget class="QLayoutWidget">
     988                                    <property name="name">
     989                                        <cstring>layout148</cstring>
     990                                    </property>
     991                                    <hbox>
     992                                        <property name="name">
     993                                            <cstring>unnamed</cstring>
     994                                        </property>
     995                                        <widget class="QLayoutWidget">
     996                                            <property name="name">
     997                                                <cstring>layout147</cstring>
     998                                            </property>
     999                                            <vbox>
     1000                                                <property name="name">
     1001                                                    <cstring>unnamed</cstring>
     1002                                                </property>
     1003                                                <property name="margin">
     1004                                                    <number>0</number>
     1005                                                </property>
     1006                                                <property name="spacing">
     1007                                                    <number>0</number>
     1008                                                </property>
     1009                                                <widget class="QGroupBox">
     1010                                                    <property name="name">
     1011                                                        <cstring>groupBox12</cstring>
     1012                                                    </property>
     1013                                                    <property name="sizePolicy">
     1014                                                        <sizepolicy>
     1015                                                            <hsizetype>0</hsizetype>
     1016                                                            <vsizetype>0</vsizetype>
     1017                                                            <horstretch>0</horstretch>
     1018                                                            <verstretch>0</verstretch>
     1019                                                        </sizepolicy>
     1020                                                    </property>
     1021                                                    <property name="title">
     1022                                                        <string>Boo&amp;t Order</string>
     1023                                                    </property>
     1024                                                    <vbox>
     1025                                                        <property name="name">
     1026                                                            <cstring>unnamed</cstring>
     1027                                                        </property>
     1028                                                    </vbox>
     1029                                                </widget>
     1030                                                <spacer>
     1031                                                    <property name="name">
     1032                                                        <cstring>spacer129</cstring>
     1033                                                    </property>
     1034                                                    <property name="orientation">
     1035                                                        <enum>Vertical</enum>
     1036                                                    </property>
     1037                                                    <property name="sizeType">
     1038                                                        <enum>Minimum</enum>
     1039                                                    </property>
     1040                                                    <property name="sizeHint">
     1041                                                        <size>
     1042                                                            <width>21</width>
     1043                                                            <height>0</height>
     1044                                                        </size>
     1045                                                    </property>
     1046                                                </spacer>
     1047                                            </vbox>
     1048                                        </widget>
     1049                                        <widget class="QLayoutWidget">
     1050                                            <property name="name">
     1051                                                <cstring>layout146</cstring>
     1052                                            </property>
     1053                                            <vbox>
     1054                                                <property name="name">
     1055                                                    <cstring>unnamed</cstring>
     1056                                                </property>
     1057                                                <property name="margin">
     1058                                                    <number>0</number>
     1059                                                </property>
     1060                                                <property name="spacing">
     1061                                                    <number>0</number>
     1062                                                </property>
     1063                                                <widget class="QGroupBox">
     1064                                                    <property name="name">
     1065                                                        <cstring>groupBox23</cstring>
     1066                                                    </property>
     1067                                                    <property name="sizePolicy">
     1068                                                        <sizepolicy>
     1069                                                            <hsizetype>7</hsizetype>
     1070                                                            <vsizetype>0</vsizetype>
     1071                                                            <horstretch>1</horstretch>
     1072                                                            <verstretch>0</verstretch>
     1073                                                        </sizepolicy>
     1074                                                    </property>
     1075                                                    <property name="title">
     1076                                                        <string>Extended Features</string>
     1077                                                    </property>
     1078                                                    <vbox>
     1079                                                        <property name="name">
     1080                                                            <cstring>unnamed</cstring>
     1081                                                        </property>
     1082                                                        <widget class="QCheckBox">
     1083                                                            <property name="name">
     1084                                                                <cstring>chbEnableACPI</cstring>
     1085                                                            </property>
     1086                                                            <property name="text">
     1087                                                                <string>Enable A&amp;CPI</string>
     1088                                                            </property>
     1089                                                            <property name="accel">
     1090                                                                <string>Alt+C</string>
     1091                                                            </property>
     1092                                                            <property name="whatsThis" stdset="0">
     1093                                                                <string>When checked, the virtual machine will support
     1094the Advanced Configuration and Power Management Interface (ACPI). &lt;b&gt;Note:&lt;/b&gt; don't disable
     1095this feature after having installed a Windows guest operating system!</string>
     1096                                                            </property>
     1097                                                        </widget>
     1098                                                        <widget class="QCheckBox">
     1099                                                            <property name="name">
     1100                                                                <cstring>chbEnableIOAPIC</cstring>
     1101                                                            </property>
     1102                                                            <property name="text">
     1103                                                                <string>Enable IO A&amp;PIC</string>
     1104                                                            </property>
     1105                                                            <property name="accel">
     1106                                                                <string>Alt+P</string>
     1107                                                            </property>
     1108                                                            <property name="whatsThis" stdset="0">
     1109                                                                <string>When checked, the virtual machine will support
     1110the Input Output APIC (IO APIC), which may slightly decrease the VM performance. &lt;b&gt;Note:&lt;/b&gt; don't disable
     1111this feature after having installed a Windows guest operating system!</string>
     1112                                                            </property>
     1113                                                        </widget>
     1114                                                    </vbox>
     1115                                                </widget>
     1116                                                <spacer>
     1117                                                    <property name="name">
     1118                                                        <cstring>spacer128</cstring>
     1119                                                    </property>
     1120                                                    <property name="orientation">
     1121                                                        <enum>Vertical</enum>
     1122                                                    </property>
     1123                                                    <property name="sizeType">
     1124                                                        <enum>Minimum</enum>
     1125                                                    </property>
     1126                                                    <property name="sizeHint">
     1127                                                        <size>
     1128                                                            <width>20</width>
     1129                                                            <height>0</height>
     1130                                                        </size>
     1131                                                    </property>
     1132                                                </spacer>
     1133                                            </vbox>
     1134                                        </widget>
     1135                                    </hbox>
     1136                                </widget>
     1137                                <widget class="QGroupBox">
     1138                                    <property name="name">
     1139                                        <cstring>groupBox61</cstring>
     1140                                    </property>
     1141                                    <property name="title">
     1142                                        <string>&amp;Shared Clipboard</string>
     1143                                    </property>
     1144                                    <hbox>
     1145                                        <property name="name">
     1146                                            <cstring>unnamed</cstring>
     1147                                        </property>
     1148                                        <widget class="QComboBox">
     1149                                            <property name="name">
     1150                                                <cstring>cbSharedClipboard</cstring>
     1151                                            </property>
     1152                                            <property name="sizePolicy">
     1153                                                <sizepolicy>
     1154                                                    <hsizetype>5</hsizetype>
     1155                                                    <vsizetype>0</vsizetype>
     1156                                                    <horstretch>0</horstretch>
     1157                                                    <verstretch>0</verstretch>
     1158                                                </sizepolicy>
     1159                                            </property>
     1160                                        </widget>
     1161                                        <spacer>
     1162                                            <property name="name">
     1163                                                <cstring>spacer130</cstring>
     1164                                            </property>
     1165                                            <property name="orientation">
     1166                                                <enum>Horizontal</enum>
     1167                                            </property>
     1168                                            <property name="sizeType">
     1169                                                <enum>Expanding</enum>
     1170                                            </property>
     1171                                            <property name="sizeHint">
     1172                                                <size>
     1173                                                    <width>0</width>
     1174                                                    <height>20</height>
     1175                                                </size>
     1176                                            </property>
     1177                                        </spacer>
     1178                                    </hbox>
     1179                                </widget>
     1180                                <widget class="QGroupBox">
    9881181                                    <property name="name">
    9891182                                        <cstring>groupBox5</cstring>
    9901183                                    </property>
    9911184                                    <property name="title">
    992                                         <string>&amp;Snapshot Folder</string>
     1185                                        <string>S&amp;napshot Folder</string>
    9931186                                    </property>
    9941187                                    <grid>
     
    10571250                                    </grid>
    10581251                                </widget>
    1059                                 <spacer row="3" column="1">
     1252                                <spacer>
    10601253                                    <property name="name">
    10611254                                        <cstring>spacer119_2</cstring>
     
    10741267                                    </property>
    10751268                                </spacer>
    1076                                 <widget class="QGroupBox" row="0" column="1" rowspan="1" colspan="2">
    1077                                     <property name="name">
    1078                                         <cstring>groupBox23</cstring>
    1079                                     </property>
    1080                                     <property name="sizePolicy">
    1081                                         <sizepolicy>
    1082                                             <hsizetype>7</hsizetype>
    1083                                             <vsizetype>5</vsizetype>
    1084                                             <horstretch>1</horstretch>
    1085                                             <verstretch>0</verstretch>
    1086                                         </sizepolicy>
    1087                                     </property>
    1088                                     <property name="title">
    1089                                         <string>Extended Features</string>
    1090                                     </property>
    1091                                     <vbox>
    1092                                         <property name="name">
    1093                                             <cstring>unnamed</cstring>
    1094                                         </property>
    1095                                         <widget class="QCheckBox">
    1096                                             <property name="name">
    1097                                                 <cstring>chbEnableACPI</cstring>
    1098                                             </property>
    1099                                             <property name="text">
    1100                                                 <string>Enable A&amp;CPI</string>
    1101                                             </property>
    1102                                             <property name="accel">
    1103                                                 <string>Alt+C</string>
    1104                                             </property>
    1105                                             <property name="whatsThis" stdset="0">
    1106                                                 <string>When checked, the virtual machine will support
    1107 the Advanced Configuration and Power Management Interface (ACPI). &lt;b&gt;Note:&lt;/b&gt; don't disable
    1108 this feature after having installed a Windows guest operating system!</string>
    1109                                             </property>
    1110                                         </widget>
    1111                                         <widget class="QCheckBox">
    1112                                             <property name="name">
    1113                                                 <cstring>chbEnableIOAPIC</cstring>
    1114                                             </property>
    1115                                             <property name="text">
    1116                                                 <string>Enable IO A&amp;PIC</string>
    1117                                             </property>
    1118                                             <property name="accel">
    1119                                                 <string>Alt+P</string>
    1120                                             </property>
    1121                                             <property name="whatsThis" stdset="0">
    1122                                                 <string>When checked, the virtual machine will support
    1123 the Input Output APIC (IO APIC), which may slightly decrease the VM performance. &lt;b&gt;Note:&lt;/b&gt; don't disable
    1124 this feature after having installed a Windows guest operating system!</string>
    1125                                             </property>
    1126                                         </widget>
    1127                                     </vbox>
    1128                                 </widget>
    1129                                 <widget class="QGroupBox" row="0" column="0" rowspan="2" colspan="1">
    1130                                     <property name="name">
    1131                                         <cstring>groupBox12</cstring>
    1132                                     </property>
    1133                                     <property name="sizePolicy">
    1134                                         <sizepolicy>
    1135                                             <hsizetype>7</hsizetype>
    1136                                             <vsizetype>5</vsizetype>
    1137                                             <horstretch>0</horstretch>
    1138                                             <verstretch>0</verstretch>
    1139                                         </sizepolicy>
    1140                                     </property>
    1141                                     <property name="title">
    1142                                         <string>Boo&amp;t Order</string>
    1143                                     </property>
    1144                                     <vbox>
    1145                                         <property name="name">
    1146                                             <cstring>unnamed</cstring>
    1147                                         </property>
    1148                                     </vbox>
    1149                                 </widget>
    1150                             </grid>
     1269                            </vbox>
    11511270                        </widget>
    11521271                        <widget class="QWidget">
     
    15841703                    <property name="margin">
    15851704                        <number>0</number>
     1705                    </property>
     1706                    <property name="spacing">
     1707                        <number>10</number>
    15861708                    </property>
    15871709                    <widget class="QButtonGroup">
     
    25782700    <tabstop>chbEnableACPI</tabstop>
    25792701    <tabstop>chbEnableIOAPIC</tabstop>
     2702    <tabstop>cbSharedClipboard</tabstop>
    25802703    <tabstop>leSnapshotFolder</tabstop>
    25812704    <tabstop>tbSelectSavedStateFolder</tabstop>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r1902 r1915  
    697697    groupBox12Layout->addWidget (tblBootOrder);
    698698    tblBootOrder->fixTabStops();
     699    /* Shared Clipboard mode */
     700    cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipDisabled));
     701    cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipHostToGuest));
     702    cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipGuestToHost));
     703    cbSharedClipboard->insertItem (vboxGlobal().toString (CEnums::ClipBidirectional));
    699704
    700705    /* HDD Images page */
     
    12331238    /* Description */
    12341239    teDescription->setText (machine.GetDescription());
     1240
     1241    /* Shared clipboard mode */
     1242    cbSharedClipboard->setCurrentItem (machine.GetClipboardMode());
    12351243
    12361244    /* hard disk images */
     
    15461554    cmachine.SetDescription (teDescription->text());
    15471555
     1556    /* Shared clipboard mode */
     1557    cmachine.SetClipboardMode ((CEnums::ClipboardMode)cbSharedClipboard->currentItem());
     1558
    15481559    /* hard disk images */
    15491560    {
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