Changeset 47134 in vbox for trunk/src/VBox
- Timestamp:
- Jul 14, 2013 2:18:13 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
r47130 r47134 18 18 */ 19 19 20 /* Global includes*/20 /* Qt includes: */ 21 21 #include <QDir> 22 22 23 /* Local includes*/23 /* GUI includes: */ 24 24 #include "UIGlobalSettingsGeneral.h" 25 25 #include "VBoxGlobal.h" 26 26 27 /* General page constructor: */28 27 UIGlobalSettingsGeneral::UIGlobalSettingsGeneral() 29 28 { … … 32 31 33 32 #ifndef Q_WS_MAC 34 m_p PresentationModeLabel->hide();35 m_p PresentationModeCheckbox->hide();33 m_pLabelPresentationMode->hide(); 34 m_pCheckBoxPresentationMode->hide(); 36 35 #endif /* !Q_WS_MAC */ 37 36 /* Hide checkbox for now: */ 38 m_p HostScreenSaverLabel->hide();39 m_p HostScreenSaverCheckbox->hide();37 m_pLabelHostScreenSaver->hide(); 38 m_pCheckBoxHostScreenSaver->hide(); 40 39 41 40 /* Setup widgets: */ 42 m_p MachineFolderSelector->setHomeDir(vboxGlobal().virtualBox().GetHomeFolder());43 m_p VRDPLibNameSelector->setHomeDir(vboxGlobal().virtualBox().GetHomeFolder());44 m_p VRDPLibNameSelector->setMode(VBoxFilePathSelectorWidget::Mode_File_Open);41 m_pSelectorMachineFolder->setHomeDir(vboxGlobal().virtualBox().GetHomeFolder()); 42 m_pSelectorVRDPLibName->setHomeDir(vboxGlobal().virtualBox().GetHomeFolder()); 43 m_pSelectorVRDPLibName->setMode(VBoxFilePathSelectorWidget::Mode_File_Open); 45 44 46 45 /* Apply language settings: */ … … 72 71 { 73 72 /* Fetch from cache: */ 74 m_p MachineFolderSelector->setPath(m_cache.m_strDefaultMachineFolder);75 m_p VRDPLibNameSelector->setPath(m_cache.m_strVRDEAuthLibrary);73 m_pSelectorMachineFolder->setPath(m_cache.m_strDefaultMachineFolder); 74 m_pSelectorVRDPLibName->setPath(m_cache.m_strVRDEAuthLibrary); 76 75 #ifdef Q_WS_MAC 77 m_p PresentationModeCheckbox->setChecked(m_cache.m_fPresentationModeEnabled);76 m_pCheckBoxPresentationMode->setChecked(m_cache.m_fPresentationModeEnabled); 78 77 #endif /* Q_WS_MAC */ 79 m_p HostScreenSaverCheckbox->setChecked(m_cache.m_fHostScreenSaverDisabled);78 m_pCheckBoxHostScreenSaver->setChecked(m_cache.m_fHostScreenSaverDisabled); 80 79 } 81 80 … … 85 84 { 86 85 /* Upload to cache: */ 87 m_cache.m_strDefaultMachineFolder = m_p MachineFolderSelector->path();88 m_cache.m_strVRDEAuthLibrary = m_p VRDPLibNameSelector->path();86 m_cache.m_strDefaultMachineFolder = m_pSelectorMachineFolder->path(); 87 m_cache.m_strVRDEAuthLibrary = m_pSelectorVRDPLibName->path(); 89 88 #ifdef Q_WS_MAC 90 m_cache.m_fPresentationModeEnabled = m_p PresentationModeCheckbox->isChecked();89 m_cache.m_fPresentationModeEnabled = m_pCheckBoxPresentationMode->isChecked(); 91 90 #endif /* Q_WS_MAC */ 92 m_cache.m_fHostScreenSaverDisabled = m_p HostScreenSaverCheckbox->isChecked();91 m_cache.m_fHostScreenSaverDisabled = m_pCheckBoxHostScreenSaver->isChecked(); 93 92 } 94 93 … … 101 100 102 101 /* Save from cache: */ 103 if (m_properties.isOk() && m_p MachineFolderSelector->isModified())102 if (m_properties.isOk() && m_pSelectorMachineFolder->isModified()) 104 103 m_properties.SetDefaultMachineFolder(m_cache.m_strDefaultMachineFolder); 105 if (m_properties.isOk() && m_p VRDPLibNameSelector->isModified())104 if (m_properties.isOk() && m_pSelectorVRDPLibName->isModified()) 106 105 m_properties.SetVRDEAuthLibrary(m_cache.m_strVRDEAuthLibrary); 107 106 #ifdef Q_WS_MAC … … 114 113 } 115 114 116 /* Navigation stuff: */117 115 void UIGlobalSettingsGeneral::setOrderAfter(QWidget *pWidget) 118 116 { 119 setTabOrder(pWidget, m_pMachineFolderSelector); 120 setTabOrder(m_pMachineFolderSelector, m_pVRDPLibNameSelector); 121 setTabOrder(m_pVRDPLibNameSelector, m_pPresentationModeCheckbox); 122 setTabOrder(m_pPresentationModeCheckbox, m_pHostScreenSaverCheckbox); 117 /* Configure navigation: */ 118 setTabOrder(pWidget, m_pSelectorMachineFolder); 119 setTabOrder(m_pSelectorMachineFolder, m_pSelectorVRDPLibName); 120 setTabOrder(m_pSelectorVRDPLibName, m_pCheckBoxPresentationMode); 121 setTabOrder(m_pCheckBoxPresentationMode, m_pCheckBoxHostScreenSaver); 123 122 } 124 123 125 /* Translation stuff: */126 124 void UIGlobalSettingsGeneral::retranslateUi() 127 125 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.ui
r47130 r47134 15 15 <class>UIGlobalSettingsGeneral</class> 16 16 <widget class="QWidget" name="UIGlobalSettingsGeneral"> 17 <property name="geometry">18 <rect>19 <x>0</x>20 <y>0</y>21 <width>400</width>22 <height>200</height>23 </rect>24 </property>25 17 <layout class="QGridLayout"> 26 18 <property name="margin"> … … 28 20 </property> 29 21 <item row="0" column="0"> 30 <widget class="QLabel" name="m_p MachineFolderLabel">22 <widget class="QLabel" name="m_pLabelMachineFolder"> 31 23 <property name="text"> 32 24 <string>Default &Machine Folder:</string> … … 36 28 </property> 37 29 <property name="buddy"> 38 <cstring>m_p MachineFolderSelector</cstring>30 <cstring>m_pSelectorMachineFolder</cstring> 39 31 </property> 40 32 </widget> 41 33 </item> 42 34 <item row="0" column="1"> 43 <widget class="VBoxFilePathSelectorWidget" name="m_p MachineFolderSelector">35 <widget class="VBoxFilePathSelectorWidget" name="m_pSelectorMachineFolder"> 44 36 <property name="sizePolicy"> 45 37 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> … … 54 46 </item> 55 47 <item row="1" column="0"> 56 <widget class="QLabel" name="m_p VRDPLibNameLabel">48 <widget class="QLabel" name="m_pLabelVRDPLibName"> 57 49 <property name="text"> 58 50 <string>V&RDP Authentication Library:</string> … … 62 54 </property> 63 55 <property name="buddy"> 64 <cstring>m_p VRDPLibNameSelector</cstring>56 <cstring>m_pSelectorVRDPLibName</cstring> 65 57 </property> 66 58 </widget> 67 59 </item> 68 60 <item row="1" column="1"> 69 <widget class="VBoxFilePathSelectorWidget" name="m_p VRDPLibNameSelector">61 <widget class="VBoxFilePathSelectorWidget" name="m_pSelectorVRDPLibName"> 70 62 <property name="sizePolicy"> 71 63 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> … … 80 72 </item> 81 73 <item row="2" column="0"> 82 <widget class="QLabel" name="m_p PresentationModeLabel">74 <widget class="QLabel" name="m_pLabelPresentationMode"> 83 75 <property name="text"> 84 76 <string>&Dock and Menubar:</string> … … 88 80 </property> 89 81 <property name="buddy"> 90 <cstring>m_p PresentationModeCheckbox</cstring>82 <cstring>m_pCheckBoxPresentationMode</cstring> 91 83 </property> 92 84 </widget> 93 85 </item> 94 86 <item row="2" column="1"> 95 <widget class="QCheckBox" name="m_p PresentationModeCheckbox">87 <widget class="QCheckBox" name="m_pCheckBoxPresentationMode"> 96 88 <property name="text"> 97 89 <string>Auto Show in Fullscreen</string> … … 103 95 </item> 104 96 <item row="3" column="0"> 105 <widget class="QLabel" name="m_p HostScreenSaverLabel">97 <widget class="QLabel" name="m_pLabelHostScreenSaver"> 106 98 <property name="text"> 107 99 <string>&Host Screen Saver:</string> … … 111 103 </property> 112 104 <property name="buddy"> 113 <cstring>m_p HostScreenSaverCheckbox</cstring>105 <cstring>m_pCheckBoxHostScreenSaver</cstring> 114 106 </property> 115 107 </widget> 116 108 </item> 117 109 <item row="3" column="1"> 118 <widget class="QCheckBox" name="m_p HostScreenSaverCheckbox">110 <widget class="QCheckBox" name="m_pCheckBoxHostScreenSaver"> 119 111 <property name="whatsThis"> 120 112 <string>When checked, the host screen saver will be disabled whenever a virtual machine is running.</string> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
r47133 r47134 22 22 #include "VBoxGlobal.h" 23 23 24 /* Update page constructor: */25 24 UIGlobalSettingsUpdate::UIGlobalSettingsUpdate() 26 25 : m_pLastChosenRadio(0)
Note:
See TracChangeset
for help on using the changeset viewer.