- Timestamp:
- Mar 27, 2023 11:05:18 AM (22 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r99040 r99184 278 278 if "$(KBUILD_TYPE)" != "release" || defined(VBOX_GUI_WITH_EXTRADATA_MANAGER_UI) 279 279 UICommon_DEFS += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 280 endif 281 if "$(KBUILD_TYPE)" != "release" || defined(VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON) 282 UICommon_DEFS += VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 280 283 endif 281 284 ifndef VBOX_WITHOUT_LESS_VIRTUALBOX_INCLUDING -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r98103 r99184 38 38 const char *UIExtraDataDefs::GUI_SuppressMessages = "GUI/SuppressMessages"; 39 39 const char *UIExtraDataDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption"; 40 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 40 41 const char *UIExtraDataDefs::GUI_NotificationCenter_KeepSuccessfullProgresses = "GUI/NotificationCenter/KeepSuccessfullProgresses"; 42 #endif 41 43 const char *UIExtraDataDefs::GUI_NotificationCenter_Alignment = "GUI/NotificationCenter/Alignment"; 42 44 const char *UIExtraDataDefs::GUI_NotificationCenter_Order = "GUI/NotificationCenter/Order"; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r98524 r99184 67 67 /** Holds the list of messages for the Message/Popup center frameworks with inverted check-box state. */ 68 68 SHARED_LIBRARY_STUFF extern const char *GUI_InvertMessageOption; 69 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 69 70 /** Holds whether successfull notification-progresses should NOT close automatically. */ 70 71 SHARED_LIBRARY_STUFF extern const char *GUI_NotificationCenter_KeepSuccessfullProgresses; 72 #endif 71 73 /** Holds notification-center alignment. */ 72 74 SHARED_LIBRARY_STUFF extern const char *GUI_NotificationCenter_Alignment; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r98103 r99184 1915 1915 << GUI_RestrictedDialogs 1916 1916 << GUI_SuppressMessages << GUI_InvertMessageOption 1917 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 1917 1918 << GUI_NotificationCenter_KeepSuccessfullProgresses 1919 #endif 1918 1920 << GUI_NotificationCenter_Alignment 1919 1921 << GUI_NotificationCenter_Order … … 1921 1923 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1922 1924 << GUI_PreventApplicationUpdate << GUI_UpdateDate << GUI_UpdateCheckCount 1923 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */1925 #endif 1924 1926 << GUI_Progress_LegacyMode 1925 1927 << GUI_Customizations … … 1954 1956 #ifndef VBOX_WS_MAC 1955 1957 << GUI_MachineWindowIcons << GUI_MachineWindowNamePostfix 1956 #endif /* !VBOX_WS_MAC */1958 #endif 1957 1959 << GUI_LastNormalWindowPosition << GUI_LastScaleWindowPosition 1958 1960 #ifndef VBOX_WS_MAC … … 1968 1970 #ifdef VBOX_WITH_DEBUGGER_GUI 1969 1971 << GUI_RestrictedRuntimeDebuggerMenuActions 1970 #endif /* VBOX_WITH_DEBUGGER_GUI */1972 #endif 1971 1973 #ifdef VBOX_WS_MAC 1972 1974 << GUI_RestrictedRuntimeWindowMenuActions 1973 #endif /* VBOX_WS_MAC */1975 #endif 1974 1976 << GUI_RestrictedRuntimeHelpMenuActions 1975 1977 << GUI_RestrictedVisualStates … … 1978 1980 << GUI_Fullscreen_LegacyMode 1979 1981 << GUI_DistinguishMachineWindowGroups 1980 #endif /* VBOX_WS_X11 */1982 #endif 1981 1983 << GUI_AutoresizeGuest << GUI_LastVisibilityStatusForGuestScreen << GUI_LastGuestSizeHint 1982 1984 << GUI_VirtualScreenToHostScreen << GUI_AutomountGuestScreens 1983 1985 #ifndef VBOX_WS_MAC 1984 1986 << GUI_ShowMiniToolBar << GUI_MiniToolBarAutoHide << GUI_MiniToolBarAlignment 1985 #endif /* !VBOX_WS_MAC */1987 #endif 1986 1988 << GUI_StatusBar_Enabled << GUI_StatusBar_ContextMenu_Enabled << GUI_RestrictedStatusBarIndicators << GUI_StatusBar_IndicatorOrder 1987 1989 #ifdef VBOX_WS_MAC 1988 1990 << GUI_RealtimeDockIconUpdateEnabled << GUI_RealtimeDockIconUpdateMonitor << GUI_DockIconDisableOverlay 1989 #endif /* VBOX_WS_MAC */1991 #endif 1990 1992 << GUI_PassCAD 1991 1993 << GUI_MouseCapturePolicy … … 2002 2004 #ifdef VBOX_WITH_DEBUGGER_GUI 2003 2005 << GUI_Dbg_Enabled << GUI_Dbg_AutoShow 2004 #endif /* VBOX_WITH_DEBUGGER_GUI */2006 #endif 2005 2007 << GUI_ExtraDataManager_Geometry << GUI_ExtraDataManager_SplitterHints 2006 2008 << GUI_LogWindowGeometry … … 2366 2368 } 2367 2369 2370 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 2368 2371 bool UIExtraDataManager::keepSuccessfullNotificationProgresses() 2369 2372 { … … 2377 2380 setExtraDataString(GUI_NotificationCenter_KeepSuccessfullProgresses, toFeatureAllowed(fKeep)); 2378 2381 } 2382 #endif /* VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON */ 2379 2383 2380 2384 Qt::Alignment UIExtraDataManager::notificationCenterAlignment() -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r98103 r99184 202 202 QStringList messagesWithInvertedOption(); 203 203 204 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 204 205 /** Returns whether successfull notification-progresses should NOT close automatically. */ 205 206 bool keepSuccessfullNotificationProgresses(); 206 207 /** Defines whether successfull notification-progresses should NOT close (@a fKeep) automatically. */ 207 208 void setKeepSuccessfullNotificationProgresses(bool fKeep); 209 #endif /* VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON */ 208 210 209 211 /** Returns notification-center alignment. */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp
r98928 r99184 165 165 , m_pButtonOpen(0) 166 166 , m_pButtonToggleSorting(0) 167 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 167 168 , m_pButtonKeepFinished(0) 169 #endif 168 170 , m_pButtonRemoveFinished(0) 169 171 , m_pLayoutItems(0) … … 294 296 if (m_pButtonToggleSorting) 295 297 m_pButtonToggleSorting->setToolTip(tr("Toggle ascending/descending order")); 298 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 296 299 if (m_pButtonKeepFinished) 297 300 m_pButtonKeepFinished->setToolTip(tr("Keep finished progresses")); 301 #endif 298 302 if (m_pButtonRemoveFinished) 299 303 m_pButtonRemoveFinished->setToolTip(tr("Delete finished notifications")); … … 420 424 } 421 425 426 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 422 427 void UINotificationCenter::sltHandleKeepButtonToggled(bool fToggled) 423 428 { 424 429 gEDataManager->setKeepSuccessfullNotificationProgresses(fToggled); 425 430 } 431 #endif /* VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON */ 426 432 427 433 void UINotificationCenter::sltHandleRemoveFinishedButtonClicked() … … 632 638 } 633 639 640 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 634 641 /* Prepare keep-finished button: */ 635 642 m_pButtonKeepFinished = new QIToolButton(this); … … 642 649 m_pLayoutButtons->addWidget(m_pButtonKeepFinished); 643 650 } 651 #endif /* VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON */ 644 652 645 653 /* Prepare remove-finished button: */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h
r98928 r99184 121 121 /** Issues request to make open button @a fToggled. */ 122 122 void sltHandleOpenButtonToggled(bool fToggled); 123 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 123 124 /** Toggles notification-progresses keep approach. */ 124 125 void sltHandleKeepButtonToggled(bool fToggled); 126 #endif 125 127 /** Removes finished notifications. */ 126 128 void sltHandleRemoveFinishedButtonClicked(); … … 190 192 /** Holds the toggle-sorting button instance. */ 191 193 QIToolButton *m_pButtonToggleSorting; 194 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 192 195 /** Holds the keep-finished button instance. */ 193 196 QIToolButton *m_pButtonKeepFinished; 197 #endif 194 198 /** Holds the remove-finished button instance. */ 195 199 QIToolButton *m_pButtonRemoveFinished; -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp
r98103 r99184 215 215 /* If there was no error and no reason to keep progress alive, - finish him! */ 216 216 if ( error().isEmpty() 217 && !gEDataManager->keepSuccessfullNotificationProgresses()) 217 #ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON 218 && !gEDataManager->keepSuccessfullNotificationProgresses() 219 #endif 220 ) 218 221 close(); 219 222 }
Note:
See TracChangeset
for help on using the changeset viewer.