Changeset 33958 in vbox
- Timestamp:
- Nov 11, 2010 9:17:02 AM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/global
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h
r33926 r33958 63 63 64 64 /* Navigation stuff: */ 65 void setOrderAfter (QWidget *aWidget);65 void setOrderAfter(QWidget *pWidget); 66 66 67 67 /* Translation stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp
r33882 r33958 18 18 */ 19 19 20 /* Local includes */ 20 21 #include "UIGlobalSettingsInput.h" 21 22 #include "VBoxGlobalSettings.h" 22 23 24 /* Input page constructor: */ 23 25 UIGlobalSettingsInput::UIGlobalSettingsInput() 24 26 { 25 /* Apply UI decorations */27 /* Apply UI decorations: */ 26 28 Ui::UIGlobalSettingsInput::setupUi (this); 27 29 28 /* Apply ing language settings*/30 /* Apply language settings: */ 29 31 retranslateUi(); 30 32 } … … 50 52 { 51 53 /* Fetch from cache: */ 52 m HeHostKey->setKey(m_cache.m_iHostKey);53 m CbAutoGrab->setChecked(m_cache.m_fAutoCapture);54 m_pHostKeyEditor->setKey(m_cache.m_iHostKey); 55 m_pEnableAutoGrabCheckbox->setChecked(m_cache.m_fAutoCapture); 54 56 } 55 57 … … 59 61 { 60 62 /* Upload to cache: */ 61 m_cache.m_iHostKey = m HeHostKey->key();62 m_cache.m_fAutoCapture = m CbAutoGrab->isChecked();63 m_cache.m_iHostKey = m_pHostKeyEditor->key(); 64 m_cache.m_fAutoCapture = m_pEnableAutoGrabCheckbox->isChecked(); 63 65 } 64 66 … … 78 80 } 79 81 80 void UIGlobalSettingsInput::setOrderAfter (QWidget *aWidget) 82 /* Navigation stuff: */ 83 void UIGlobalSettingsInput::setOrderAfter(QWidget *pWidget) 81 84 { 82 setTabOrder (aWidget, mHeHostKey);83 setTabOrder (mHeHostKey, mTbResetHostKey);84 setTabOrder (mTbResetHostKey, mCbAutoGrab);85 setTabOrder(pWidget, m_pHostKeyEditor); 86 setTabOrder(m_pHostKeyEditor, m_pResetHostKeyButton); 87 setTabOrder(m_pResetHostKeyButton, m_pEnableAutoGrabCheckbox); 85 88 } 86 89 90 /* Translation stuff: */ 87 91 void UIGlobalSettingsInput::retranslateUi() 88 92 { 89 /* Translate uic generated strings */93 /* Translate uic generated strings: */ 90 94 Ui::UIGlobalSettingsInput::retranslateUi (this); 91 95 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h
r33882 r33958 20 20 #define __UIGlobalSettingsInput_h__ 21 21 22 /* Local includes */ 22 23 #include "UISettingsPage.h" 23 24 #include "UIGlobalSettingsInput.gen.h" … … 31 32 32 33 /* Global settings / Input page: */ 33 class UIGlobalSettingsInput : public UISettingsPageGlobal, 34 public Ui::UIGlobalSettingsInput 34 class UIGlobalSettingsInput : public UISettingsPageGlobal, public Ui::UIGlobalSettingsInput 35 35 { 36 36 Q_OBJECT; … … 56 56 void saveFromCacheTo(QVariant &data); 57 57 58 void setOrderAfter (QWidget *aWidget); 58 /* Navigation stuff: */ 59 void setOrderAfter(QWidget *pWidget); 59 60 61 /* Translation stuff: */ 60 62 void retranslateUi(); 61 63 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.ui
r33882 r33958 1 <?xml version="1.0" encoding="UTF-8"?>2 1 <ui version="4.0"> 3 2 <comment> 4 VBox frontends: Qt4 GUI ( "VirtualBox"):3 VBox frontends: Qt4 GUI ("VirtualBox"): 5 4 6 Copyright (C) 2008 Oracle Corporation5 Copyright (C) 2008-2010 Oracle Corporation 7 6 8 7 This file is part of VirtualBox Open Source Edition (OSE), as … … 45 44 </item> 46 45 <item row="0" column="1"> 47 <widget class="QLabel" name="m LbHostKey">46 <widget class="QLabel" name="m_pHostKeyLabel"> 48 47 <property name="text"> 49 48 <string>Host &Key:</string> 50 49 </property> 51 50 <property name="buddy"> 52 <cstring>m HeHostKey</cstring>51 <cstring>m_pHostKeyEditor</cstring> 53 52 </property> 54 53 </widget> 55 54 </item> 56 55 <item row="0" column="2"> 57 <widget class="QIHotKeyEdit" name="m HeHostKey">56 <widget class="QIHotKeyEdit" name="m_pHostKeyEditor"> 58 57 <property name="whatsThis"> 59 58 <string>Displays the key used as a Host Key in the VM window. Activate the entry field and press a new Host Key. Note that alphanumeric, cursor movement and editing keys cannot be used.</string> 59 </property> 60 <property name="sizePolicy"> 61 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum"> 62 <horstretch>0</horstretch> 63 <verstretch>0</verstretch> 64 </sizepolicy> 60 65 </property> 61 66 </widget> 62 67 </item> 63 68 <item row="0" column="3"> 64 <widget class="UIResetButton" name="m TbResetHostKey">69 <widget class="UIResetButton" name="m_pResetHostKeyButton"> 65 70 <property name="focusPolicy"> 66 71 <enum>Qt::StrongFocus</enum> … … 82 87 <enum>Qt::Horizontal</enum> 83 88 </property> 89 <property name="sizeType"> 90 <enum>QSizePolicy::Fixed</enum> 91 </property> 84 92 <property name="sizeHint" stdset="0"> 85 93 <size> 86 <width> 0</width>94 <width>40</width> 87 95 <height>20</height> 88 96 </size> … … 91 99 </item> 92 100 <item row="1" column="2" colspan="3"> 93 <widget class="QCheckBox" name="m CbAutoGrab">101 <widget class="QCheckBox" name="m_pEnableAutoGrabCheckbox"> 94 102 <property name="whatsThis"> 95 103 <string>When checked, the keyboard is automatically captured every time the VM window is activated. When the keyboard is captured, all keystrokes (including system ones like Alt-Tab) are directed to the VM.</string> … … 107 115 <property name="sizeHint" stdset="0"> 108 116 <size> 109 <width> 121</width>110 <height> 271</height>117 <width>0</width> 118 <height>0</height> 111 119 </size> 112 120 </property> … … 132 140 <connections> 133 141 <connection> 134 <sender>m TbResetHostKey</sender>142 <sender>m_pResetHostKeyButton</sender> 135 143 <signal>clicked(bool)</signal> 136 <receiver>m HeHostKey</receiver>144 <receiver>m_pHostKeyEditor</receiver> 137 145 <slot>clear()</slot> 138 146 <hints>
Note:
See TracChangeset
for help on using the changeset viewer.