- Timestamp:
- Jul 9, 2014 11:47:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51950 r51951 31 31 # include <QLabel> 32 32 # include <QLineEdit> 33 # include <QComboBox> 33 34 # include <QPushButton> 34 35 # include <QXmlStreamWriter> … … 499 500 /** Sorts data items. */ 500 501 void sortData(); 502 503 /** Returns the list of known extra-data keys. */ 504 static QStringList knownExtraDataKeys(); 501 505 /** @} */ 502 506 … … 791 795 } 792 796 /* Create key-editor: */ 793 Q LineEdit *pEditorKey = new QLineEdit;797 QComboBox *pEditorKey = new QComboBox; 794 798 { 795 799 /* Configure key-editor: */ 800 pEditorKey->setEditable(true); 801 pEditorKey->addItems(knownExtraDataKeys()); 796 802 pLabelKey->setBuddy(pEditorKey); 797 803 /* Create key-editor property setter: */ … … 800 806 { 801 807 /* Configure key-editor property setter: */ 802 connect(pEditorKey, SIGNAL( textEdited(const QString&)),808 connect(pEditorKey, SIGNAL(editTextChanged(const QString&)), 803 809 pKeyPropertySetter, SLOT(sltAssignProperty(const QString&))); 804 810 } … … 808 814 { 809 815 /* Configure key-editor validator: */ 810 connect(pEditorKey, SIGNAL( textEdited(const QString&)),816 connect(pEditorKey, SIGNAL(editTextChanged(const QString&)), 811 817 pKeyValidator, SLOT(sltValidate(QString))); 812 818 /* Add key-editor validator into dialog validator group: */ … … 1717 1723 m_pModelProxyOfData->sort(iSortSection, sortOrder); 1718 1724 } 1725 1726 /* static */ 1727 QStringList UIExtraDataManagerWindow::knownExtraDataKeys() 1728 { 1729 return QStringList() 1730 << QString() 1731 << GUI_LanguageId 1732 << GUI_SuppressMessages << GUI_InvertMessageOption 1733 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1734 << GUI_PreventApplicationUpdate << GUI_UpdateDate << GUI_UpdateCheckCount 1735 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 1736 << GUI_RestrictedGlobalSettingsPages << GUI_RestrictedMachineSettingsPages 1737 << GUI_Input_SelectorShortcuts << GUI_Input_MachineShortcuts 1738 << GUI_RecentFolderHD << GUI_RecentFolderCD << GUI_RecentFolderFD 1739 << GUI_RecentListHD << GUI_RecentListCD << GUI_RecentListFD 1740 << GUI_LastSelectorWindowPosition << GUI_SplitterSizes 1741 << GUI_Toolbar << GUI_Statusbar 1742 << GUI_GroupDefinitions << GUI_LastItemSelected 1743 << GUI_DetailsPageBoxes << GUI_PreviewUpdate 1744 << GUI_HideDescriptionForWizards 1745 << GUI_HideFromManager << GUI_HideDetails 1746 << GUI_PreventReconfiguration << GUI_PreventSnapshotOperations 1747 << GUI_FirstRun 1748 #ifndef Q_WS_MAC 1749 << GUI_MachineWindowIcons << GUI_MachineWindowNamePostfix 1750 #endif /* !Q_WS_MAC */ 1751 << GUI_LastNormalWindowPosition << GUI_LastScaleWindowPosition 1752 << GUI_Geometry_State_Max 1753 << GUI_RestrictedRuntimeMenus 1754 #ifdef Q_WS_MAC 1755 << GUI_RestrictedRuntimeApplicationMenuActions 1756 #endif /* Q_WS_MAC */ 1757 << GUI_RestrictedRuntimeMachineMenuActions 1758 << GUI_RestrictedRuntimeViewMenuActions 1759 << GUI_RestrictedRuntimeDevicesMenuActions 1760 #ifdef VBOX_WITH_DEBUGGER_GUI 1761 << GUI_RestrictedRuntimeDebuggerMenuActions 1762 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1763 << GUI_RestrictedRuntimeHelpMenuActions 1764 << GUI_RestrictedVisualStates 1765 << GUI_Fullscreen << GUI_Seamless << GUI_Scale 1766 << GUI_AutoresizeGuest << GUI_LastGuestSizeHint << GUI_LastGuestSizeHintWasFullscreen 1767 << GUI_VirtualScreenToHostScreen << GUI_AutomountGuestScreens 1768 #ifdef VBOX_WITH_VIDEOHWACCEL 1769 << GUI_Accelerate2D_StretchLinear 1770 << GUI_Accelerate2D_PixformatYV12 << GUI_Accelerate2D_PixformatUYVY 1771 << GUI_Accelerate2D_PixformatYUY2 << GUI_Accelerate2D_PixformatAYUV 1772 #endif /* VBOX_WITH_VIDEOHWACCEL */ 1773 << GUI_HiDPI_Optimization 1774 << GUI_ShowMiniToolBar << GUI_MiniToolBarAutoHide << GUI_MiniToolBarAlignment 1775 << GUI_RestrictedStatusBarIndicators 1776 #ifdef Q_WS_MAC 1777 << GUI_PresentationModeEnabled 1778 << GUI_RealtimeDockIconUpdateEnabled << GUI_RealtimeDockIconUpdateMonitor 1779 #endif /* Q_WS_MAC */ 1780 << GUI_PassCAD 1781 << GUI_GuruMeditationHandler 1782 << GUI_HidLedsSync 1783 << GUI_InformationWindowGeometry 1784 << GUI_DefaultCloseAction << GUI_RestrictedCloseActions 1785 << GUI_LastCloseAction << GUI_CloseActionHook 1786 #ifdef VBOX_WITH_DEBUGGER_GUI 1787 << GUI_Dbg_Enabled << GUI_Dbg_AutoShow 1788 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1789 << GUI_ExtraDataManager_Geometry << GUI_ExtraDataManager_SplitterHints; 1790 } 1719 1791 #endif /* DEBUG */ 1720 1792
Note:
See TracChangeset
for help on using the changeset viewer.