Changeset 47130 in vbox for trunk/src/VBox
- Timestamp:
- Jul 13, 2013 5:13:57 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/global
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp
r45388 r47130 7 7 8 8 /* 9 * Copyright (C) 2006-201 2Oracle Corporation9 * Copyright (C) 2006-2013 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 32 32 33 33 #ifndef Q_WS_MAC 34 m_p EnablePresentationModeCheckbox->hide();35 m_p SpacerWidget2->hide();34 m_pPresentationModeLabel->hide(); 35 m_pPresentationModeCheckbox->hide(); 36 36 #endif /* !Q_WS_MAC */ 37 //#ifndef Q_WS_WIN /* Checkbox hidden for now! */ 38 m_pDisableHostScreenSaverCheckbox->hide(); 39 m_pSpacerWidget3->hide(); 40 //#endif /* !Q_WS_WIN */ 41 42 /* If all checkboxes hidden, hide separator too: */ 43 if (m_pEnablePresentationModeCheckbox->isHidden() && 44 m_pDisableHostScreenSaverCheckbox->isHidden()) 45 m_pLineSeparator2->hide(); 37 /* Hide checkbox for now: */ 38 m_pHostScreenSaverLabel->hide(); 39 m_pHostScreenSaverCheckbox->hide(); 46 40 47 41 /* Setup widgets: */ … … 67 61 m_cache.m_fPresentationModeEnabled = m_settings.presentationModeEnabled(); 68 62 #endif /* Q_WS_MAC */ 69 m_cache.m_fHostScreenSaverDisable s= m_settings.hostScreenSaverDisabled();63 m_cache.m_fHostScreenSaverDisabled = m_settings.hostScreenSaverDisabled(); 70 64 71 65 /* Upload properties & settings to data: */ … … 81 75 m_pVRDPLibNameSelector->setPath(m_cache.m_strVRDEAuthLibrary); 82 76 #ifdef Q_WS_MAC 83 m_p EnablePresentationModeCheckbox->setChecked(m_cache.m_fPresentationModeEnabled);77 m_pPresentationModeCheckbox->setChecked(m_cache.m_fPresentationModeEnabled); 84 78 #endif /* Q_WS_MAC */ 85 m_p DisableHostScreenSaverCheckbox->setChecked(m_cache.m_fHostScreenSaverDisables);79 m_pHostScreenSaverCheckbox->setChecked(m_cache.m_fHostScreenSaverDisabled); 86 80 } 87 81 … … 94 88 m_cache.m_strVRDEAuthLibrary = m_pVRDPLibNameSelector->path(); 95 89 #ifdef Q_WS_MAC 96 m_cache.m_fPresentationModeEnabled = m_p EnablePresentationModeCheckbox->isChecked();90 m_cache.m_fPresentationModeEnabled = m_pPresentationModeCheckbox->isChecked(); 97 91 #endif /* Q_WS_MAC */ 98 m_cache.m_fHostScreenSaverDisable s = m_pDisableHostScreenSaverCheckbox->isChecked();92 m_cache.m_fHostScreenSaverDisabled = m_pHostScreenSaverCheckbox->isChecked(); 99 93 } 100 94 … … 114 108 m_settings.setPresentationModeEnabled(m_cache.m_fPresentationModeEnabled); 115 109 #endif /* Q_WS_MAC */ 116 m_settings.setHostScreenSaverDisabled(m_cache.m_fHostScreenSaverDisable s);110 m_settings.setHostScreenSaverDisabled(m_cache.m_fHostScreenSaverDisabled); 117 111 118 112 /* Upload properties & settings to data: */ … … 125 119 setTabOrder(pWidget, m_pMachineFolderSelector); 126 120 setTabOrder(m_pMachineFolderSelector, m_pVRDPLibNameSelector); 127 setTabOrder(m_pVRDPLibNameSelector, m_p EnablePresentationModeCheckbox);128 setTabOrder(m_p EnablePresentationModeCheckbox, m_pDisableHostScreenSaverCheckbox);121 setTabOrder(m_pVRDPLibNameSelector, m_pPresentationModeCheckbox); 122 setTabOrder(m_pPresentationModeCheckbox, m_pHostScreenSaverCheckbox); 129 123 } 130 124 … … 134 128 /* Translate uic generated strings: */ 135 129 Ui::UIGlobalSettingsGeneral::retranslateUi(this); 136 137 m_pMachineFolderSelector->setWhatsThis(tr("Displays the path to the default virtual "138 "machine folder. This folder is used, if not "139 "explicitly specified otherwise, when creating "140 "new virtual machines."));141 m_pVRDPLibNameSelector->setWhatsThis(tr("Displays the path to the library that "142 "provides authentication for Remote Display "143 "(VRDP) clients."));144 130 } 145 131 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h
r45388 r47130 6 6 7 7 /* 8 * Copyright (C) 2006-201 2Oracle Corporation8 * Copyright (C) 2006-2013 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 32 32 bool m_fPresentationModeEnabled; 33 33 #endif /* Q_WS_MAC */ 34 bool m_fHostScreenSaverDisable s;34 bool m_fHostScreenSaverDisabled; 35 35 }; 36 36 … … 74 74 75 75 #endif // __UIGlobalSettingsGeneral_h__ 76 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.ui
r45388 r47130 27 27 <number>0</number> 28 28 </property> 29 <item row="0" column="0" colspan="2">29 <item row="0" column="0"> 30 30 <widget class="QLabel" name="m_pMachineFolderLabel"> 31 31 <property name="text"> … … 40 40 </widget> 41 41 </item> 42 <item row="0" column=" 2">42 <item row="0" column="1"> 43 43 <widget class="VBoxFilePathSelectorWidget" name="m_pMachineFolderSelector"> 44 44 <property name="sizePolicy"> … … 48 48 </sizepolicy> 49 49 </property> 50 </widget> 51 </item> 52 <item row="1" column="0" colspan="3"> 53 <widget class="Line" name="m_pLineSeparator1"> 54 <property name="orientation"> 55 <enum>Qt::Horizontal</enum> 50 <property name="whatsThis"> 51 <string>Displays the path to the default virtual machine folder. This folder is used, if not explicitly specified otherwise, when creating new virtual machines.</string> 56 52 </property> 57 53 </widget> 58 54 </item> 59 <item row=" 2" column="0" colspan="2">60 <widget class="QLabel" name="m_pVRDPLib Label">55 <item row="1" column="0"> 56 <widget class="QLabel" name="m_pVRDPLibNameLabel"> 61 57 <property name="text"> 62 58 <string>V&RDP Authentication Library:</string> … … 70 66 </widget> 71 67 </item> 72 <item row=" 2" column="2">68 <item row="1" column="1"> 73 69 <widget class="VBoxFilePathSelectorWidget" name="m_pVRDPLibNameSelector"> 74 70 <property name="sizePolicy"> … … 78 74 </sizepolicy> 79 75 </property> 80 </widget> 81 </item> 82 <item row="3" column="0" colspan="3"> 83 <widget class="Line" name="m_pLineSeparator2"> 84 <property name="orientation"> 85 <enum>Qt::Horizontal</enum> 76 <property name="whatsThis"> 77 <string>Displays the path to the library that provides authentication for Remote Display (VRDP) clients.</string> 86 78 </property> 87 79 </widget> 88 80 </item> 89 <item row="4" column="0"> 90 <widget class="QWidget" name="m_pSpacerWidget2"> 91 <property name="sizePolicy"> 92 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 93 <horstretch>0</horstretch> 94 <verstretch>0</verstretch> 95 </sizepolicy> 81 <item row="2" column="0"> 82 <widget class="QLabel" name="m_pPresentationModeLabel"> 83 <property name="text"> 84 <string>&Dock and Menubar:</string> 96 85 </property> 97 <property name="minimumWidth"> 98 <number>34</number> 86 <property name="alignment"> 87 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 88 </property> 89 <property name="buddy"> 90 <cstring>m_pPresentationModeCheckbox</cstring> 99 91 </property> 100 92 </widget> 101 93 </item> 102 <item row=" 4" column="1" colspan="2">103 <widget class="QCheckBox" name="m_p EnablePresentationModeCheckbox">94 <item row="2" column="1"> 95 <widget class="QCheckBox" name="m_pPresentationModeCheckbox"> 104 96 <property name="text"> 105 <string>&Auto show Dock and Menubar in fullscreen</string> 97 <string>Auto Show in Fullscreen</string> 98 </property> 99 <property name="whatsThis"> 100 <string>When checked, Dock and Menubar will be shown in virtual machine fullscreen.</string> 106 101 </property> 107 102 </widget> 108 103 </item> 109 <item row="5" column="0"> 110 <widget class="QWidget" name="m_pSpacerWidget3"> 111 <property name="sizePolicy"> 112 <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> 113 <horstretch>0</horstretch> 114 <verstretch>0</verstretch> 115 </sizepolicy> 104 <item row="3" column="0"> 105 <widget class="QLabel" name="m_pHostScreenSaverLabel"> 106 <property name="text"> 107 <string>&Host Screen Saver:</string> 116 108 </property> 117 <property name="minimumWidth"> 118 <number>34</number> 109 <property name="alignment"> 110 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 111 </property> 112 <property name="buddy"> 113 <cstring>m_pHostScreenSaverCheckbox</cstring> 119 114 </property> 120 115 </widget> 121 116 </item> 122 <item row=" 5" column="1" colspan="2">123 <widget class="QCheckBox" name="m_p DisableHostScreenSaverCheckbox">117 <item row="3" column="1"> 118 <widget class="QCheckBox" name="m_pHostScreenSaverCheckbox"> 124 119 <property name="whatsThis"> 125 120 <string>When checked, the host screen saver will be disabled whenever a virtual machine is running.</string> 126 121 </property> 127 122 <property name="text"> 128 <string>Disable Host &ScreenSaver</string>123 <string>Disable at Virtual Machine Runtime</string> 129 124 </property> 130 125 </widget> 131 126 </item> 132 <item row=" 6" column="0" colspan="3">127 <item row="4" column="0" colspan="2"> 133 128 <spacer> 134 129 <property name="orientation">
Note:
See TracChangeset
for help on using the changeset viewer.