- Timestamp:
- May 22, 2008 6:16:10 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r9036 r9048 240 240 bool mAutoresizeGuest : 1; 241 241 242 bool m IsAdditionsActive: 1;242 bool mGuestSupportsGraphics : 1; 243 243 244 244 bool mNumLock : 1; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r9045 r9048 629 629 , mIgnoreMainwndResize (true) 630 630 , mAutoresizeGuest (false) 631 , m IsAdditionsActive(false)631 , mGuestSupportsGraphics (false) 632 632 , mNumLock (false) 633 633 , mScrollLock (false) … … 997 997 maybeRestrictMinimumSize(); 998 998 999 if (m IsAdditionsActive&& mAutoresizeGuest)999 if (mGuestSupportsGraphics && mAutoresizeGuest) 1000 1000 doResizeHint(); 1001 1001 } … … 1200 1200 LogFlowFunc (("AdditionsStateChangeEventType\n")); 1201 1201 1202 m IsAdditionsActive = ge->additionActive();1202 mGuestSupportsGraphics = ge->supportsGraphics(); 1203 1203 1204 1204 maybeRestrictMinimumSize(); … … 1555 1555 { 1556 1556 if (!mIgnoreMainwndResize && 1557 m IsAdditionsActive&& mAutoresizeGuest)1557 mGuestSupportsGraphics && mAutoresizeGuest) 1558 1558 resize_hint_timer->start (300, TRUE); 1559 1559 break; … … 2244 2244 void VBoxConsoleView::toggleFSMode (const QSize &aSize) 2245 2245 { 2246 if ((m IsAdditionsActive&& mAutoresizeGuest) ||2246 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2247 2247 mMainWnd->isTrueFullscreen()) 2248 2248 { … … 2286 2286 bool VBoxConsoleView::isAutoresizeGuestActive() 2287 2287 { 2288 return m IsAdditionsActive&& mAutoresizeGuest;2288 return mGuestSupportsGraphics && mAutoresizeGuest; 2289 2289 } 2290 2290 … … 3545 3545 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3546 3546 { 3547 if ((m IsAdditionsActive&& mAutoresizeGuest) ||3547 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 3548 3548 mMainWnd->isTrueFullscreen()) 3549 3549 { … … 3654 3654 if (mode == VBoxDefs::SDLMode) 3655 3655 { 3656 if (!m IsAdditionsActive|| !mAutoresizeGuest)3656 if (!mGuestSupportsGraphics || !mAutoresizeGuest) 3657 3657 setMinimumSize (sizeHint()); 3658 3658 else -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleView.h
r8909 r9048 258 258 bool mAutoresizeGuest : 1; 259 259 260 bool m IsAdditionsActive: 1;260 bool mGuestSupportsGraphics : 1; 261 261 262 262 bool mNumLock : 1; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r8909 r9048 650 650 , mIgnoreMainwndResize (true) 651 651 , mAutoresizeGuest (false) 652 , m IsAdditionsActive(false)652 , mGuestSupportsGraphics (false) 653 653 , mNumLock (false) 654 654 , mScrollLock (false) … … 1032 1032 maybeRestrictMinimumSize(); 1033 1033 1034 if (m IsAdditionsActive&& mAutoresizeGuest)1034 if (mGuestSupportsGraphics && mAutoresizeGuest) 1035 1035 doResizeHint(); 1036 1036 } … … 1248 1248 LogFlowFunc (("AdditionsStateChangeEventType\n")); 1249 1249 1250 m IsAdditionsActive = ge->additionActive();1250 mGuestSupportsGraphics = ge->supportsGraphics(); 1251 1251 1252 1252 maybeRestrictMinimumSize(); … … 1602 1602 { 1603 1603 if (!mIgnoreMainwndResize && 1604 m IsAdditionsActive&& mAutoresizeGuest)1604 mGuestSupportsGraphics && mAutoresizeGuest) 1605 1605 QTimer::singleShot (300, this, SLOT (doResizeHint())); 1606 1606 break; … … 2284 2284 void VBoxConsoleView::toggleFSMode() 2285 2285 { 2286 if ((m IsAdditionsActive&& mAutoresizeGuest) ||2286 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2287 2287 mMainWnd->isTrueFullscreen()) 2288 2288 { … … 2303 2303 * feature disabled". 100 msec pause required for resizing 2304 2304 * before normalizing geometry. */ 2305 mToggleFSModeTimer->start (m IsAdditionsActive&& mAutoresizeGuest ?2305 mToggleFSModeTimer->start (mGuestSupportsGraphics && mAutoresizeGuest ? 2306 2306 2000 : 100); 2307 2307 … … 2337 2337 bool VBoxConsoleView::isAutoresizeGuestActive() 2338 2338 { 2339 return m IsAdditionsActive&& mAutoresizeGuest;2339 return mGuestSupportsGraphics && mAutoresizeGuest; 2340 2340 } 2341 2341 … … 3574 3574 void VBoxConsoleView::doResizeHint (const QSize &aToSize) 3575 3575 { 3576 if ((m IsAdditionsActive&& mAutoresizeGuest) ||3576 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 3577 3577 mMainWnd->isTrueFullscreen()) 3578 3578 { … … 3683 3683 if (mode == VBoxDefs::SDLMode) 3684 3684 { 3685 if (!m IsAdditionsActive|| !mAutoresizeGuest)3685 if (!mGuestSupportsGraphics || !mAutoresizeGuest) 3686 3686 setMinimumSize (sizeHint()); 3687 3687 else
Note:
See TracChangeset
for help on using the changeset viewer.