VirtualBox

Changeset 50767 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 13, 2014 2:35:34 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Medium Manager rework/cleanup: Mostly doxygen stuff and few other comments; Some unused stuff cleanup; Variables renaming.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/medium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp

    r50719 r50767  
    11/* $Id$ */
    22/** @file
    3  *
    4  * VBox frontends: Qt4 GUI ("VirtualBox"):
    5  * UIMediumManager class implementation
     3 * VBox Qt GUI - UIMediumManager class implementation.
    64 */
    75
    86/*
    9  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    108 *
    119 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2826#include <QHeaderView>
    2927#include <QPushButton>
    30 #include <QTimer>
    3128
    3229/* GUI includes: */
     
    4340/* COM includes: */
    4441#include "COMEnums.h"
     42#include "CMachine.h"
    4543#include "CMediumFormat.h"
    4644#include "CStorageController.h"
     
    650648UIMediumManager::UIMediumManager(QWidget *pCenterWidget, bool fRefresh /* = true */)
    651649    : QIWithRetranslateUI2<QIMainDialog>(0, Qt::Dialog)
    652     , m_pCenterWidget(pCenterWidget)
     650    , m_pPseudoParentWidget(pCenterWidget)
    653651    , m_fRefresh(fRefresh)
    654652    , m_fPreventChangeCurrentItem(false)
     
    841839{
    842840    /* Get current tree-widget: */
    843     QTreeWidget *pTree = currentTreeWidget();
     841    QTreeWidget *pTreeWidget = currentTreeWidget();
    844842
    845843    /* If another tree-widget was focused before,
    846844     * move focus to current tree-widget: */
    847845    if (qobject_cast<QTreeWidget*>(focusWidget()))
    848         pTree->setFocus();
     846        pTreeWidget->setFocus();
    849847
    850848    /* Re-fetch currently chosen medium-item: */
     
    854852void UIMediumManager::sltHandleCurrentItemChanged()
    855853{
    856     /* Determine tree-widget sender: */
     854    /* Get sender() tree-widget: */
    857855    QTreeWidget *pTreeWidget = qobject_cast<QTreeWidget*>(sender());
    858856    AssertMsgReturnVoid(pTreeWidget, ("This slot should be called by tree-widget only!\n"));
     
    871869void UIMediumManager::sltHandleContextMenuCall(const QPoint &position)
    872870{
    873     /* Get corresponding tree-widget / item: */
     871    /* Get current tree-widget / item: */
    874872    QTreeWidget *pTreeWidget = currentTreeWidget();
    875873    QTreeWidgetItem *pItem = pTreeWidget->itemAt(position);
     
    883881    /* Show item context menu: */
    884882    m_pContextMenu->exec(pTreeWidget->viewport()->mapToGlobal(position));
    885 }
    886 
    887 void UIMediumManager::sltMakeRequestForTableAdjustment()
    888 {
    889     /* We have to perform tables adjustment only after all the [auto]resize
    890      * events processed for every column of corresponding table. */
    891     QTimer::singleShot(0, this, SLOT(sltPerformTablesAdjustment()));
    892883}
    893884
     
    902893    /* Calculate deduction for every header: */
    903894    QList<int> deductions;
    904     foreach (QITreeWidget *pTree, trees)
     895    foreach (QTreeWidget *pTreeWidget, trees)
    905896    {
    906897        int iDeduction = 0;
    907         for (int iHeaderIndex = 1; iHeaderIndex < pTree->header()->count(); ++iHeaderIndex)
    908             iDeduction += pTree->header()->sectionSize(iHeaderIndex);
     898        for (int iHeaderIndex = 1; iHeaderIndex < pTreeWidget->header()->count(); ++iHeaderIndex)
     899            iDeduction += pTreeWidget->header()->sectionSize(iHeaderIndex);
    909900        deductions << iDeduction;
    910901    }
     
    913904    for (int iTreeIndex = 0; iTreeIndex < trees.size(); ++iTreeIndex)
    914905    {
    915         QITreeWidget *pTree = trees[iTreeIndex];
    916         int iSize0 = pTree->viewport()->width() - deductions[iTreeIndex];
    917         if (pTree->header()->sectionSize(0) != iSize0)
    918             pTree->header()->resizeSection(0, iSize0);
     906        QTreeWidget *pTreeWidget = trees[iTreeIndex];
     907        int iSize0 = pTreeWidget->viewport()->width() - deductions[iTreeIndex];
     908        if (pTreeWidget->header()->sectionSize(0) != iSize0)
     909            pTreeWidget->header()->resizeSection(0, iSize0);
    919910    }
    920911}
     
    952943#endif /* Q_WS_MAC */
    953944
    954     /* Center according passed widget: */
    955     centerAccording(m_pCenterWidget);
     945    /* Center according pseudo-parent widget: */
     946    centerAccording(m_pPseudoParentWidget);
    956947
    957948    /* Initialize information-panes: */
     
    989980    /* Apply UI decorations: */
    990981    Ui::UIMediumManager::setupUi(this);
    991 
    992     /* Prepare some global stuff: */
    993     m_vbox = vboxGlobal().virtualBox();
    994     Assert(!m_vbox.isNull());
    995982
    996983    /* Configure medium-processing connections: */
     
    11741161                this, SLOT(sltHandleContextMenuCall(const QPoint&)));
    11751162        connect(mTwHD, SIGNAL(resized(const QSize&, const QSize&)),
    1176                 this, SLOT(sltMakeRequestForTableAdjustment()));
     1163                this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection);
    11771164        connect(mTwHD->header(), SIGNAL(sectionResized(int, int, int)),
    1178                 this, SLOT(sltMakeRequestForTableAdjustment()));
     1165                this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection);
    11791166    }
    11801167}
     
    11981185                this, SLOT(sltHandleContextMenuCall(const QPoint&)));
    11991186        connect(mTwCD, SIGNAL(resized(const QSize&, const QSize&)),
    1200                 this, SLOT(sltMakeRequestForTableAdjustment()));
     1187                this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection);
    12011188        connect(mTwCD->header(), SIGNAL(sectionResized(int, int, int)),
    1202                 this, SLOT(sltMakeRequestForTableAdjustment()));
     1189                this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection);
    12031190    }
    12041191}
     
    12221209                this, SLOT(sltHandleContextMenuCall(const QPoint&)));
    12231210        connect(mTwFD, SIGNAL(resized(const QSize&, const QSize&)),
    1224                 this, SLOT(sltMakeRequestForTableAdjustment()));
     1211                this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection);
    12251212        connect(mTwFD->header(), SIGNAL(sectionResized(int, int, int)),
    1226                 this, SLOT(sltMakeRequestForTableAdjustment()));
     1213                this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection);
    12271214    }
    12281215}
     
    12741261    /* Remember current medium-items: */
    12751262    if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_HardDisk))
    1276         m_strSelectedIdHD = pMediumItem->id();
     1263        m_strCurrentIdHD = pMediumItem->id();
    12771264    if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_DVD))
    1278         m_strSelectedIdCD = pMediumItem->id();
     1265        m_strCurrentIdCD = pMediumItem->id();
    12791266    if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_Floppy))
    1280         m_strSelectedIdFD = pMediumItem->id();
     1267        m_strCurrentIdFD = pMediumItem->id();
    12811268
    12821269    /* Clear tree-widgets: */
     
    16641651        case UIMediumType_HardDisk:
    16651652        {
    1666             pMediumItem = createHardDiskItem(mTwHD, medium);
     1653            pMediumItem = createHardDiskItem(medium);
    16671654            AssertPtrReturn(pMediumItem, 0);
    1668             if (pMediumItem->id() == m_strSelectedIdHD)
     1655            if (pMediumItem->id() == m_strCurrentIdHD)
    16691656            {
    16701657                setCurrentItem(mTwHD, pMediumItem);
    1671                 m_strSelectedIdHD = QString();
     1658                m_strCurrentIdHD = QString();
    16721659            }
    16731660            break;
     
    16791666            LogRel2(("UIMediumManager: Optical medium-item with ID={%s} created.\n", medium.id().toAscii().constData()));
    16801667            AssertPtrReturn(pMediumItem, 0);
    1681             if (pMediumItem->id() == m_strSelectedIdCD)
     1668            if (pMediumItem->id() == m_strCurrentIdCD)
    16821669            {
    16831670                setCurrentItem(mTwCD, pMediumItem);
    1684                 m_strSelectedIdCD = QString();
     1671                m_strCurrentIdCD = QString();
    16851672            }
    16861673            break;
     
    16921679            LogRel2(("UIMediumManager: Floppy medium-item with ID={%s} created.\n", medium.id().toAscii().constData()));
    16931680            AssertPtrReturn(pMediumItem, 0);
    1694             if (pMediumItem->id() == m_strSelectedIdFD)
     1681            if (pMediumItem->id() == m_strCurrentIdFD)
    16951682            {
    16961683                setCurrentItem(mTwFD, pMediumItem);
    1697                 m_strSelectedIdFD = QString();
     1684                m_strCurrentIdFD = QString();
    16981685            }
    16991686            break;
     
    18501837}
    18511838
    1852 UIMediumItem* UIMediumManager::searchItem(QTreeWidget *pTree, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException) const
     1839/* static */
     1840UIMediumItem* UIMediumManager::searchItem(QTreeWidget *pTreeWidget, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException)
    18531841{
    18541842    /* Make sure argument is valid: */
    1855     if (!pTree)
     1843    if (!pTreeWidget)
    18561844        return 0;
    18571845
    18581846    /* Return wrapper: */
    1859     return searchItem(pTree->invisibleRootItem(), condition, pException);
    1860 }
    1861 
    1862 UIMediumItem* UIMediumManager::searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException) const
     1847    return searchItem(pTreeWidget->invisibleRootItem(), condition, pException);
     1848}
     1849
     1850/* static */
     1851UIMediumItem* UIMediumManager::searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException)
    18631852{
    18641853    /* Make sure argument is valid: */
     
    18821871}
    18831872
    1884 UIMediumItem* UIMediumManager::createHardDiskItem(QTreeWidget *pTree, const UIMedium &medium) const
     1873UIMediumItem* UIMediumManager::createHardDiskItem(const UIMedium &medium)
    18851874{
    18861875    /* Make sure passed medium is valid: */
     
    18881877
    18891878    /* Search for existing medium-item: */
    1890     UIMediumItem *pMediumItem = searchItem(pTree, CheckIfSuitableByID(medium.id()));
     1879    UIMediumItem *pMediumItem = searchItem(mTwHD, CheckIfSuitableByID(medium.id()));
    18911880
    18921881    /* If medium-item do not exists: */
     
    18971886        {
    18981887            /* Try to find parent medium-item: */
    1899             UIMediumItem *pParentMediumItem = searchItem(pTree, CheckIfSuitableByID(medium.parentID()));
     1888            UIMediumItem *pParentMediumItem = searchItem(mTwHD, CheckIfSuitableByID(medium.parentID()));
    19001889            /* If parent medium-item was not found: */
    19011890            if (!pParentMediumItem)
     
    19071896                /* Try to create parent medium-item: */
    19081897                else
    1909                     pParentMediumItem = createHardDiskItem(pTree, parentMedium);
     1898                    pParentMediumItem = createHardDiskItem(parentMedium);
    19101899            }
    19111900            /* If parent medium-item was found: */
     
    19191908        if (!pMediumItem)
    19201909        {
    1921             pMediumItem = new UIMediumItemHD(medium, pTree);
     1910            pMediumItem = new UIMediumItemHD(medium, mTwHD);
    19221911            LogRel2(("UIMediumManager: Root hard-drive medium-item with ID={%s} created.\n", medium.id().toAscii().constData()));
    19231912        }
     
    19281917}
    19291918
     1919/* static */
    19301920bool UIMediumManager::checkMediumFor(UIMediumItem *pItem, Action action)
    19311921{
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h

    r50719 r50767  
    11/** @file
    2  *
    3  * VBox frontends: Qt4 GUI ("VirtualBox"):
    4  * UIMediumManager class declaration
     2 * VBox Qt GUI - UIMediumManager class declaration.
    53 */
    64
    75/*
    8  * Copyright (C) 2006-2013 Oracle Corporation
     6 * Copyright (C) 2006-2014 Oracle Corporation
    97 *
    108 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1715 */
    1816
    19 #ifndef __UIMediumManager_h__
    20 #define __UIMediumManager_h__
     17#ifndef ___UIMediumManager_h___
     18#define ___UIMediumManager_h___
    2119
    2220/* GUI includes: */
     
    2624#include "UIMediumDefs.h"
    2725
    28 /* COM includes: */
    29 #include "COMEnums.h"
    30 #include "CMachine.h"
    31 #include "CVirtualBox.h"
    32 
    3326/* Forward declarations: */
     27class UIMedium;
     28class UIMediumItem;
    3429class UIToolBar;
    35 class UIMediumItem;
    3630class UIEnumerationProgressBar;
    37 class UIMedium;
    3831
    3932/** Functor interface allowing to check if passed UIMediumItem is suitable. */
     
    4134{
    4235public:
    43     /** Determines whether passed UIMediumItem is suitable. */
     36    /** Determines whether passed @a pItem is suitable. */
    4437    virtual bool isItSuitable(UIMediumItem *pItem) const = 0;
    4538};
     
    5649    enum Action { Action_Add, Action_Edit, Action_Copy, Action_Modify, Action_Remove, Action_Release };
    5750
    58     /** Constructor for Medium Manager dialog. */
     51    /** Constructor for UIMediumManager dialog. */
    5952    UIMediumManager(QWidget *pCenterWidget, bool fRefresh = true);
    60     /** Destructor for Medium Manager dialog. */
     53    /** Destructor for UIMediumManager dialog. */
    6154    ~UIMediumManager();
    6255
    6356public:
    6457
    65     /** Returns Medium Manager singleton instance. */
     58    /** Returns UIMediumManager singleton instance. */
    6659    static UIMediumManager* instance();
    67     /** Shows Medium Manager singleton instance, creates new if necessary. */
     60    /** Shows UIMediumManager singleton instance, creates new if necessary. */
    6861    static void showModeless(QWidget *pCenterWidget, bool fRefresh = true);
    6962
    7063private slots:
    7164
    72     /** Fully refreshes medium manager contents. */
     65    /** Handles UIMediumManager::m_pActionRefresh action triggering. */
    7366    void sltRefreshAll();
    7467
     
    8578    void sltHandleMediumEnumerationFinish();
    8679
    87     /** Calls for clone VD wizard to copy chosen medium. */
     80    /** Handles UIMediumManager::m_pActionCopy action triggering. */
    8881    void sltCopyMedium();
    89     /** Calls for medium-type change dialog for chosen medium. */
     82    /** Handles UIMediumManager::m_pActionModify action triggering. */
    9083    void sltModifyMedium();
    91     /** Calls for remove medium dialog for chosen medium. */
     84    /** Handles UIMediumManager::m_pActionRemove action triggering. */
    9285    void sltRemoveMedium();
    93     /** Calls for medium release dialog for chosen medium. */
     86    /** Handles UIMediumManager::m_pActionRelease action triggering. */
    9487    void sltReleaseMedium();
    9588
    96     /* Handlers: Navigation stuff: */
     89    /** Handles tab change case. */
    9790    void sltHandleCurrentTabChanged();
     91    /** Handles item change case. */
    9892    void sltHandleCurrentItemChanged();
     93    /** Handles item double-click case. */
    9994    void sltHandleDoubleClick();
     95    /** Handles item context-menu-call case. */
    10096    void sltHandleContextMenuCall(const QPoint &position);
    10197
    102     /* Handlers: Geometry stuff:  */
    103     void sltMakeRequestForTableAdjustment();
     98    /** Adjusts tree-widgets according content. */
    10499    void sltPerformTablesAdjustment();
    105100
    106101private:
    107102
    108     /* Helpers: Prepare stuff: */
     103    /** General prepare wrapper. */
    109104    void prepare();
     105    /** Prepare dialog. */
    110106    void prepareThis();
     107    /** Prepare actions. */
    111108    void prepareActions();
     109    /** Prepare menu-bar. */
    112110    void prepareMenuBar();
     111    /** Prepare tool-bar. */
    113112    void prepareToolBar();
     113    /** Prepare context-menu. */
    114114    void prepareContextMenu();
     115    /** Prepare tab-widget. */
    115116    void prepareTabWidget();
     117    /** Prepare tree-widgets. */
    116118    void prepareTreeWidgets();
     119    /** Prepare hard-drive tree-widget. */
    117120    void prepareTreeWidgetHD();
     121    /** Prepare optical-disk tree-widget. */
    118122    void prepareTreeWidgetCD();
     123    /** Prepare floppy-disk tree-widget. */
    119124    void prepareTreeWidgetFD();
     125    /** Prepare information-panes. */
    120126    void prepareInformationPanes();
     127    /** Prepare button-box. */
    121128    void prepareButtonBox();
     129    /** Prepare progress-bar. */
    122130    void prepareProgressBar();
    123131#ifdef Q_WS_MAC
     132    /** Mac OS X: Prepare <i>Window</i> menu. */
    124133    void prepareMacWindowMenu();
    125134#endif /* Q_WS_MAC */
     
    128137    void repopulateTreeWidgets();
    129138
    130     /** Updates details according latest changes in current medium-item of predefined @a type. */
     139    /** Updates details according latest changes in current item of passed @a type. */
    131140    void refetchCurrentMediumItem(UIMediumType type);
    132     /** Updates details according latest changes in current medium-item of chosen type. */
     141    /** Updates details according latest changes in current item of chosen type. */
    133142    void refetchCurrentChosenMediumItem();
    134     /** Updates details according latest changes in all current medium-items. */
     143    /** Updates details according latest changes in all current items. */
    135144    void refetchCurrentMediumItems();
    136145
    137     /** Update actions according currently chosen medium-item. */
     146    /** Update actions according currently chosen item. */
    138147    void updateActions();
    139148    /** Update tab icons according last @a action happened with @a pItem. */
     
    148157    void updateInformationPanesFD();
    149158
    150     /* Helpers: Cleanup stuff: */
    151159#ifdef Q_WS_MAC
     160    /** Mac OS X: Cleanup <i>Window</i> menu. */
    152161    void cleanupMacWindowMenu();
    153162#endif /* Q_WS_MAC */
     163    /** General cleanup wrapper. */
    154164    void cleanup();
    155165
    156     /* Handler: Translation stuff: */
     166    /** Translates dialog content. */
    157167    void retranslateUi();
    158168
     
    175185    QTreeWidget* currentTreeWidget() const;
    176186
    177     /** Returns medium-item for passed medium @a type. */
     187    /** Returns item for passed medium @a type. */
    178188    UIMediumItem* mediumItem(UIMediumType type) const;
    179     /** Returns current medium-item. */
     189    /** Returns current item. */
    180190    UIMediumItem* currentMediumItem() const;
    181191
    182     /** Defines <i>current-item</i> for passed @a pTreeWidget as @a pItem. */
     192    /** Defines current item for passed @a pTreeWidget as @a pItem. */
    183193    void setCurrentItem(QTreeWidget *pTreeWidget, QTreeWidgetItem *pItem);
    184194
    185     UIMediumItem* searchItem(QTreeWidget *pTree, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0) const;
    186     UIMediumItem* searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0) const;
    187     UIMediumItem* createHardDiskItem(QTreeWidget *pTree, const UIMedium &medium) const;
    188 
    189     /* Helper: Other stuff: */
    190     bool checkMediumFor(UIMediumItem *pItem, Action action);
     195    /** Performs search for the @a pTree child which corresponds to the @a condition but not @a pException. */
     196    static UIMediumItem* searchItem(QTreeWidget *pTree, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0);
     197    /** Performs search for the @a pParentItem child which corresponds to the @a condition but not @a pException. */
     198    static UIMediumItem* searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0);
     199    /** Creates UIMediumItemHD for corresponding @a medium. */
     200    UIMediumItem* createHardDiskItem(const UIMedium &medium);
     201
     202    /** Checks if @a action can be used for @a pItem. */
     203    static bool checkMediumFor(UIMediumItem *pItem, Action action);
    191204
    192205    /** Casts passed QTreeWidgetItem @a pItem to UIMediumItem if possible. */
    193206    static UIMediumItem* toMediumItem(QTreeWidgetItem *pItem);
    194207
    195     /* Static helper: Formatting stuff: */
     208    /** Format information-pane content. */
    196209    static QString formatPaneText(const QString &strText, bool fCompact = true, const QString &strElipsis = "middle");
    197210
    198     /* Static helper: Enumeration stuff: */
     211    /** Determines if passed @a medium attached to hidden machines only. */
    199212    static bool isMediumAttachedToHiddenMachinesOnly(const UIMedium &medium);
    200213
    201     /* Variable: Singleton instance: */
     214    /** UIMediumManager singleton instance. */
    202215    static UIMediumManager *m_spInstance;
    203216
    204     /* Variables: General stuff: */
    205     CVirtualBox m_vbox;
    206     QWidget *m_pCenterWidget;
     217    /** @name General variables.
     218     * @{ */
     219    /** Widget to center UIMediumManager according. */
     220    QWidget *m_pPseudoParentWidget;
     221    /** Holds whether UIMediumManager should be refreshed on invoke. */
    207222    bool m_fRefresh;
     223    /** Holds whether UIMediumManager should preserve current item change. */
    208224    bool m_fPreventChangeCurrentItem;
    209 
    210     /* Variables: Tab-widget stuff: */
     225    /** @} */
     226
     227    /** @name Tab-widget variables.
     228     * @{ */
     229    /** Holds whether hard-drive tab-widget have inaccessible item. */
    211230    bool m_fInaccessibleHD;
     231    /** Holds whether optical-disk tab-widget have inaccessible item. */
    212232    bool m_fInaccessibleCD;
     233    /** Holds whether floppy-disk tab-widget have inaccessible item. */
    213234    bool m_fInaccessibleFD;
     235    /** Holds cached hard-drive tab-widget icon. */
    214236    const QIcon m_iconHD;
     237    /** Holds cached optical-disk tab-widget icon. */
    215238    const QIcon m_iconCD;
     239    /** Holds cached floppy-disk tab-widget icon. */
    216240    const QIcon m_iconFD;
    217     QString m_strSelectedIdHD;
    218     QString m_strSelectedIdCD;
    219     QString m_strSelectedIdFD;
    220 
    221     /* Variables: Menu & Toolbar stuff: */
     241    /** Holds current hard-drive tree-view item ID. */
     242    QString m_strCurrentIdHD;
     243    /** Holds current optical-disk tree-view item ID. */
     244    QString m_strCurrentIdCD;
     245    /** Holds current floppy-disk tree-view item ID. */
     246    QString m_strCurrentIdFD;
     247    /** @} */
     248
     249    /** @name Tool-bar and menu variables.
     250     * @{ */
     251    /** Tool-bar widget. */
    222252    UIToolBar *m_pToolBar;
    223     QMenu     *m_pContextMenu;
    224     QMenu     *m_pMenu;
    225     QAction   *m_pActionCopy;
    226     QAction   *m_pActionModify;
    227     QAction   *m_pActionRemove;
    228     QAction   *m_pActionRelease;
    229     QAction   *m_pActionRefresh;
    230 
    231     /* Variable: Progress-bar stuff: */
     253    /** Context menu object. */
     254    QMenu *m_pContextMenu;
     255    /** Menu-bar menu object. */
     256    QMenu *m_pMenu;
     257    /** Action to <i>copy</i> current item. */
     258    QAction *m_pActionCopy;
     259    /** Action to <i>modify</i> current item. */
     260    QAction *m_pActionModify;
     261    /** Action to <i>remove</i> current item. */
     262    QAction *m_pActionRemove;
     263    /** Action to <i>release</i> current item. */
     264    QAction *m_pActionRelease;
     265    /** Action to <i>refresh</i> current item. */
     266    QAction *m_pActionRefresh;
     267    /** @} */
     268
     269    /** @name Progress-bar variables.
     270     * @{ */
     271    /** Progress-bar widget. */
    232272    UIEnumerationProgressBar *m_pProgressBar;
     273    /** @} */
    233274};
    234275
    235 #endif /* __UIMediumManager_h__ */
     276#endif /* !___UIMediumManager_h___ */
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