- Timestamp:
- May 20, 2008 10:25:09 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxProblemReporter.h
r8909 r8947 182 182 void cannotFindMachineByName (const CVirtualBox &vbox, const QString &name); 183 183 184 void cannotEnterFSMode (bool aIsSeamless, ULONG aWidth, ULONG aHeight, 185 ULONG aBpp, ULONG64 aMinVRAM); 184 void cannotEnterSeamlessMode (ULONG aWidth, ULONG aHeight, 185 ULONG aBpp, ULONG64 aMinVRAM); 186 int cannotEnterFullscreenMode (ULONG aWidth, ULONG aHeight, 187 ULONG aBpp, ULONG64 aMinVRAM); 186 188 187 189 bool confirmMachineDeletion (const CMachine &machine); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r8946 r8947 2013 2013 if (aOn && (availBits < usedBits)) 2014 2014 { 2015 vboxProblem().cannotEnterFSMode (aSeamless, screen.width(), 2016 screen.height(), guestBpp, (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 2017 return false; 2015 if (aSeamless) 2016 { 2017 vboxProblem().cannotEnterSeamlessMode ( 2018 screen.width(), screen.height(), guestBpp, 2019 (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 2020 return false; 2021 } 2022 else 2023 { 2024 int result = vboxProblem().cannotEnterFullscreenMode ( 2025 screen.width(), screen.height(), guestBpp, 2026 (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 2027 if (result == QIMessageBox::Cancel) 2028 return false; 2029 } 2018 2030 } 2019 2031 } -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxProblemReporter.cpp
r8910 r8947 941 941 } 942 942 943 void VBoxProblemReporter::cannotEnterFSMode (bool aIsSeamless, 944 ULONG /* aWidth */, 945 ULONG /* aHeight */, 946 ULONG /* aBpp */, 947 ULONG64 aMinVRAM) 943 void VBoxProblemReporter::cannotEnterSeamlessMode (ULONG /* aWidth */, 944 ULONG /* aHeight */, 945 ULONG /* aBpp */, 946 ULONG64 aMinVRAM) 948 947 { 949 948 message (&vboxGlobal().consoleWnd(), Error, 950 (aIsSeamless ? 951 tr ("<p>Could not enter seamless mode due to insufficient guest " 952 "video memory.</p>" 953 "<p>You should configure the virtual machine to have at " 954 "least <b>%1</b> of video memory.</p>") : 955 tr ("<p>Could not switch the guest display to fullscreen mode due " 956 "to insufficient guest video memory.</p>" 957 "<p>You should configure the virtual machine to have at " 958 "least <b>%1</b> of video memory.</p>" 959 "<p>Press <b>Ignore</b> to switch to fullscreen mode anyway " 960 "or press <b>Cancel</b> to cancel the operation.</p>")) 949 tr ("<p>Could not enter seamless mode due to insufficient guest " 950 "video memory.</p>" 951 "<p>You should configure the virtual machine to have at " 952 "least <b>%1</b> of video memory.</p>") 961 953 .arg (VBoxGlobal::formatSize (aMinVRAM))); 954 } 955 956 int VBoxProblemReporter::cannotEnterFullscreenMode (ULONG /* aWidth */, 957 ULONG /* aHeight */, 958 ULONG /* aBpp */, 959 ULONG64 aMinVRAM) 960 { 961 return message (&vboxGlobal().consoleWnd(), Warning, 962 tr ("<p>Could not switch the guest display to fullscreen mode due " 963 "to insufficient guest video memory.</p>" 964 "<p>You should configure the virtual machine to have at " 965 "least <b>%1</b> of video memory.</p>" 966 "<p>Press <b>Ignore</b> to switch to fullscreen mode anyway " 967 "or press <b>Cancel</b> to cancel the operation.</p>") 968 .arg (VBoxGlobal::formatSize (aMinVRAM)), 969 0, /* aAutoConfirmId */ 970 QIMessageBox::Ignore | QIMessageBox::Default, 971 QIMessageBox::Cancel | QIMessageBox::Escape); 962 972 } 963 973
Note:
See TracChangeset
for help on using the changeset viewer.