Changeset 8917 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 19, 2008 1:23:40 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r8894 r8917 183 183 void cannotFindMachineByName (const CVirtualBox &vbox, const QString &name); 184 184 185 void cannotEnterFSMode (bool aIsSeamless, ULONG aWidth, ULONG aHeight, 186 ULONG aBpp, ULONG64 aMinVRAM); 185 void cannotEnterSeamlessMode (ULONG aWidth, ULONG aHeight, 186 ULONG aBpp, ULONG64 aMinVRAM); 187 int cannotEnterFullscreenMode (ULONG aWidth, ULONG aHeight, 188 ULONG aBpp, ULONG64 aMinVRAM); 187 189 188 190 bool confirmMachineDeletion (const CMachine &machine); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r8894 r8917 1995 1995 if (aOn && (availBits < usedBits)) 1996 1996 { 1997 vboxProblem().cannotEnterFSMode (aSeamless, screen.width(), 1998 screen.height(), guestBpp, (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 1999 return false; 1997 if (aSeamless) 1998 { 1999 vboxProblem().cannotEnterSeamlessMode ( 2000 screen.width(), screen.height(), guestBpp, 2001 (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 2002 return false; 2003 } 2004 else 2005 { 2006 int result = vboxProblem().cannotEnterFullscreenMode ( 2007 screen.width(), screen.height(), guestBpp, 2008 (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 2009 if (result == QIMessageBox::Cancel) 2010 return false; 2011 } 2000 2012 } 2001 2013 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r8906 r8917 933 933 } 934 934 935 void VBoxProblemReporter::cannotEnterFSMode (bool aIsSeamless, 936 ULONG /* aWidth */, 937 ULONG /* aHeight */, 938 ULONG /* aBpp */, 939 ULONG64 aMinVRAM) 935 void VBoxProblemReporter::cannotEnterSeamlessMode (ULONG /* aWidth */, 936 ULONG /* aHeight */, 937 ULONG /* aBpp */, 938 ULONG64 aMinVRAM) 940 939 { 941 940 message (&vboxGlobal().consoleWnd(), Error, 942 (aIsSeamless ? 943 tr ("<p>Could not enter seamless mode due to insufficient guest " 944 "video memory.</p>" 945 "<p>You should configure the virtual machine to have at " 946 "least <b>%1</b> of video memory.</p>") : 947 tr ("<p>Could not switch the guest display to fullscreen mode due " 948 "to insufficient guest video memory.</p>" 949 "<p>You should configure the virtual machine to have at " 950 "least <b>%1</b> of video memory.</p>" 951 "<p>Press <b>Ignore</b> to switch to fullscreen mode anyway " 952 "or press <b>Cancel</b> to cancel the operation.</p>")) 941 tr ("<p>Could not enter seamless mode due to insufficient guest " 942 "video memory.</p>" 943 "<p>You should configure the virtual machine to have at " 944 "least <b>%1</b> of video memory.</p>") 953 945 .arg (VBoxGlobal::formatSize (aMinVRAM))); 946 } 947 948 int VBoxProblemReporter::cannotEnterFullscreenMode (ULONG /* aWidth */, 949 ULONG /* aHeight */, 950 ULONG /* aBpp */, 951 ULONG64 aMinVRAM) 952 { 953 return message (&vboxGlobal().consoleWnd(), Warning, 954 tr ("<p>Could not switch the guest display to fullscreen mode due " 955 "to insufficient guest video memory.</p>" 956 "<p>You should configure the virtual machine to have at " 957 "least <b>%1</b> of video memory.</p>" 958 "<p>Press <b>Ignore</b> to switch to fullscreen mode anyway " 959 "or press <b>Cancel</b> to cancel the operation.</p>") 960 .arg (VBoxGlobal::formatSize (aMinVRAM)), 961 0, /* aAutoConfirmId */ 962 QIMessageBox::Ignore | QIMessageBox::Default, 963 QIMessageBox::Cancel | QIMessageBox::Escape); 954 964 } 955 965
Note:
See TracChangeset
for help on using the changeset viewer.