VirtualBox

Changeset 66916 in vbox


Ignore:
Timestamp:
May 16, 2017 4:29:12 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Virtual Media Manager: Doxy fixes.

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

Legend:

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

    r64778 r66916  
    55
    66/*
    7  * Copyright (C) 2006-2016 Oracle Corporation
     7 * Copyright (C) 2006-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    655655
    656656/* static */
    657 UIMediumManager* UIMediumManager::m_spInstance = 0;
    658 UIMediumManager* UIMediumManager::instance() { return m_spInstance; }
     657UIMediumManager* UIMediumManager::s_pInstance = 0;
     658UIMediumManager* UIMediumManager::instance() { return s_pInstance; }
    659659
    660660UIMediumManager::UIMediumManager(QWidget *pCenterWidget, bool fRefresh /* = true */)
     
    690690
    691691    /* Cleanup instance: */
    692     m_spInstance = 0;
     692    s_pInstance = 0;
    693693}
    694694
     
    697697{
    698698    /* Create instance if not yet created: */
    699     if (!m_spInstance)
    700         m_spInstance = new UIMediumManager(pCenterWidget, fRefresh);
     699    if (!s_pInstance)
     700        s_pInstance = new UIMediumManager(pCenterWidget, fRefresh);
    701701
    702702    /* Show instance: */
    703     m_spInstance->show();
    704     m_spInstance->setWindowState(m_spInstance->windowState() & ~Qt::WindowMinimized);
    705     m_spInstance->activateWindow();
     703    s_pInstance->show();
     704    s_pInstance->setWindowState(s_pInstance->windowState() & ~Qt::WindowMinimized);
     705    s_pInstance->activateWindow();
    706706}
    707707
     
    11251125        AssertPtrReturnVoid(centralWidget()->layout());
    11261126        {
    1127             /* Prepare tool-bar: */
     1127            /* Prepare toolbar: */
    11281128            prepareToolBar();
    11291129            /* Prepare tab-widget: */
     
    11371137void UIMediumManager::prepareToolBar()
    11381138{
    1139     /* Create tool-bar: */
     1139    /* Create toolbar: */
    11401140    m_pToolBar = new UIToolBar(this);
    11411141    AssertPtrReturnVoid(m_pToolBar);
    11421142    {
    1143         /* Configure tool-bar: */
     1143        /* Configure toolbar: */
    11441144        const QStyle *pStyle = QApplication::style();
    11451145        const int iIconMetric = (int)(pStyle->pixelMetric(QStyle::PM_SmallIconSize) * 1.375);
     
    11471147        m_pToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
    11481148        m_pToolBar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
    1149         /* Add tool-bar actions: */
     1149        /* Add toolbar actions: */
    11501150        if (m_pActionCopy)
    11511151            m_pToolBar->addAction(m_pActionCopy);
     
    11581158        if (m_pActionRefresh)
    11591159            m_pToolBar->addAction(m_pActionRefresh);
    1160         /* Integrate tool-bar into dialog: */
     1160        /* Integrate toolbar into dialog: */
    11611161        QVBoxLayout *pMainLayout = qobject_cast<QVBoxLayout*>(centralWidget()->layout());
    11621162#ifdef VBOX_WS_MAC
    1163         /* Enable unified tool-bars on Mac OS X. Available on Qt >= 4.3: */
     1163        /* Enable unified toolbars on Mac OS X. Available on Qt >= 4.3: */
    11641164        addToolBar(m_pToolBar);
    11651165        m_pToolBar->enableMacToolbar();
     
    11681168        pMainLayout->insertSpacing(0, 10);
    11691169#else /* !VBOX_WS_MAC */
    1170         /* Add the tool-bar: */
     1170        /* Add the toolbar: */
    11711171        pMainLayout->insertWidget(0, m_pToolBar);
    11721172        /* Set spacing/margin like in the selector window: */
     
    17821782    }
    17831783
    1784     /* Translate tool-bar: */
     1784    /* Translate toolbar: */
    17851785#ifdef VBOX_WS_MAC
    17861786    /* There is a bug in Qt Cocoa which result in showing a "more arrow" when
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h

    r64430 r66916  
    55
    66/*
    7  * Copyright (C) 2006-2016 Oracle Corporation
     7 * Copyright (C) 2006-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3939class QIDialogButtonBox;
    4040
     41
    4142/** Functor interface allowing to check if passed UIMediumItem is suitable. */
    4243class CheckIfSuitableBy
    4344{
    4445public:
     46
     47    /** Destructs functor. */
    4548    virtual ~CheckIfSuitableBy() { /* Makes MSC happy. */ }
    4649
     
    4851    virtual bool isItSuitable(UIMediumItem *pItem) const = 0;
    4952};
     53
    5054
    5155/** Medium Manager dialog. */
     
    5458    Q_OBJECT;
    5559
    56     /** Item action enumerator. */
     60    /** Item action types. */
    5761    enum Action { Action_Add, Action_Edit, Action_Copy, Action_Modify, Action_Remove, Action_Release };
    5862
    59     /** Constructor for UIMediumManager dialog. */
     63    /** Constructs Virtual Medium Manager dialog.
     64      * @param  pCenterWidget  Brings the pseudo-parent widget to center according to.
     65      * @param  fRefresh       Brings whether we should restart medium enumeration. */
    6066    UIMediumManager(QWidget *pCenterWidget, bool fRefresh = true);
    61     /** Destructor for UIMediumManager dialog. */
     67    /** Destructs Virtual Medium Manager dialog. */
    6268    ~UIMediumManager();
    6369
    6470public:
    6571
    66     /** Returns UIMediumManager singleton instance. */
    67     static UIMediumManager* instance();
    68     /** Shows UIMediumManager singleton instance, creates new if necessary. */
     72    /** Returns Virtual Medium Manager singleton instance. */
     73    static UIMediumManager *instance();
     74    /** Shows Virtual Medium Manager singleton instance, creates new if necessary. */
    6975    static void showModeless(QWidget *pCenterWidget, bool fRefresh = true);
    7076
    7177private slots:
    7278
    73     /** Handles VBoxGlobal::sigMediumCreated signal. */
    74     void sltHandleMediumCreated(const QString &strMediumID);
    75     /** Handles VBoxGlobal::sigMediumDeleted signal. */
    76     void sltHandleMediumDeleted(const QString &strMediumID);
    77 
    78     /** Handles VBoxGlobal::sigMediumEnumerationStarted signal. */
    79     void sltHandleMediumEnumerationStart();
    80     /** Handles VBoxGlobal::sigMediumEnumerated signal. */
    81     void sltHandleMediumEnumerated(const QString &strMediumID);
    82     /** Handles VBoxGlobal::sigMediumEnumerationFinished signal. */
    83     void sltHandleMediumEnumerationFinish();
    84 
    85     /** Handles UIMediumManager::m_pActionCopy action triggering. */
    86     void sltCopyMedium();
    87     /** Handles UIMediumManager::m_pActionModify action triggering. */
    88     void sltModifyMedium();
    89     /** Handles UIMediumManager::m_pActionRemove action triggering. */
    90     void sltRemoveMedium();
    91     /** Handles UIMediumManager::m_pActionRelease action triggering. */
    92     void sltReleaseMedium();
    93     /** Handles UIMediumManager::m_pActionRefresh action triggering. */
    94     void sltRefreshAll();
    95 
    96     /** Handles tab change case. */
    97     void sltHandleCurrentTabChanged();
    98     /** Handles item change case. */
    99     void sltHandleCurrentItemChanged();
    100     /** Handles item double-click case. */
    101     void sltHandleDoubleClick();
    102     /** Handles item context-menu-call case. */
    103     void sltHandleContextMenuCall(const QPoint &position);
    104 
    105     /** Adjusts tree-widgets according content. */
    106     void sltPerformTablesAdjustment();
     79    /** @name Medium operation stuff.
     80      * @{ */
     81        /** Handles VBoxGlobal::sigMediumCreated signal. */
     82        void sltHandleMediumCreated(const QString &strMediumID);
     83        /** Handles VBoxGlobal::sigMediumDeleted signal. */
     84        void sltHandleMediumDeleted(const QString &strMediumID);
     85    /** @} */
     86
     87    /** @name Medium enumeration stuff.
     88      * @{ */
     89        /** Handles VBoxGlobal::sigMediumEnumerationStarted signal. */
     90        void sltHandleMediumEnumerationStart();
     91        /** Handles VBoxGlobal::sigMediumEnumerated signal. */
     92        void sltHandleMediumEnumerated(const QString &strMediumID);
     93        /** Handles VBoxGlobal::sigMediumEnumerationFinished signal. */
     94        void sltHandleMediumEnumerationFinish();
     95    /** @} */
     96
     97    /** @name Menu/action stuff.
     98      * @{ */
     99        /** Handles command to copy medium. */
     100        void sltCopyMedium();
     101        /** Handles command to modify medium. */
     102        void sltModifyMedium();
     103        /** Handles command to remove medium. */
     104        void sltRemoveMedium();
     105        /** Handles command to release medium. */
     106        void sltReleaseMedium();
     107        /** Handles command to refresh medium. */
     108        void sltRefreshAll();
     109    /** @} */
     110
     111    /** @name Tab-widget stuff.
     112      * @{ */
     113        /** Handles tab change case. */
     114        void sltHandleCurrentTabChanged();
     115        /** Handles item change case. */
     116        void sltHandleCurrentItemChanged();
     117        /** Handles item double-click case. */
     118        void sltHandleDoubleClick();
     119        /** Handles item context-menu-call case. */
     120        void sltHandleContextMenuCall(const QPoint &position);
     121    /** @} */
     122
     123    /** @name Tree-widget stuff.
     124      * @{ */
     125        /** Adjusts tree-widgets according content. */
     126        void sltPerformTablesAdjustment();
     127    /** @} */
    107128
    108129private:
    109130
    110     /** General prepare wrapper. */
    111     void prepare();
    112     /** Prepare dialog. */
    113     void prepareThis();
    114     /** Prepare connections. */
    115     void prepareConnections();
    116     /** Prepare actions. */
    117     void prepareActions();
    118     /** Prepare menu-bar. */
    119     void prepareMenuBar();
    120     /** Prepare context-menu. */
    121     void prepareContextMenu();
    122     /** Prepare central-widget. */
    123     void prepareCentralWidget();
    124     /** Prepare tool-bar. */
    125     void prepareToolBar();
    126     /** Prepare tab-widget. */
    127     void prepareTabWidget();
    128     /** Prepare tab-widget's tab. */
    129     void prepareTab(UIMediumType type);
    130     /** Prepare tab-widget's tree-widget. */
    131     void prepareTreeWidget(UIMediumType type, int iColumns);
    132     /** Prepare tab-widget's information-container. */
    133     void prepareInformationContainer(UIMediumType type, int iFields);
    134     /** Prepare button-box. */
    135     void prepareButtonBox();
    136     /** Prepare progress-bar. */
    137     void prepareProgressBar();
    138 
    139     /** Repopulates tree-widgets content. */
    140     void repopulateTreeWidgets();
    141 
    142     /** Updates details according latest changes in current item of passed @a type. */
    143     void refetchCurrentMediumItem(UIMediumType type);
    144     /** Updates details according latest changes in current item of chosen type. */
    145     void refetchCurrentChosenMediumItem();
    146     /** Updates details according latest changes in all current items. */
    147     void refetchCurrentMediumItems();
    148 
    149     /** Update actions according currently chosen item. */
    150     void updateActions();
    151     /** Update action icons according currently chosen tab. */
    152     void updateActionIcons();
    153     /** Update tab icons according last @a action happened with @a pItem. */
    154     void updateTabIcons(UIMediumItem *pItem, Action action);
    155     /** Update information fields of passed medium @a type. */
    156     void updateInformationFields(UIMediumType type = UIMediumType_Invalid);
    157     /** Update information fields for hard-drive tab. */
    158     void updateInformationFieldsHD();
    159     /** Update information fields for optical-disk tab. */
    160     void updateInformationFieldsCD();
    161     /** Update information fields for floppy-disk tab. */
    162     void updateInformationFieldsFD();
    163 
    164     /** Cleanup menu-bar. */
    165     void cleanupMenuBar();
    166     /** General cleanup wrapper. */
    167     void cleanup();
    168 
    169     /** Translates dialog content. */
    170     void retranslateUi();
    171 
    172     /** Creates UIMediumItem for corresponding @a medium. */
    173     UIMediumItem* createMediumItem(const UIMedium &medium);
    174     /** Creates UIMediumItemHD for corresponding @a medium. */
    175     UIMediumItem* createHardDiskItem(const UIMedium &medium);
    176     /** Updates UIMediumItem for corresponding @a medium. */
    177     void updateMediumItem(const UIMedium &medium);
    178     /** Deletes UIMediumItem for corresponding @a strMediumID. */
    179     void deleteMediumItem(const QString &strMediumID);
    180 
    181     /** Returns tab for passed medium @a type. */
    182     QWidget* tab(UIMediumType type) const;
    183     /** Returns tree-widget for passed medium @a type. */
    184     QITreeWidget* treeWidget(UIMediumType type) const;
    185     /** Returns item for passed medium @a type. */
    186     UIMediumItem* mediumItem(UIMediumType type) const;
    187     /** Returns information-container for passed medium @a type. */
    188     QFrame* infoContainer(UIMediumType type) const;
    189     /** Returns information-label for passed medium @a type and @a iLabelIndex. */
    190     QLabel* infoLabel(UIMediumType type, int iLabelIndex) const;
    191     /** Returns information-field for passed medium @a type and @a iFieldIndex. */
    192     QILabel* infoField(UIMediumType type, int iFieldIndex) const;
    193 
    194     /** Returns medium type for passed @a pTreeWidget. */
    195     UIMediumType mediumType(QITreeWidget *pTreeWidget) const;
    196 
    197     /** Returns current medium type. */
    198     UIMediumType currentMediumType() const;
    199     /** Returns current tree-widget. */
    200     QITreeWidget* currentTreeWidget() const;
    201     /** Returns current item. */
    202     UIMediumItem* currentMediumItem() const;
    203 
    204     /** Defines current item for passed @a pTreeWidget as @a pItem. */
    205     void setCurrentItem(QITreeWidget *pTreeWidget, QTreeWidgetItem *pItem);
    206 
    207     /** Returns tab index for passed UIMediumType. */
    208     static int tabIndex(UIMediumType type);
    209     /** Returns UIMediumType for passed tab index. */
    210     static UIMediumType mediumType(int iIndex);
    211 
    212     /** Performs search for the @a pTree child which corresponds to the @a condition but not @a pException. */
    213     static UIMediumItem* searchItem(QITreeWidget *pTree, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0);
    214     /** Performs search for the @a pParentItem child which corresponds to the @a condition but not @a pException. */
    215     static UIMediumItem* searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0);
    216 
    217     /** Checks if @a action can be used for @a pItem. */
    218     static bool checkMediumFor(UIMediumItem *pItem, Action action);
    219 
    220     /** Casts passed QTreeWidgetItem @a pItem to UIMediumItem if possible. */
    221     static UIMediumItem* toMediumItem(QTreeWidgetItem *pItem);
    222 
    223     /** Format information-field content. */
    224     static QString formatFieldText(const QString &strText, bool fCompact = true, const QString &strElipsis = "middle");
    225 
    226     /** UIMediumManager singleton instance. */
    227     static UIMediumManager *m_spInstance;
     131    /** @name Prepare/cleanup cascade.
     132      * @{ */
     133        /** Prepares all. */
     134        void prepare();
     135        /** Prepares this. */
     136        void prepareThis();
     137        /** Prepares connections. */
     138        void prepareConnections();
     139        /** Prepares actions. */
     140        void prepareActions();
     141        /** Prepares menu-bar. */
     142        void prepareMenuBar();
     143        /** Prepares context-menu. */
     144        void prepareContextMenu();
     145        /** Prepares central-widget. */
     146        void prepareCentralWidget();
     147        /** Prepares toolbar. */
     148        void prepareToolBar();
     149        /** Prepares tab-widget. */
     150        void prepareTabWidget();
     151        /** Prepares tab-widget's tab. */
     152        void prepareTab(UIMediumType type);
     153        /** Prepares tab-widget's tree-widget. */
     154        void prepareTreeWidget(UIMediumType type, int iColumns);
     155        /** Prepares tab-widget's information-container. */
     156        void prepareInformationContainer(UIMediumType type, int iFields);
     157        /** Prepares button-box. */
     158        void prepareButtonBox();
     159        /** Prepares progress-bar. */
     160        void prepareProgressBar();
     161
     162        /** Repopulates tree-widgets content. */
     163        void repopulateTreeWidgets();
     164
     165        /** Updates details according latest changes in current item of passed @a type. */
     166        void refetchCurrentMediumItem(UIMediumType type);
     167        /** Updates details according latest changes in current item of chosen type. */
     168        void refetchCurrentChosenMediumItem();
     169        /** Updates details according latest changes in all current items. */
     170        void refetchCurrentMediumItems();
     171
     172        /** Updates actions according currently chosen item. */
     173        void updateActions();
     174        /** Updates action icons according currently chosen tab. */
     175        void updateActionIcons();
     176        /** Updates tab icons according last @a action happened with @a pItem. */
     177        void updateTabIcons(UIMediumItem *pItem, Action action);
     178        /** Updates information fields of passed medium @a type. */
     179        void updateInformationFields(UIMediumType type = UIMediumType_Invalid);
     180        /** Updates information fields for hard-drive tab. */
     181        void updateInformationFieldsHD();
     182        /** Updates information fields for optical-disk tab. */
     183        void updateInformationFieldsCD();
     184        /** Updates information fields for floppy-disk tab. */
     185        void updateInformationFieldsFD();
     186
     187        /** Cleanups menu-bar. */
     188        void cleanupMenuBar();
     189        /** Cleanups all. */
     190        void cleanup();
     191    /** @} */
     192
     193    /** @name Event-handling stuff.
     194      * @{ */
     195        /** Handles translation event. */
     196        void retranslateUi();
     197    /** @} */
     198
     199    /** @name Widget operation stuff.
     200      * @{ */
     201        /** Creates UIMediumItem for corresponding @a medium. */
     202        UIMediumItem *createMediumItem(const UIMedium &medium);
     203        /** Creates UIMediumItemHD for corresponding @a medium. */
     204        UIMediumItem *createHardDiskItem(const UIMedium &medium);
     205        /** Updates UIMediumItem for corresponding @a medium. */
     206        void updateMediumItem(const UIMedium &medium);
     207        /** Deletes UIMediumItem for corresponding @a strMediumID. */
     208        void deleteMediumItem(const QString &strMediumID);
     209
     210        /** Returns tab for passed medium @a type. */
     211        QWidget *tab(UIMediumType type) const;
     212        /** Returns tree-widget for passed medium @a type. */
     213        QITreeWidget *treeWidget(UIMediumType type) const;
     214        /** Returns item for passed medium @a type. */
     215        UIMediumItem *mediumItem(UIMediumType type) const;
     216        /** Returns information-container for passed medium @a type. */
     217        QFrame *infoContainer(UIMediumType type) const;
     218        /** Returns information-label for passed medium @a type and @a iLabelIndex. */
     219        QLabel *infoLabel(UIMediumType type, int iLabelIndex) const;
     220        /** Returns information-field for passed medium @a type and @a iFieldIndex. */
     221        QILabel *infoField(UIMediumType type, int iFieldIndex) const;
     222
     223        /** Returns medium type for passed @a pTreeWidget. */
     224        UIMediumType mediumType(QITreeWidget *pTreeWidget) const;
     225
     226        /** Returns current medium type. */
     227        UIMediumType currentMediumType() const;
     228        /** Returns current tree-widget. */
     229        QITreeWidget *currentTreeWidget() const;
     230        /** Returns current item. */
     231        UIMediumItem *currentMediumItem() const;
     232
     233        /** Defines current item for passed @a pTreeWidget as @a pItem. */
     234        void setCurrentItem(QITreeWidget *pTreeWidget, QTreeWidgetItem *pItem);
     235    /** @} */
     236
     237    /** @name Helper stuff.
     238      * @{ */
     239        /** Returns tab index for passed UIMediumType. */
     240        static int tabIndex(UIMediumType type);
     241        /** Returns UIMediumType for passed tab index. */
     242        static UIMediumType mediumType(int iIndex);
     243
     244        /** Performs search for the @a pTree child which corresponds to the @a condition but not @a pException. */
     245        static UIMediumItem *searchItem(QITreeWidget *pTree, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0);
     246        /** Performs search for the @a pParentItem child which corresponds to the @a condition but not @a pException. */
     247        static UIMediumItem *searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException = 0);
     248
     249        /** Checks if @a action can be used for @a pItem. */
     250        static bool checkMediumFor(UIMediumItem *pItem, Action action);
     251
     252        /** Casts passed QTreeWidgetItem @a pItem to UIMediumItem if possible. */
     253        static UIMediumItem *toMediumItem(QTreeWidgetItem *pItem);
     254
     255        /** Formats information-field content. */
     256        static QString formatFieldText(const QString &strText, bool fCompact = true, const QString &strElipsis = "middle");
     257    /** @} */
    228258
    229259    /** @name General variables.
    230      * @{ */
    231     /** Widget to center UIMediumManager according. */
    232     QWidget *m_pPseudoParentWidget;
    233     /** Holds whether UIMediumManager should be refreshed on invoke. */
    234     bool m_fRefresh;
    235     /** Holds whether UIMediumManager should preserve current item change. */
    236     bool m_fPreventChangeCurrentItem;
     260      * @{ */
     261        /** Holds the Virtual Medium Manager singleton instance. */
     262        static UIMediumManager *s_pInstance;
     263
     264        /** Holds the widget reference to center Virtual Medium Manager according. */
     265        QWidget *m_pPseudoParentWidget;
     266        /** Holds whether Virtual Medium Manager should be refreshed on invoke. */
     267        bool     m_fRefresh;
     268        /** Holds whether Virtual Medium Manager should preserve current item change. */
     269        bool     m_fPreventChangeCurrentItem;
    237270    /** @} */
    238271
    239272    /** @name Tab-widget variables.
    240      * @{ */
    241     /** Tab-widget itself. */
    242     QTabWidget *m_pTabWidget;
    243     /** Tab-widget tab-count. */
    244     const int m_iTabCount;
    245     /** Tree-widgets. */
    246     QMap<int, QITreeWidget*> m_trees;
    247     /** Information-containers. */
    248     QMap<int, QFrame*> m_containers;
    249     /** Information-container labels. */
    250     QMap<int, QList<QLabel*> > m_labels;
    251     /** Information-container fields. */
    252     QMap<int, QList<QILabel*> > m_fields;
    253     /** Holds whether hard-drive tab-widget have inaccessible item. */
    254     bool m_fInaccessibleHD;
    255     /** Holds whether optical-disk tab-widget have inaccessible item. */
    256     bool m_fInaccessibleCD;
    257     /** Holds whether floppy-disk tab-widget have inaccessible item. */
    258     bool m_fInaccessibleFD;
    259     /** Holds cached hard-drive tab-widget icon. */
    260     const QIcon m_iconHD;
    261     /** Holds cached optical-disk tab-widget icon. */
    262     const QIcon m_iconCD;
    263     /** Holds cached floppy-disk tab-widget icon. */
    264     const QIcon m_iconFD;
    265     /** Holds current hard-drive tree-view item ID. */
    266     QString m_strCurrentIdHD;
    267     /** Holds current optical-disk tree-view item ID. */
    268     QString m_strCurrentIdCD;
    269     /** Holds current floppy-disk tree-view item ID. */
    270     QString m_strCurrentIdFD;
    271     /** @} */
    272 
    273     /** @name Tool-bar and menu variables.
    274      * @{ */
    275     /** Tool-bar widget. */
    276     UIToolBar *m_pToolBar;
    277     /** Context menu object. */
    278     QMenu *m_pContextMenu;
    279     /** Menu-bar menu object. */
    280     QMenu *m_pMenu;
    281     /** Action to <i>copy</i> current item. */
    282     QAction *m_pActionCopy;
    283     /** Action to <i>modify</i> current item. */
    284     QAction *m_pActionModify;
    285     /** Action to <i>remove</i> current item. */
    286     QAction *m_pActionRemove;
    287     /** Action to <i>release</i> current item. */
    288     QAction *m_pActionRelease;
    289     /** Action to <i>refresh</i> current item. */
    290     QAction *m_pActionRefresh;
     273      * @{ */
     274        /** Holds the tab-widget instance. */
     275        QTabWidget                  *m_pTabWidget;
     276        /** Holds the tab-widget tab-count. */
     277        const int                    m_iTabCount;
     278        /** Holds the map of tree-widget instances. */
     279        QMap<int, QITreeWidget*>    m_trees;
     280        /** Holds the map of information-container instances. */
     281        QMap<int, QFrame*>          m_containers;
     282        /** Holds the map of information-container label instances. */
     283        QMap<int, QList<QLabel*> >  m_labels;
     284        /** Holds the information-container field instances. */
     285        QMap<int, QList<QILabel*> > m_fields;
     286        /** Holds whether hard-drive tab-widget have inaccessible item. */
     287        bool                        m_fInaccessibleHD;
     288        /** Holds whether optical-disk tab-widget have inaccessible item. */
     289        bool                        m_fInaccessibleCD;
     290        /** Holds whether floppy-disk tab-widget have inaccessible item. */
     291        bool                        m_fInaccessibleFD;
     292        /** Holds cached hard-drive tab-widget icon. */
     293        const QIcon                  m_iconHD;
     294        /** Holds cached optical-disk tab-widget icon. */
     295        const QIcon                  m_iconCD;
     296        /** Holds cached floppy-disk tab-widget icon. */
     297        const QIcon                  m_iconFD;
     298        /** Holds current hard-drive tree-view item ID. */
     299        QString                      m_strCurrentIdHD;
     300        /** Holds current optical-disk tree-view item ID. */
     301        QString                      m_strCurrentIdCD;
     302        /** Holds current floppy-disk tree-view item ID. */
     303        QString                      m_strCurrentIdFD;
     304    /** @} */
     305
     306    /** @name Toolbar and menu variables.
     307      * @{ */
     308        /** Holds the toolbar widget instance. */
     309        UIToolBar *m_pToolBar;
     310        /** Holds the context-menu object instance. */
     311        QMenu    *m_pContextMenu;
     312        /** Holds the menu object instance. */
     313        QMenu    *m_pMenu;
     314        /** Holds the Copy action instance. */
     315        QAction  *m_pActionCopy;
     316        /** Holds the Modify action instance. */
     317        QAction  *m_pActionModify;
     318        /** Holds the Remove action instance. */
     319        QAction  *m_pActionRemove;
     320        /** Holds the Release action instance. */
     321        QAction  *m_pActionRelease;
     322        /** Holds the Refresh action instance. */
     323        QAction  *m_pActionRefresh;
    291324    /** @} */
    292325
    293326    /** @name Button-box variables.
    294      * @{ */
    295     /** Dialog button-box. */
    296     QIDialogButtonBox *m_pButtonBox;
    297     /** Progress-bar widget. */
    298     UIEnumerationProgressBar *m_pProgressBar;
     327      * @{ */
     328        /** Holds the dialog button-box instance. */
     329        QIDialogButtonBox        *m_pButtonBox;
     330        /** Holds the progress-bar widget instance. */
     331        UIEnumerationProgressBar *m_pProgressBar;
    299332    /** @} */
    300333};
    301334
    302335#endif /* !___UIMediumManager_h___ */
     336
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