Changeset 84592 in vbox
- Timestamp:
- May 28, 2020 2:19:50 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 4 edited
-
UIChooser.cpp (modified) (4 diffs)
-
UIChooser.h (modified) (2 diffs)
-
UIChooserAbstractModel.h (modified) (2 diffs)
-
UIChooserModel.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
r84582 r84592 231 231 AssertPtrReturnVoid(view()); 232 232 233 /* Chooser-model connections: */ 233 /* Abstract Chooser-model connections: */ 234 connect(model(), &UIChooserModel::sigCloudMachineStateChange, 235 this, &UIChooser::sigCloudMachineStateChange); 234 236 connect(model(), &UIChooserModel::sigGroupSavingStateChanged, 235 237 this, &UIChooser::sigGroupSavingStateChanged); 238 239 /* Chooser-model connections: */ 240 connect(model(), &UIChooserModel::sigToolMenuRequested, 241 this, &UIChooser::sltToolMenuRequested); 236 242 connect(model(), &UIChooserModel::sigSelectionChanged, 237 243 this, &UIChooser::sigSelectionChanged); … … 244 250 connect(model(), &UIChooserModel::sigRootItemMinimumWidthHintChanged, 245 251 view(), &UIChooserView::sltMinimumWidthHintChanged); 246 connect(model(), &UIChooserModel::sigToolMenuRequested,247 this, &UIChooser::sltToolMenuRequested);248 connect(model(), &UIChooserModel::sigCloudMachineStateChange,249 this, &UIChooser::sigCloudMachineStateChange);250 252 connect(model(), &UIChooserModel::sigStartOrShowRequest, 251 253 this, &UIChooser::sigStartOrShowRequest); … … 275 277 AssertPtrReturnVoid(view()); 276 278 277 /* Chooser-model connections: */ 279 /* Abstract Chooser-model connections: */ 280 disconnect(model(), &UIChooserModel::sigCloudMachineStateChange, 281 this, &UIChooser::sigCloudMachineStateChange); 278 282 disconnect(model(), &UIChooserModel::sigGroupSavingStateChanged, 279 283 this, &UIChooser::sigGroupSavingStateChanged); 284 285 /* Chooser-model connections: */ 286 disconnect(model(), &UIChooserModel::sigToolMenuRequested, 287 this, &UIChooser::sltToolMenuRequested); 280 288 disconnect(model(), &UIChooserModel::sigSelectionChanged, 281 289 this, &UIChooser::sigSelectionChanged); … … 288 296 disconnect(model(), &UIChooserModel::sigRootItemMinimumWidthHintChanged, 289 297 view(), &UIChooserView::sltMinimumWidthHintChanged); 290 disconnect(model(), &UIChooserModel::sigToolMenuRequested,291 this, &UIChooser::sltToolMenuRequested);292 disconnect(model(), &UIChooserModel::sigCloudMachineStateChange,293 this, &UIChooser::sigCloudMachineStateChange);294 298 disconnect(model(), &UIChooserModel::sigStartOrShowRequest, 295 299 this, &UIChooser::sigStartOrShowRequest); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h
r84582 r84592 41 41 signals: 42 42 43 /** @name General stuff. 43 /** @name Cloud machine stuff. 44 * @{ */ 45 /** Notifies listeners about state change for cloud machine with certain @a uId. */ 46 void sigCloudMachineStateChange(const QUuid &uId); 47 /** @} */ 48 49 /** @name Group saving stuff. 50 * @{ */ 51 /** Notifies listeners about group saving state change. */ 52 void sigGroupSavingStateChanged(); 53 /** @} */ 54 55 /** @name Tool stuff. 56 * @{ */ 57 /** Notifies listeners about tool popup-menu request for certain @a enmClass and @a position. */ 58 void sigToolMenuRequested(UIToolClass enmClass, const QPoint &position); 59 /** @} */ 60 61 /** @name Selection stuff. 44 62 * @{ */ 45 63 /** Notifies listeners about selection changed. */ … … 48 66 void sigSelectionInvalidated(); 49 67 50 /** Notifies listeners about toggling started. */68 /** Notifies listeners about group toggling started. */ 51 69 void sigToggleStarted(); 52 /** Notifies listeners about toggling finished. */70 /** Notifies listeners about group toggling finished. */ 53 71 void sigToggleFinished(); 54 55 /** Notifies listeners about tool popup-menu request for certain tool @a enmClass and in specified @a position. */56 void sigToolMenuRequested(UIToolClass enmClass, const QPoint &position);57 /** @} */58 59 /** @name Cloud machine stuff.60 * @{ */61 /** Notifies about state change for cloud machine with certain @a uId. */62 void sigCloudMachineStateChange(const QUuid &uId);63 /** @} */64 65 /** @name Group saving stuff.66 * @{ */67 /** Notifies listeners about group saving state change. */68 void sigGroupSavingStateChanged();69 72 /** @} */ 70 73 71 74 /** @name Action stuff. 72 75 * @{ */ 73 /** Notif ylisteners about start or show request. */76 /** Notifies listeners about start or show request. */ 74 77 void sigStartOrShowRequest(); 75 78 /** Notifies listeners about machine search widget visibility changed to @a fVisible. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r84557 r84592 47 47 /** @name Cloud machine stuff. 48 48 * @{ */ 49 /** Notifies about state change for cloud machine with certain @a uId. */49 /** Notifies listeners about state change for cloud machine with certain @a uId. */ 50 50 void sigCloudMachineStateChange(const QUuid &uId); 51 51 /** @} */ … … 55 55 /** Commands to start group saving. */ 56 56 void sigStartGroupSaving(); 57 /** Notifies about group saving state changed. */57 /** Notifies listeners about group saving state changed. */ 58 58 void sigGroupSavingStateChanged(); 59 59 /** @} */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r84582 r84592 65 65 signals: 66 66 67 /** @name General stuff.68 * @{ */ 69 /** Notif y listeners about tool menu popuprequest for certain @a enmClass and @a position. */67 /** @name Tool stuff. 68 * @{ */ 69 /** Notifies listeners about tool popup-menu request for certain @a enmClass and @a position. */ 70 70 void sigToolMenuRequested(UIToolClass enmClass, const QPoint &position); 71 71 /** @} */ … … 73 73 /** @name Selection stuff. 74 74 * @{ */ 75 /** Notifies about selection changed. */75 /** Notifies listeners about selection changed. */ 76 76 void sigSelectionChanged(); 77 /** Notifies about selection invalidated. */77 /** Notifies listeners about selection invalidated. */ 78 78 void sigSelectionInvalidated(); 79 79 80 /** Notifies about group toggling started. */80 /** Notifies listeners about group toggling started. */ 81 81 void sigToggleStarted(); 82 /** Notifies about group toggling finished. */82 /** Notifies listeners about group toggling finished. */ 83 83 void sigToggleFinished(); 84 84 /** @} */ … … 86 86 /** @name Layout stuff. 87 87 * @{ */ 88 /** Notifies about root item minimum width @a iHint changed. */88 /** Notifies listeners about root item minimum width @a iHint changed. */ 89 89 void sigRootItemMinimumWidthHintChanged(int iHint); 90 90 /** @} */ … … 92 92 /** @name Action stuff. 93 93 * @{ */ 94 /** Notif ylisteners about start or show request. */94 /** Notifies listeners about start or show request. */ 95 95 void sigStartOrShowRequest(); 96 96 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.

