VirtualBox

Changeset 84438 in vbox for trunk/src


Ignore:
Timestamp:
May 21, 2020 6:04:11 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane cleanup: A bit of doxygen fixes, some order sync between the chooser pane code and the place where it is called.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r84437 r84438  
    6161}
    6262
     63UIVirtualMachineItem *UIVirtualBoxManagerWidget::currentItem() const
     64{
     65    return m_pPaneChooser->currentItem();
     66}
     67
     68QList<UIVirtualMachineItem*> UIVirtualBoxManagerWidget::currentItems() const
     69{
     70    return m_pPaneChooser->currentItems();
     71}
     72
    6373bool UIVirtualBoxManagerWidget::isGroupItemSelected() const
    6474{
     
    7686}
    7787
    78 UIVirtualMachineItem *UIVirtualBoxManagerWidget::currentItem() const
    79 {
    80     return m_pPaneChooser->currentItem();
    81 }
    82 
    83 QList<UIVirtualMachineItem*> UIVirtualBoxManagerWidget::currentItems() const
    84 {
    85     return m_pPaneChooser->currentItems();
     88bool UIVirtualBoxManagerWidget::isSingleGroupSelected() const
     89{
     90    return m_pPaneChooser->isSingleGroupSelected();
     91}
     92
     93bool UIVirtualBoxManagerWidget::isSingleLocalGroupSelected() const
     94{
     95    return m_pPaneChooser->isSingleLocalGroupSelected();
     96}
     97
     98bool UIVirtualBoxManagerWidget::isSingleCloudProfileGroupSelected() const
     99{
     100    return m_pPaneChooser->isSingleCloudProfileGroupSelected();
     101}
     102
     103bool UIVirtualBoxManagerWidget::isAllItemsOfOneGroupSelected() const
     104{
     105    return m_pPaneChooser->isAllItemsOfOneGroupSelected();
    86106}
    87107
     
    89109{
    90110    return m_pPaneChooser->isGroupSavingInProgress();
    91 }
    92 
    93 bool UIVirtualBoxManagerWidget::isAllItemsOfOneGroupSelected() const
    94 {
    95     return m_pPaneChooser->isAllItemsOfOneGroupSelected();
    96 }
    97 
    98 bool UIVirtualBoxManagerWidget::isSingleGroupSelected() const
    99 {
    100     return m_pPaneChooser->isSingleGroupSelected();
    101 }
    102 
    103 bool UIVirtualBoxManagerWidget::isSingleLocalGroupSelected() const
    104 {
    105     return m_pPaneChooser->isSingleLocalGroupSelected();
    106 }
    107 
    108 bool UIVirtualBoxManagerWidget::isSingleCloudProfileGroupSelected() const
    109 {
    110     return m_pPaneChooser->isSingleCloudProfileGroupSelected();
    111111}
    112112
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h

    r84437 r84438  
    5858signals:
    5959
    60     /** Notifies about Chooser-pane index change. */
    61     void sigChooserPaneIndexChange();
    62     /** Notifies about Chooser-pane group saving change. */
    63     void sigGroupSavingStateChanged();
    64 
    65     /** Notifies aboud Details-pane link clicked. */
    66     void sigMachineSettingsLinkClicked(const QString &strCategory, const QString &strControl, const QUuid &uId);
    67 
    68     /** Notifies about Tool type change. */
    69     void sigToolTypeChange();
    70 
    71     /** Notifies listeners about Cloud Profile Manager change. */
    72     void sigCloudProfileManagerChange();
    73 
    74     /** Notifies listeners about current Snapshots pane item change. */
    75     void sigCurrentSnapshotItemChange();
    76 
    77     /** Notifies about state change for cloud machine with certain @a uId. */
    78     void sigCloudMachineStateChange(const QUuid &uId);
    79 
    80     /** @name Action stuff.
    81       * @{ */
     60    /** @name Chooser pane stuff.
     61      * @{ */
     62        /** Notifies about Chooser-pane index change. */
     63        void sigChooserPaneIndexChange();
     64        /** Notifies about Chooser-pane group saving change. */
     65        void sigGroupSavingStateChanged();
     66
     67        /** Notifies about state change for cloud machine with certain @a uId. */
     68        void sigCloudMachineStateChange(const QUuid &uId);
     69
    8270        /** Notify listeners about start or show request. */
    8371        void sigStartOrShowRequest();
     72    /** @} */
     73
     74    /** @name Tools pane stuff.
     75      * @{ */
     76        /** Notifies about Tool type change. */
     77        void sigToolTypeChange();
     78    /** @} */
     79
     80    /** @name Tools / Cloud Profile Manager stuff.
     81      * @{ */
     82        /** Notifies listeners about Cloud Profile Manager change. */
     83        void sigCloudProfileManagerChange();
     84    /** @} */
     85
     86    /** @name Tools / Details pane stuff.
     87      * @{ */
     88        /** Notifies aboud Details-pane link clicked. */
     89        void sigMachineSettingsLinkClicked(const QString &strCategory, const QString &strControl, const QUuid &uId);
     90    /** @} */
     91
     92    /** @name Tools / Snapshots pane stuff.
     93      * @{ */
     94        /** Notifies listeners about current Snapshots pane item change. */
     95        void sigCurrentSnapshotItemChange();
    8496    /** @} */
    8597
     
    95107        /** Returns the action-pool instance. */
    96108        UIActionPool *actionPool() const { return m_pActionPool; }
    97 
    98         /** Returns whether group current-item is selected. */
    99         bool isGroupItemSelected() const;
    100         /** Returns whether global current-item is selected. */
    101         bool isGlobalItemSelected() const;
    102         /** Returns whether machine current-item is selected. */
    103         bool isMachineItemSelected() const;
     109    /** @} */
     110
     111    /** @name Chooser pane stuff.
     112      * @{ */
    104113        /** Returns current-item. */
    105114        UIVirtualMachineItem *currentItem() const;
     
    107116        QList<UIVirtualMachineItem*> currentItems() const;
    108117
    109         /** Returns whether group saving is in progress. */
    110         bool isGroupSavingInProgress() const;
    111         /** Returns whether all items of one group is selected. */
    112         bool isAllItemsOfOneGroupSelected() const;
     118        /** Returns whether group item is selected. */
     119        bool isGroupItemSelected() const;
     120        /** Returns whether global item is selected. */
     121        bool isGlobalItemSelected() const;
     122        /** Returns whether machine item is selected. */
     123        bool isMachineItemSelected() const;
     124
    113125        /** Returns whether single group is selected. */
    114126        bool isSingleGroupSelected() const;
     
    117129        /** Returns whether single cloud profile group is selected. */
    118130        bool isSingleCloudProfileGroupSelected() const;
    119 
     131        /** Returns whether all items of one group are selected. */
     132        bool isAllItemsOfOneGroupSelected() const;
     133
     134        /** Returns whether group saving is in progress. */
     135        bool isGroupSavingInProgress() const;
     136    /** @} */
     137
     138    /** @name Tools pane stuff.
     139      * @{ */
    120140        /** Defines tools @a enmType. */
    121141        void setToolsType(UIToolType enmType);
     
    141161    /** @} */
    142162
    143     /** @name Snapshot pane stuff.
     163    /** @name Tools / Snapshot pane stuff.
    144164      * @{ */
    145165        /** Returns whether current-state item of Snapshot pane is selected. */
     
    149169public slots:
    150170
    151     /** @name Common stuff.
     171    /** @name Chooser pane stuff.
    152172      * @{ */
    153173        /** Handles context-menu request for passed @a position. */
     
    165185private slots:
    166186
    167     /** @name Common stuff.
     187    /** @name Chooser pane stuff.
    168188      * @{ */
    169189        /** Handles signal about Chooser-pane index change. */
     
    181201    /** @} */
    182202
    183     /** @name Tools stuff.
     203    /** @name Tools pane stuff.
    184204      * @{ */
    185205        /** Handles tool menu request. */
     
    216236    /** @} */
    217237
    218     /** @name Common stuff.
     238    /** @name Tools / Common stuff.
    219239      * @{ */
    220240        /** Recaches current item information.
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h

    r84437 r84438  
    117117        /** Returns whether single cloud profile group is selected. */
    118118        bool isSingleCloudProfileGroupSelected() const;
    119         /** Returns whether all machine items of one group is selected. */
     119        /** Returns whether all items of one group are selected. */
    120120        bool isAllItemsOfOneGroupSelected() const;
    121121    /** @} */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette