Changeset 3674 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
- Timestamp:
- Jul 17, 2007 4:12:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r3483 r3674 231 231 GuestAdditionsEvent (const QString &aOsTypeId, 232 232 const QString &aAddVersion, 233 bool aAddActive) : 233 bool aAddActive, 234 bool aSeamlessActive) : 234 235 QEvent ((QEvent::Type) VBoxDefs::AdditionsStateChangeEventType), 235 mOsTypeId (aOsTypeId), mAddVersion (aAddVersion), mAddActive (aAddActive) {} 236 mOsTypeId (aOsTypeId), mAddVersion (aAddVersion), 237 mAddActive (aAddActive), mSeamlessActive (aSeamlessActive) {} 236 238 const QString &osTypeId() const { return mOsTypeId; } 237 239 const QString &additionVersion() const { return mAddVersion; } 238 240 bool additionActive() const { return mAddActive; } 241 bool seamlessActive() const { return mSeamlessActive; } 239 242 private: 240 243 QString mOsTypeId; 241 244 QString mAddVersion; 242 245 bool mAddActive; 246 bool mSeamlessActive; 243 247 }; 244 248 … … 391 395 guest.GetOSTypeId(), 392 396 guest.GetAdditionsVersion(), 393 guest.GetAdditionsActive())); 397 guest.GetAdditionsActive(), 398 guest.GetSeamlessSupport())); 394 399 return S_OK; 395 400 } … … 935 940 * full screen */ 936 941 if (!mainwnd->isTrueFullscreen() && 942 !mainwnd->isTrueSeamless() && 937 943 !topLevelWidget()->isMaximized()) 938 944 normalizeGeometry (true /* adjustPosition */); … … 955 961 } 956 962 #endif /* Q_WS_MAC */ 963 964 case VBoxDefs::SetRegionEventType: 965 { 966 VBoxSetRegionEvent *sre = (VBoxSetRegionEvent*) e; 967 mainwnd->setMask (sre->region()); 968 return true; 969 } 957 970 958 971 case VBoxDefs::MousePointerChangeEventType: … … 1022 1035 maybeRestrictMinimumSize(); 1023 1036 1024 emit additionsStateChanged (ge->additionVersion(), ge->additionActive()); 1037 emit additionsStateChanged (ge->additionVersion(), 1038 ge->additionActive(), 1039 ge->seamlessActive()); 1025 1040 return true; 1026 1041 } … … 1261 1276 * variable should be set to true here in case of mainwnd is 1262 1277 * maximized or in fullscreen state. */ 1263 if (mainwnd->isMaximized() || mainwnd->isTrueFullscreen()) 1278 if (mainwnd->isMaximized() || mainwnd->isTrueFullscreen() 1279 || mainwnd->isTrueSeamless()) 1264 1280 ignore_mainwnd_resize = true; 1265 1281 } … … 1273 1289 if (!mainwnd->isMinimized() && 1274 1290 !mainwnd->isMaximized() && 1275 !mainwnd->isTrueFullscreen()) 1291 !mainwnd->isTrueFullscreen() && 1292 !mainwnd->isTrueSeamless()) 1276 1293 QTimer::singleShot (0, this, SLOT (exitFullScreen())); 1277 1294 } … … 1824 1841 } 1825 1842 1843 bool VBoxConsoleView::isInSeamlessMode() 1844 { 1845 return mainwnd->isTrueSeamless(); 1846 } 1847 1826 1848 /** 1827 1849 * Called on exit from fullscreen or from maximized mode.
Note:
See TracChangeset
for help on using the changeset viewer.