Changeset 77190 in vbox
- Timestamp:
- Feb 6, 2019 8:50:30 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128679
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r76825 r77190 1100 1100 0 /* auto-confirm id */, 1101 1101 tr("Reload settings"), tr("Keep changes")); 1102 }1103 1104 int UIMessageCenter::confirmHardDiskAttachmentCreation(const QString &strControllerName, QWidget *pParent /* = 0*/) const1105 {1106 return questionTrinary(pParent, MessageType_Question,1107 tr("<p>You are about to add a virtual hard disk to controller <b>%1</b>.</p>"1108 "<p>Would you like to create a new, empty file to hold the disk contents or select an existing one?</p>")1109 .arg(strControllerName),1110 0 /* auto-confirm id */,1111 tr("Create &new disk"), tr("&Choose existing disk"));1112 }1113 1114 int UIMessageCenter::confirmOpticalAttachmentCreation(const QString &strControllerName, QWidget *pParent /* = 0*/) const1115 {1116 return questionTrinary(pParent, MessageType_Question,1117 tr("<p>You are about to add a new optical drive to controller <b>%1</b>.</p>"1118 "<p>Would you like to choose a virtual optical disk to put in the drive "1119 "or to leave it empty for now?</p>")1120 .arg(strControllerName),1121 0 /* auto-confirm id */,1122 tr("Leave &empty"), tr("&Choose disk"));1123 }1124 1125 int UIMessageCenter::confirmFloppyAttachmentCreation(const QString &strControllerName, QWidget *pParent /* = 0*/) const1126 {1127 return questionTrinary(pParent, MessageType_Question,1128 tr("<p>You are about to add a new floppy drive to controller <b>%1</b>.</p>"1129 "<p>Would you like to choose a virtual floppy disk to put in the drive "1130 "or to leave it empty for now?</p>")1131 .arg(strControllerName),1132 0 /* auto-confirm id */,1133 tr("Leave &empty"), tr("&Choose disk"));1134 1102 } 1135 1103 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r76581 r77190 318 318 void warnAboutStateChange(QWidget *pParent = 0) const; 319 319 bool confirmSettingsReloading(QWidget *pParent = 0) const; 320 int confirmHardDiskAttachmentCreation(const QString &strControllerName, QWidget *pParent = 0) const;321 int confirmOpticalAttachmentCreation(const QString &strControllerName, QWidget *pParent = 0) const;322 int confirmFloppyAttachmentCreation(const QString &strControllerName, QWidget *pParent = 0) const;323 320 int confirmRemovingOfLastDVDDevice(QWidget *pParent = 0) const; 324 321 void cannotAttachDevice(const CMachine &machine, UIMediumDeviceType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent = 0);
Note:
See TracChangeset
for help on using the changeset viewer.