Changeset 8894 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 16, 2008 1:05:23 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r8888 r8894 104 104 QRect getDesktopGeometry(); 105 105 106 bool isAutoresizeGuestActive(); 107 106 108 signals: 107 109 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r8428 r8894 183 183 void cannotFindMachineByName (const CVirtualBox &vbox, const QString &name); 184 184 185 void cannotEnterSeamlessMode (ULONG aWidth, ULONG aHeight, ULONG aBpp, ULONG64 aMinVRAM); 185 void cannotEnterFSMode (bool aIsSeamless, ULONG aWidth, ULONG aHeight, 186 ULONG aBpp, ULONG64 aMinVRAM); 186 187 187 188 bool confirmMachineDeletion (const CMachine &machine); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r8888 r8894 2304 2304 } 2305 2305 2306 bool VBoxConsoleView::isAutoresizeGuestActive() 2307 { 2308 return mIsAdditionsActive && mAutoresizeGuest; 2309 } 2310 2306 2311 /** 2307 2312 * Called on every key press and release (while in focus). -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r8846 r8894 1976 1976 { 1977 1977 disconnect (console, SIGNAL (resizeHintDone()), 0, 0); 1978 if (aSeamless) 1979 { 1980 /* Check if the Guest Video RAM enough for the seamless mode. */ 1981 QRect screen = QApplication::desktop()->availableGeometry (this); 1978 /* Check if the Guest Video RAM enough for the fullscreen/seamless mode. */ 1979 if (aSeamless || console->isAutoresizeGuestActive()) 1980 { 1981 QRect screen = aSeamless ? 1982 QApplication::desktop()->availableGeometry (this) : 1983 QApplication::desktop()->screenGeometry (this); 1982 1984 ULONG64 availBits = csession.GetMachine().GetVRAMSize() /* vram */ 1983 1985 * _1M /* mb to bytes */ … … 1993 1995 if (aOn && (availBits < usedBits)) 1994 1996 { 1995 vboxProblem().cannotEnter SeamlessMode (screen.width(),1997 vboxProblem().cannotEnterFSMode (aSeamless, screen.width(), 1996 1998 screen.height(), guestBpp, (((usedBits + 7) / 8 + _1M - 1) / _1M) * _1M); 1997 1999 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r8428 r8894 933 933 } 934 934 935 void VBoxProblemReporter::cannotEnterSeamlessMode (ULONG /* aWidth */, 936 ULONG /* aHeight */, 937 ULONG /* aBpp */, 938 ULONG64 aMinVRAM) 935 void VBoxProblemReporter::cannotEnterFSMode (bool aIsSeamless, 936 ULONG /* aWidth */, 937 ULONG /* aHeight */, 938 ULONG /* aBpp */, 939 ULONG64 aMinVRAM) 939 940 { 940 941 message (&vboxGlobal().consoleWnd(), Error, 941 tr ("<p>Could not enter seamless modedue to insufficient guest "942 tr ("<p>Could not enter %1 due to insufficient guest " 942 943 "video memory.</p>" 943 "<p>You should configure the VM to have at least <b>% 1</b> "944 "<p>You should configure the VM to have at least <b>%2</b> " 944 945 "of video memory.</p>") 946 .arg (aIsSeamless ? tr ("seamless mode") : tr ("fullscreen mode")) 945 947 .arg (VBoxGlobal::formatSize (aMinVRAM))); 946 948 }
Note:
See TracChangeset
for help on using the changeset viewer.