Changeset 51199 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 6, 2014 4:06:13 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51198 r51199 203 203 } 204 204 205 void UIExtraDataManager::setRecentListOfHardDrives(const QStringList &strValue) 206 { 207 setExtraDataStringList(GUI_RecentListHD, strValue); 208 } 209 210 void UIExtraDataManager::setRecentListOfOpticalDisks(const QStringList &strValue) 211 { 212 setExtraDataStringList(GUI_RecentListCD, strValue); 213 } 214 215 void UIExtraDataManager::setRecentListOfFloppyDisks(const QStringList &strValue) 216 { 217 setExtraDataStringList(GUI_RecentListFD, strValue); 205 void UIExtraDataManager::setRecentListOfHardDrives(const QStringList &value) 206 { 207 setExtraDataStringList(GUI_RecentListHD, value); 208 } 209 210 void UIExtraDataManager::setRecentListOfOpticalDisks(const QStringList &value) 211 { 212 setExtraDataStringList(GUI_RecentListCD, value); 213 } 214 215 void UIExtraDataManager::setRecentListOfFloppyDisks(const QStringList &value) 216 { 217 setExtraDataStringList(GUI_RecentListFD, value); 218 } 219 220 QStringList UIExtraDataManager::suppressedMessages() const 221 { 222 return extraDataStringList(GUI_SuppressMessages); 223 } 224 225 void UIExtraDataManager::setSuppressedMessages(const QStringList &value) 226 { 227 setExtraDataStringList(GUI_SuppressMessages, value); 218 228 } 219 229 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51198 r51199 95 95 /** Returns recent floppy-disk list. */ 96 96 QStringList recentListOfFloppyDisks() const; 97 /** Defines recent hard-drive list as @a strValue. */ 98 void setRecentListOfHardDrives(const QStringList &strValue); 99 /** Defines recent optical-disk list as @a strValue. */ 100 void setRecentListOfOpticalDisks(const QStringList &strValue); 101 /** Defines recent floppy-disk list as @a strValue. */ 102 void setRecentListOfFloppyDisks(const QStringList &strValue); 97 /** Defines recent hard-drive list as @a value. */ 98 void setRecentListOfHardDrives(const QStringList &value); 99 /** Defines recent optical-disk list as @a value. */ 100 void setRecentListOfOpticalDisks(const QStringList &value); 101 /** Defines recent floppy-disk list as @a value. */ 102 void setRecentListOfFloppyDisks(const QStringList &value); 103 104 /** Returns list of the supressed messages for the Message/Popup center frameworks. */ 105 QStringList suppressedMessages() const; 106 /** Defines list of the supressed messages for the Message/Popup center frameworks as @a value. */ 107 void setSuppressedMessages(const QStringList &value); 103 108 104 109 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r50719 r51199 40 40 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 41 41 #include "UIModalWindowManager.h" 42 #include "UIExtraDataManager.h" 42 43 #include "UIMedium.h" 43 44 #ifdef VBOX_OSE … … 2526 2527 void UIMessageCenter::sltResetSuppressedMessages() 2527 2528 { 2528 CVirtualBox vbox = vboxGlobal().virtualBox();2529 vbox.SetExtraData(GUI_SuppressMessages, QString());2529 /* Nullify suppressed message list: */ 2530 gEDataManager->setSuppressedMessages(QStringList()); 2530 2531 } 2531 2532 … … 2713 2714 { 2714 2715 vbox = vboxGlobal().virtualBox(); 2715 confirmedMessageList = vbox.GetExtraData(GUI_SuppressMessages).split(',');2716 confirmedMessageList = gEDataManager->suppressedMessages(); 2716 2717 if ( confirmedMessageList.contains(strAutoConfirmId) 2717 2718 || confirmedMessageList.contains("allMessageBoxes") … … 2800 2801 { 2801 2802 confirmedMessageList << strAutoConfirmId; 2802 vbox.SetExtraData(GUI_SuppressMessages, confirmedMessageList.join(","));2803 gEDataManager->setSuppressedMessages(confirmedMessageList); 2803 2804 } 2804 2805 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp
r50138 r51199 25 25 #include "VBoxGlobal.h" 26 26 #include "UIHostComboEditor.h" 27 #include "UIExtraDataManager.h" 27 28 28 29 /* Other VBox includes: */ … … 246 247 if ((iButton1 || iButton2) && fProposeAutoConfirmation) 247 248 { 248 QStringList confirmedPopupList = vboxGlobal().virtualBox().GetExtraData(GUI_SuppressMessages).split(',');249 const QStringList confirmedPopupList = gEDataManager->suppressedMessages(); 249 250 if ( confirmedPopupList.contains(strPopupPaneID) 250 251 || confirmedPopupList.contains("allPopupPanes") … … 326 327 void UIPopupCenter::sltPopupPaneDone(QString strPopupPaneID, int iResultCode) 327 328 { 328 /* Was the result auto-confirmated?*/329 /* Remember auto-confirmation fact (if necessary): */ 329 330 if (iResultCode & AlertOption_AutoConfirmed) 330 { 331 /* Remember auto-confirmation fact: */ 332 QStringList confirmedPopupList = vboxGlobal().virtualBox().GetExtraData(GUI_SuppressMessages).split(','); 333 confirmedPopupList << strPopupPaneID; 334 vboxGlobal().virtualBox().SetExtraData(GUI_SuppressMessages, confirmedPopupList.join(",")); 335 } 331 gEDataManager->setSuppressedMessages(gEDataManager->suppressedMessages() << strPopupPaneID); 336 332 337 333 /* Notify listeners: */
Note:
See TracChangeset
for help on using the changeset viewer.