Changeset 8909 in vbox
- Timestamp:
- May 19, 2008 9:57:22 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30960
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleView.h
r8902 r8909 100 100 101 101 QRect desktopGeometry(); 102 103 bool isAutoresizeGuestActive(); 102 104 103 105 /* todo: This are some support functions for the qt4 port. Maybe we get rid -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxProblemReporter.h
r8337 r8909 182 182 void cannotFindMachineByName (const CVirtualBox &vbox, const QString &name); 183 183 184 void cannotEnterSeamlessMode (ULONG aWidth, ULONG aHeight, ULONG aBpp, ULONG64 aMinVRAM); 184 void cannotEnterFSMode (bool aIsSeamless, ULONG aWidth, ULONG aHeight, 185 ULONG aBpp, ULONG64 aMinVRAM); 185 186 186 187 bool confirmMachineDeletion (const CMachine &machine); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r8902 r8909 2335 2335 } 2336 2336 2337 bool VBoxConsoleView::isAutoresizeGuestActive() 2338 { 2339 return mIsAdditionsActive && mAutoresizeGuest; 2340 } 2341 2337 2342 /** 2338 2343 * Called on every key press and release (while in focus). -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r8845 r8909 1980 1980 { 1981 1981 disconnect (console, SIGNAL (resizeHintDone()), 0, 0); 1982 if (aSeamless) 1983 { 1984 /* Check if the Guest Video RAM enough for the seamless mode. */ 1985 QRect screen = QApplication::desktop()->availableGeometry (this); 1982 /* Check if the Guest Video RAM enough for the fullscreen/seamless mode. */ 1983 if (aSeamless || console->isAutoresizeGuestActive()) 1984 { 1985 QRect screen = aSeamless ? 1986 QApplication::desktop()->availableGeometry (this) : 1987 QApplication::desktop()->screenGeometry (this); 1986 1988 ULONG64 availBits = csession.GetMachine().GetVRAMSize() /* vram */ 1987 1989 * _1M /* mb to bytes */ … … 1996 1998 if (aOn && (availBits < usedBits)) 1997 1999 { 1998 vboxProblem().cannotEnter SeamlessMode (screen.width(),2000 vboxProblem().cannotEnterFSMode (aSeamless, screen.width(), 1999 2001 screen.height(), guestBpp, (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 2000 2002 return false; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxProblemReporter.cpp
r8337 r8909 941 941 } 942 942 943 void VBoxProblemReporter::cannotEnterSeamlessMode (ULONG aWidth, 944 ULONG aHeight, 945 ULONG aBpp, 946 ULONG64 aMinVRAM) 943 void VBoxProblemReporter::cannotEnterFSMode (bool aIsSeamless, 944 ULONG /* aWidth */, 945 ULONG /* aHeight */, 946 ULONG /* aBpp */, 947 ULONG64 aMinVRAM) 947 948 { 948 949 message (&vboxGlobal().consoleWnd(), Error, 949 tr ("<p>Could not enter seamless mode due to insufficient guest " 950 "video memory.</p>" 951 "<p>You should configure the VM to have at least <b>%1</b> " 952 "of video memory.</p>") 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>")) 953 961 .arg (VBoxGlobal::formatSize (aMinVRAM))); 954 962 }
Note:
See TracChangeset
for help on using the changeset viewer.