Changeset 45362 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 5, 2013 9:49:21 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84780
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r45337 r45362 306 306 switch (iButton & AlertButtonMask) 307 307 { 308 case AlertButton_Ok: strText = tr("OK"); role = QDialogButtonBox::AcceptRole; break; 309 case AlertButton_Cancel: strText = tr("Cancel"); role = QDialogButtonBox::RejectRole; break; 310 case AlertButton_Yes: strText = tr("Yes"); role = QDialogButtonBox::YesRole; break; 311 case AlertButton_No: strText = tr("No"); role = QDialogButtonBox::NoRole; break; 312 case AlertButton_Ignore: strText = tr("Ignore"); role = QDialogButtonBox::AcceptRole; break; 313 case AlertButton_Copy: strText = tr("Copy"); role = QDialogButtonBox::ActionRole; break; 308 case AlertButton_Ok: strText = tr("OK"); role = QDialogButtonBox::AcceptRole; break; 309 case AlertButton_Cancel: strText = tr("Cancel"); role = QDialogButtonBox::RejectRole; break; 310 case AlertButton_Choice1: strText = tr("Yes"); role = QDialogButtonBox::YesRole; break; 311 case AlertButton_Choice2: strText = tr("No"); role = QDialogButtonBox::NoRole; break; 312 case AlertButton_Copy: strText = tr("Copy"); role = QDialogButtonBox::ActionRole; break; 314 313 default: 315 314 AssertMsgFailed(("Type %d is not supported!", iButton)); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.h
r45308 r45362 43 43 AlertButton_Ok = 0x1, /* 00000000 00000001 */ 44 44 AlertButton_Cancel = 0x2, /* 00000000 00000010 */ 45 AlertButton_Yes = 0x4, /* 00000000 00000100 */ 46 AlertButton_No = 0x8, /* 00000000 00001000 */ 47 AlertButton_Ignore = 0x10, /* 00000000 00010000 */ 48 AlertButton_Copy = 0x20, /* 00000000 00100000 */ 45 AlertButton_Choice1 = 0x4, /* 00000000 00000100 */ 46 AlertButton_Choice2 = 0x8, /* 00000000 00001000 */ 47 AlertButton_Copy = 0x10, /* 00000000 00010000 */ 49 48 AlertButtonMask = 0xFF /* 00000000 11111111 */ 50 49 }; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r45359 r45362 579 579 message(mainWindowShown(), MessageType_Question, 580 580 strText, 0 /* auto-confirm id */, 581 AlertButton_ Yes,582 AlertButton_ No| AlertButtonOption_Default,581 AlertButton_Choice1, 582 AlertButton_Choice2 | AlertButtonOption_Default, 583 583 AlertButton_Cancel | AlertButtonOption_Escape, 584 584 tr("Delete all files"), … … 618 618 "ignore this message.</p>"), 619 619 "warnAboutInaccessibleMedia", 620 tr(" Check", "inaccessible media message box"), tr("Cancel"), false);620 tr("Ignore"), tr("Check", "inaccessible media message box")); 621 621 } 622 622 … … 968 968 .arg(strControllerName), 969 969 0 /* auto-confirm id */, 970 AlertButton_ Yes,971 AlertButton_ No,972 AlertButton_Cancel | AlertButtonOption_ Default | AlertButtonOption_Escape,970 AlertButton_Choice1, 971 AlertButton_Choice2 | AlertButtonOption_Default, 972 AlertButton_Cancel | AlertButtonOption_Escape, 973 973 tr("Create &new disk", "add attachment routine"), 974 974 tr("&Choose existing disk", "add attachment routine")); … … 983 983 .arg(strControllerName), 984 984 0 /* auto-confirm id */, 985 AlertButton_ Yes,986 AlertButton_ No,987 AlertButton_Cancel | AlertButtonOption_ Default | AlertButtonOption_Escape,985 AlertButton_Choice1 | AlertButtonOption_Default, 986 AlertButton_Choice2, 987 AlertButton_Cancel | AlertButtonOption_Escape, 988 988 tr("&Choose disk", "add attachment routine"), 989 989 tr("Leave &empty", "add attachment routine")); … … 998 998 .arg(strControllerName), 999 999 0 /* auto-confirm id */, 1000 AlertButton_ Yes,1001 AlertButton_ No,1002 AlertButton_Cancel | AlertButtonOption_ Default | AlertButtonOption_Escape,1000 AlertButton_Choice1 | AlertButtonOption_Default, 1001 AlertButton_Choice2, 1002 AlertButton_Cancel | AlertButtonOption_Escape, 1003 1003 tr("&Choose disk", "add attachment routine"), 1004 1004 tr("Leave &empty", "add attachment routine")); … … 1225 1225 .arg(strLocation), 1226 1226 0 /* auto-confirm id */, 1227 AlertButton_ Yes,1228 AlertButton_ No| AlertButtonOption_Default,1227 AlertButton_Choice1, 1228 AlertButton_Choice2 | AlertButtonOption_Default, 1229 1229 AlertButton_Cancel | AlertButtonOption_Escape, 1230 1230 tr("Delete", "hard disk storage"), … … 1704 1704 .arg(strLogFolder), 1705 1705 0 /* auto-confirm id */, 1706 QIMessageBox::tr("O k"),1707 QIMessageBox::tr("Ignore"));1706 QIMessageBox::tr("OK"), 1707 tr("Ignore")); 1708 1708 } 1709 1709 … … 1928 1928 .arg(VBoxGlobal::formatSize(uMinVRAM)), 1929 1929 0 /* auto-confirm id */, 1930 QIMessageBox::tr("Ignore"));1930 tr("Ignore")); 1931 1931 } 1932 1932 … … 1949 1949 .arg(VBoxGlobal::formatSize(uMinVRAM)), 1950 1950 0 /* auto-confirm id */, 1951 QIMessageBox::tr("Ignore"));1951 tr("Ignore")); 1952 1952 } 1953 1953 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r45315 r45362 1161 1161 if (rc == AlertButton_Cancel) 1162 1162 return; 1163 deleteStorage = rc == AlertButton_ Yes;1163 deleteStorage = rc == AlertButton_Choice1; 1164 1164 } 1165 1165 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r45358 r45362 192 192 193 193 /* Warn the user about inaccessible medium: */ 194 if (it != list.end() && msgCenter().warnAboutInaccessibleMedia())194 if (it != list.end() && !msgCenter().warnAboutInaccessibleMedia()) 195 195 { 196 196 /* Open the MM window (without refresh): */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r45313 r45362 1466 1466 /* Get iterated machine: */ 1467 1467 CMachine &machine = machines[iMachineIndex]; 1468 if (iResultCode == AlertButton_ Yes)1468 if (iResultCode == AlertButton_Choice1) 1469 1469 { 1470 1470 /* Unregister machine first: */ … … 1490 1490 } 1491 1491 } 1492 else 1492 else if (iResultCode == AlertButton_Choice2) 1493 1493 { 1494 1494 /* Just unregister machine: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r45358 r45362 3046 3046 { 3047 3047 int iAnswer = msgCenter().confirmHardDiskAttachmentCreation(strControllerName, this); 3048 if (iAnswer == AlertButton_ Yes)3048 if (iAnswer == AlertButton_Choice1) 3049 3049 strMediumId = getWithNewHDWizard(); 3050 else if (iAnswer == AlertButton_ No)3050 else if (iAnswer == AlertButton_Choice2) 3051 3051 strMediumId = vboxGlobal().openMediumWithFileOpenDialog(UIMediumType_HardDisk, this, strMachineFolder); 3052 3052 break; … … 3055 3055 { 3056 3056 int iAnswer = msgCenter().confirmOpticalAttachmentCreation(strControllerName, this); 3057 if (iAnswer == AlertButton_ Yes)3057 if (iAnswer == AlertButton_Choice1) 3058 3058 strMediumId = vboxGlobal().openMediumWithFileOpenDialog(UIMediumType_DVD, this, strMachineFolder); 3059 else if (iAnswer == AlertButton_ No)3059 else if (iAnswer == AlertButton_Choice2) 3060 3060 strMediumId = vboxGlobal().findMedium(strMediumId).id(); 3061 3061 break; … … 3064 3064 { 3065 3065 int iAnswer = msgCenter().confirmFloppyAttachmentCreation(strControllerName, this); 3066 if (iAnswer == AlertButton_ Yes)3066 if (iAnswer == AlertButton_Choice1) 3067 3067 strMediumId = vboxGlobal().openMediumWithFileOpenDialog(UIMediumType_Floppy, this, strMachineFolder); 3068 else if (iAnswer == AlertButton_ No)3068 else if (iAnswer == AlertButton_Choice2) 3069 3069 strMediumId = vboxGlobal().findMedium(strMediumId).id(); 3070 3070 break;
Note:
See TracChangeset
for help on using the changeset viewer.