Changeset 47193 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 16, 2013 2:16:44 PM (12 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/UIGlobalSettingsExtension.cpp
r45358 r47193 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIGlobalSettingsExtension class implementation. 3 * 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * UIGlobalSettingsExtension class implementation 4 6 */ 5 7 … … 114 116 } 115 117 116 /** 117 * Attempt the actual installation. 118 * 119 * This code is shared by UIGlobalSettingsExtension::sltInstallPackage and UISelectorWindow::sltOpenUrls. 120 * 121 * @param strFilePath The path to the tarball. 122 * @param strDigest The digest of the file (SHA-256). Empty string if no 123 * digest was performed. 124 * @param pParent The parent widget. 125 * @param pstrExtPackName Where to return the extension pack name. Optional. 126 */ 127 /*static*/ void UIGlobalSettingsExtension::doInstallation(QString const &strFilePath, QString const &strDigest, 128 QWidget *pParent, QString *pstrExtPackName) 118 /* static */ 119 void UIGlobalSettingsExtension::doInstallation(QString const &strFilePath, QString const &strDigest, 120 QWidget *pParent, QString *pstrExtPackName) 129 121 { 130 122 /* … … 272 264 } 273 265 274 /* Navigation stuff: */275 266 void UIGlobalSettingsExtension::setOrderAfter(QWidget *pWidget) 276 267 { … … 279 270 } 280 271 281 /* Translation stuff: */282 272 void UIGlobalSettingsExtension::retranslateUi() 283 273 { … … 290 280 } 291 281 292 /* Handle current-item change fact: */293 282 void UIGlobalSettingsExtension::sltHandleCurrentItemChange(QTreeWidgetItem *pCurrentItem) 294 283 { … … 298 287 } 299 288 300 /* Invoke context menu: */301 289 void UIGlobalSettingsExtension::sltShowContextMenu(const QPoint &position) 302 290 { … … 314 302 } 315 303 316 /* Package add procedure: */317 304 void UIGlobalSettingsExtension::sltInstallPackage() 318 305 { … … 391 378 } 392 379 393 /* Package remove procedure: */394 380 void UIGlobalSettingsExtension::sltRemovePackage() 395 381 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.h
r44529 r47193 69 69 void saveFromCacheTo(QVariant &data); 70 70 71 /* Navigation stuff: */71 /* Helper: Navigation stuff: */ 72 72 void setOrderAfter(QWidget *pWidget); 73 73 74 /* Translation stuff: */74 /* Helper: Translation stuff: */ 75 75 void retranslateUi(); 76 76 77 77 private slots: 78 78 79 /* Tree-widget slots: */79 /* Handlers: Tree-widget stuff: */ 80 80 void sltHandleCurrentItemChange(QTreeWidgetItem *pCurrentItem); 81 81 void sltShowContextMenu(const QPoint &position); 82 82 83 /* Package add/remove procedures: */83 /* Handlers: Package stuff: */ 84 84 void sltInstallPackage(); 85 85 void sltRemovePackage(); … … 90 90 UISettingsCacheGlobalExtensionItem fetchData(const CExtPack &package) const; 91 91 92 /* Actions: */92 /* Variables: Actions: */ 93 93 QAction *m_pActionAdd; 94 94 QAction *m_pActionRemove; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.ui
r45219 r47193 3 3 VBox frontends: Qt4 GUI ("VirtualBox"): 4 4 5 Copyright (C) 2010-201 2Oracle Corporation5 Copyright (C) 2010-2013 Oracle Corporation 6 6 7 7 This file is part of VirtualBox Open Source Edition (OSE), as … … 15 15 <class>UIGlobalSettingsExtension</class> 16 16 <widget class="QWidget" name="UIGlobalSettingsExtension"> 17 <property name="geometry">18 <rect>19 <x>0</x>20 <y>0</y>21 <width>350</width>22 <height>250</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 <spacer> 31 <property name="orientation"> 32 <enum>Qt::Horizontal</enum> 33 </property> 34 <property name="sizeType"> 35 <enum>QSizePolicy::Fixed</enum> 36 </property> 37 <property name="sizeHint"> 38 <size> 39 <width>40</width> 40 <height>20</height> 41 </size> 42 </property> 43 </spacer> 44 </item> 45 <item row="0" column="1" colspan="2"> 46 <widget class="QLabel" name="m_pLanguageLabel"> 22 <widget class="QILabelSeparator" native="1" name="m_pEntensionLabel"> 47 23 <property name="text"> 48 <string>&Extension Packages:</string>24 <string>&Extension Packages</string> 49 25 </property> 50 26 <property name="buddy"> … … 53 29 </widget> 54 30 </item> 55 <item row="1" column="1"> 56 <spacer> 57 <property name="orientation"> 58 <enum>Qt::Horizontal</enum> 59 </property> 60 <property name="sizeType"> 61 <enum>QSizePolicy::Fixed</enum> 62 </property> 63 <property name="sizeHint"> 64 <size> 65 <width>20</width> 66 <height>0</height> 67 </size> 68 </property> 69 </spacer> 70 </item> 71 <item row="1" column="2"> 31 <item row="1" column="0"> 72 32 <widget class="QWidget" native="1" name="m_pExtensionPackContainer" > 73 33 <layout class="QHBoxLayout" name="m_pLayout1"> … … 81 41 <widget class="QTreeWidget" name="m_pPackagesTree"> 82 42 <property name="sizePolicy"> 83 <sizepolicy vsizetype=" Expanding" hsizetype="Expanding">43 <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding"> 84 44 <horstretch>0</horstretch> 85 45 <verstretch>0</verstretch> … … 125 85 <customwidgets> 126 86 <customwidget> 87 <class>QILabelSeparator</class> 88 <extends>QLabel</extends> 89 <header>QILabelSeparator.h</header> 90 </customwidget> 91 <customwidget> 127 92 <class>UIToolBar</class> 128 93 <extends>QToolBar</extends> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.ui
r47191 r47193 20 20 </property> 21 21 <item row="0" column="0"> 22 <widget class="QILabelSeparator" native="1" name="m_p LanguageLabel">22 <widget class="QILabelSeparator" native="1" name="m_pNetworkLabel"> 23 23 <property name="text"> 24 24 <string>&Host-only Networks</string>
Note:
See TracChangeset
for help on using the changeset viewer.