Changeset 50767 in vbox for trunk/src/VBox
- Timestamp:
- Mar 13, 2014 2:35:34 PM (11 years ago)
- 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 1 1 /* $Id$ */ 2 2 /** @file 3 * 4 * VBox frontends: Qt4 GUI ("VirtualBox"): 5 * UIMediumManager class implementation 3 * VBox Qt GUI - UIMediumManager class implementation. 6 4 */ 7 5 8 6 /* 9 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 10 8 * 11 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 28 26 #include <QHeaderView> 29 27 #include <QPushButton> 30 #include <QTimer>31 28 32 29 /* GUI includes: */ … … 43 40 /* COM includes: */ 44 41 #include "COMEnums.h" 42 #include "CMachine.h" 45 43 #include "CMediumFormat.h" 46 44 #include "CStorageController.h" … … 650 648 UIMediumManager::UIMediumManager(QWidget *pCenterWidget, bool fRefresh /* = true */) 651 649 : QIWithRetranslateUI2<QIMainDialog>(0, Qt::Dialog) 652 , m_p CenterWidget(pCenterWidget)650 , m_pPseudoParentWidget(pCenterWidget) 653 651 , m_fRefresh(fRefresh) 654 652 , m_fPreventChangeCurrentItem(false) … … 841 839 { 842 840 /* Get current tree-widget: */ 843 QTreeWidget *pTree = currentTreeWidget();841 QTreeWidget *pTreeWidget = currentTreeWidget(); 844 842 845 843 /* If another tree-widget was focused before, 846 844 * move focus to current tree-widget: */ 847 845 if (qobject_cast<QTreeWidget*>(focusWidget())) 848 pTree ->setFocus();846 pTreeWidget->setFocus(); 849 847 850 848 /* Re-fetch currently chosen medium-item: */ … … 854 852 void UIMediumManager::sltHandleCurrentItemChanged() 855 853 { 856 /* Determine tree-widget sender: */854 /* Get sender() tree-widget: */ 857 855 QTreeWidget *pTreeWidget = qobject_cast<QTreeWidget*>(sender()); 858 856 AssertMsgReturnVoid(pTreeWidget, ("This slot should be called by tree-widget only!\n")); … … 871 869 void UIMediumManager::sltHandleContextMenuCall(const QPoint &position) 872 870 { 873 /* Get c orrespondingtree-widget / item: */871 /* Get current tree-widget / item: */ 874 872 QTreeWidget *pTreeWidget = currentTreeWidget(); 875 873 QTreeWidgetItem *pItem = pTreeWidget->itemAt(position); … … 883 881 /* Show item context menu: */ 884 882 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]resize890 * events processed for every column of corresponding table. */891 QTimer::singleShot(0, this, SLOT(sltPerformTablesAdjustment()));892 883 } 893 884 … … 902 893 /* Calculate deduction for every header: */ 903 894 QList<int> deductions; 904 foreach (Q ITreeWidget *pTree, trees)895 foreach (QTreeWidget *pTreeWidget, trees) 905 896 { 906 897 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); 909 900 deductions << iDeduction; 910 901 } … … 913 904 for (int iTreeIndex = 0; iTreeIndex < trees.size(); ++iTreeIndex) 914 905 { 915 Q ITreeWidget *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); 919 910 } 920 911 } … … 952 943 #endif /* Q_WS_MAC */ 953 944 954 /* Center according p assedwidget: */955 centerAccording(m_p CenterWidget);945 /* Center according pseudo-parent widget: */ 946 centerAccording(m_pPseudoParentWidget); 956 947 957 948 /* Initialize information-panes: */ … … 989 980 /* Apply UI decorations: */ 990 981 Ui::UIMediumManager::setupUi(this); 991 992 /* Prepare some global stuff: */993 m_vbox = vboxGlobal().virtualBox();994 Assert(!m_vbox.isNull());995 982 996 983 /* Configure medium-processing connections: */ … … 1174 1161 this, SLOT(sltHandleContextMenuCall(const QPoint&))); 1175 1162 connect(mTwHD, SIGNAL(resized(const QSize&, const QSize&)), 1176 this, SLOT(slt MakeRequestForTableAdjustment()));1163 this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection); 1177 1164 connect(mTwHD->header(), SIGNAL(sectionResized(int, int, int)), 1178 this, SLOT(slt MakeRequestForTableAdjustment()));1165 this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection); 1179 1166 } 1180 1167 } … … 1198 1185 this, SLOT(sltHandleContextMenuCall(const QPoint&))); 1199 1186 connect(mTwCD, SIGNAL(resized(const QSize&, const QSize&)), 1200 this, SLOT(slt MakeRequestForTableAdjustment()));1187 this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection); 1201 1188 connect(mTwCD->header(), SIGNAL(sectionResized(int, int, int)), 1202 this, SLOT(slt MakeRequestForTableAdjustment()));1189 this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection); 1203 1190 } 1204 1191 } … … 1222 1209 this, SLOT(sltHandleContextMenuCall(const QPoint&))); 1223 1210 connect(mTwFD, SIGNAL(resized(const QSize&, const QSize&)), 1224 this, SLOT(slt MakeRequestForTableAdjustment()));1211 this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection); 1225 1212 connect(mTwFD->header(), SIGNAL(sectionResized(int, int, int)), 1226 this, SLOT(slt MakeRequestForTableAdjustment()));1213 this, SLOT(sltPerformTablesAdjustment()), Qt::QueuedConnection); 1227 1214 } 1228 1215 } … … 1274 1261 /* Remember current medium-items: */ 1275 1262 if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_HardDisk)) 1276 m_str SelectedIdHD = pMediumItem->id();1263 m_strCurrentIdHD = pMediumItem->id(); 1277 1264 if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_DVD)) 1278 m_str SelectedIdCD = pMediumItem->id();1265 m_strCurrentIdCD = pMediumItem->id(); 1279 1266 if (UIMediumItem *pMediumItem = mediumItem(UIMediumType_Floppy)) 1280 m_str SelectedIdFD = pMediumItem->id();1267 m_strCurrentIdFD = pMediumItem->id(); 1281 1268 1282 1269 /* Clear tree-widgets: */ … … 1664 1651 case UIMediumType_HardDisk: 1665 1652 { 1666 pMediumItem = createHardDiskItem(m TwHD, medium);1653 pMediumItem = createHardDiskItem(medium); 1667 1654 AssertPtrReturn(pMediumItem, 0); 1668 if (pMediumItem->id() == m_str SelectedIdHD)1655 if (pMediumItem->id() == m_strCurrentIdHD) 1669 1656 { 1670 1657 setCurrentItem(mTwHD, pMediumItem); 1671 m_str SelectedIdHD = QString();1658 m_strCurrentIdHD = QString(); 1672 1659 } 1673 1660 break; … … 1679 1666 LogRel2(("UIMediumManager: Optical medium-item with ID={%s} created.\n", medium.id().toAscii().constData())); 1680 1667 AssertPtrReturn(pMediumItem, 0); 1681 if (pMediumItem->id() == m_str SelectedIdCD)1668 if (pMediumItem->id() == m_strCurrentIdCD) 1682 1669 { 1683 1670 setCurrentItem(mTwCD, pMediumItem); 1684 m_str SelectedIdCD = QString();1671 m_strCurrentIdCD = QString(); 1685 1672 } 1686 1673 break; … … 1692 1679 LogRel2(("UIMediumManager: Floppy medium-item with ID={%s} created.\n", medium.id().toAscii().constData())); 1693 1680 AssertPtrReturn(pMediumItem, 0); 1694 if (pMediumItem->id() == m_str SelectedIdFD)1681 if (pMediumItem->id() == m_strCurrentIdFD) 1695 1682 { 1696 1683 setCurrentItem(mTwFD, pMediumItem); 1697 m_str SelectedIdFD = QString();1684 m_strCurrentIdFD = QString(); 1698 1685 } 1699 1686 break; … … 1850 1837 } 1851 1838 1852 UIMediumItem* UIMediumManager::searchItem(QTreeWidget *pTree, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException) const 1839 /* static */ 1840 UIMediumItem* UIMediumManager::searchItem(QTreeWidget *pTreeWidget, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException) 1853 1841 { 1854 1842 /* Make sure argument is valid: */ 1855 if (!pTree )1843 if (!pTreeWidget) 1856 1844 return 0; 1857 1845 1858 1846 /* 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 */ 1851 UIMediumItem* UIMediumManager::searchItem(QTreeWidgetItem *pParentItem, const CheckIfSuitableBy &condition, CheckIfSuitableBy *pException) 1863 1852 { 1864 1853 /* Make sure argument is valid: */ … … 1882 1871 } 1883 1872 1884 UIMediumItem* UIMediumManager::createHardDiskItem( QTreeWidget *pTree, const UIMedium &medium) const1873 UIMediumItem* UIMediumManager::createHardDiskItem(const UIMedium &medium) 1885 1874 { 1886 1875 /* Make sure passed medium is valid: */ … … 1888 1877 1889 1878 /* Search for existing medium-item: */ 1890 UIMediumItem *pMediumItem = searchItem( pTree, CheckIfSuitableByID(medium.id()));1879 UIMediumItem *pMediumItem = searchItem(mTwHD, CheckIfSuitableByID(medium.id())); 1891 1880 1892 1881 /* If medium-item do not exists: */ … … 1897 1886 { 1898 1887 /* Try to find parent medium-item: */ 1899 UIMediumItem *pParentMediumItem = searchItem( pTree, CheckIfSuitableByID(medium.parentID()));1888 UIMediumItem *pParentMediumItem = searchItem(mTwHD, CheckIfSuitableByID(medium.parentID())); 1900 1889 /* If parent medium-item was not found: */ 1901 1890 if (!pParentMediumItem) … … 1907 1896 /* Try to create parent medium-item: */ 1908 1897 else 1909 pParentMediumItem = createHardDiskItem(p Tree, parentMedium);1898 pParentMediumItem = createHardDiskItem(parentMedium); 1910 1899 } 1911 1900 /* If parent medium-item was found: */ … … 1919 1908 if (!pMediumItem) 1920 1909 { 1921 pMediumItem = new UIMediumItemHD(medium, pTree);1910 pMediumItem = new UIMediumItemHD(medium, mTwHD); 1922 1911 LogRel2(("UIMediumManager: Root hard-drive medium-item with ID={%s} created.\n", medium.id().toAscii().constData())); 1923 1912 } … … 1928 1917 } 1929 1918 1919 /* static */ 1930 1920 bool UIMediumManager::checkMediumFor(UIMediumItem *pItem, Action action) 1931 1921 { -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h
r50719 r50767 1 1 /** @file 2 * 3 * VBox frontends: Qt4 GUI ("VirtualBox"): 4 * UIMediumManager class declaration 2 * VBox Qt GUI - UIMediumManager class declaration. 5 3 */ 6 4 7 5 /* 8 * Copyright (C) 2006-201 3Oracle Corporation6 * Copyright (C) 2006-2014 Oracle Corporation 9 7 * 10 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 17 15 */ 18 16 19 #ifndef __ UIMediumManager_h__20 #define __ UIMediumManager_h__17 #ifndef ___UIMediumManager_h___ 18 #define ___UIMediumManager_h___ 21 19 22 20 /* GUI includes: */ … … 26 24 #include "UIMediumDefs.h" 27 25 28 /* COM includes: */29 #include "COMEnums.h"30 #include "CMachine.h"31 #include "CVirtualBox.h"32 33 26 /* Forward declarations: */ 27 class UIMedium; 28 class UIMediumItem; 34 29 class UIToolBar; 35 class UIMediumItem;36 30 class UIEnumerationProgressBar; 37 class UIMedium;38 31 39 32 /** Functor interface allowing to check if passed UIMediumItem is suitable. */ … … 41 34 { 42 35 public: 43 /** Determines whether passed UIMediumItem is suitable. */36 /** Determines whether passed @a pItem is suitable. */ 44 37 virtual bool isItSuitable(UIMediumItem *pItem) const = 0; 45 38 }; … … 56 49 enum Action { Action_Add, Action_Edit, Action_Copy, Action_Modify, Action_Remove, Action_Release }; 57 50 58 /** Constructor for MediumManager dialog. */51 /** Constructor for UIMediumManager dialog. */ 59 52 UIMediumManager(QWidget *pCenterWidget, bool fRefresh = true); 60 /** Destructor for MediumManager dialog. */53 /** Destructor for UIMediumManager dialog. */ 61 54 ~UIMediumManager(); 62 55 63 56 public: 64 57 65 /** Returns MediumManager singleton instance. */58 /** Returns UIMediumManager singleton instance. */ 66 59 static UIMediumManager* instance(); 67 /** Shows MediumManager singleton instance, creates new if necessary. */60 /** Shows UIMediumManager singleton instance, creates new if necessary. */ 68 61 static void showModeless(QWidget *pCenterWidget, bool fRefresh = true); 69 62 70 63 private slots: 71 64 72 /** Fully refreshes medium manager contents. */65 /** Handles UIMediumManager::m_pActionRefresh action triggering. */ 73 66 void sltRefreshAll(); 74 67 … … 85 78 void sltHandleMediumEnumerationFinish(); 86 79 87 /** Calls for clone VD wizard to copy chosen medium. */80 /** Handles UIMediumManager::m_pActionCopy action triggering. */ 88 81 void sltCopyMedium(); 89 /** Calls for medium-type change dialog for chosen medium. */82 /** Handles UIMediumManager::m_pActionModify action triggering. */ 90 83 void sltModifyMedium(); 91 /** Calls for remove medium dialog for chosen medium. */84 /** Handles UIMediumManager::m_pActionRemove action triggering. */ 92 85 void sltRemoveMedium(); 93 /** Calls for medium release dialog for chosen medium. */86 /** Handles UIMediumManager::m_pActionRelease action triggering. */ 94 87 void sltReleaseMedium(); 95 88 96 /* Handlers: Navigation stuff:*/89 /** Handles tab change case. */ 97 90 void sltHandleCurrentTabChanged(); 91 /** Handles item change case. */ 98 92 void sltHandleCurrentItemChanged(); 93 /** Handles item double-click case. */ 99 94 void sltHandleDoubleClick(); 95 /** Handles item context-menu-call case. */ 100 96 void sltHandleContextMenuCall(const QPoint &position); 101 97 102 /* Handlers: Geometry stuff: */ 103 void sltMakeRequestForTableAdjustment(); 98 /** Adjusts tree-widgets according content. */ 104 99 void sltPerformTablesAdjustment(); 105 100 106 101 private: 107 102 108 /* Helpers: Prepare stuff:*/103 /** General prepare wrapper. */ 109 104 void prepare(); 105 /** Prepare dialog. */ 110 106 void prepareThis(); 107 /** Prepare actions. */ 111 108 void prepareActions(); 109 /** Prepare menu-bar. */ 112 110 void prepareMenuBar(); 111 /** Prepare tool-bar. */ 113 112 void prepareToolBar(); 113 /** Prepare context-menu. */ 114 114 void prepareContextMenu(); 115 /** Prepare tab-widget. */ 115 116 void prepareTabWidget(); 117 /** Prepare tree-widgets. */ 116 118 void prepareTreeWidgets(); 119 /** Prepare hard-drive tree-widget. */ 117 120 void prepareTreeWidgetHD(); 121 /** Prepare optical-disk tree-widget. */ 118 122 void prepareTreeWidgetCD(); 123 /** Prepare floppy-disk tree-widget. */ 119 124 void prepareTreeWidgetFD(); 125 /** Prepare information-panes. */ 120 126 void prepareInformationPanes(); 127 /** Prepare button-box. */ 121 128 void prepareButtonBox(); 129 /** Prepare progress-bar. */ 122 130 void prepareProgressBar(); 123 131 #ifdef Q_WS_MAC 132 /** Mac OS X: Prepare <i>Window</i> menu. */ 124 133 void prepareMacWindowMenu(); 125 134 #endif /* Q_WS_MAC */ … … 128 137 void repopulateTreeWidgets(); 129 138 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. */ 131 140 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. */ 133 142 void refetchCurrentChosenMediumItem(); 134 /** Updates details according latest changes in all current medium-items. */143 /** Updates details according latest changes in all current items. */ 135 144 void refetchCurrentMediumItems(); 136 145 137 /** Update actions according currently chosen medium-item. */146 /** Update actions according currently chosen item. */ 138 147 void updateActions(); 139 148 /** Update tab icons according last @a action happened with @a pItem. */ … … 148 157 void updateInformationPanesFD(); 149 158 150 /* Helpers: Cleanup stuff: */151 159 #ifdef Q_WS_MAC 160 /** Mac OS X: Cleanup <i>Window</i> menu. */ 152 161 void cleanupMacWindowMenu(); 153 162 #endif /* Q_WS_MAC */ 163 /** General cleanup wrapper. */ 154 164 void cleanup(); 155 165 156 /* Handler: Translation stuff:*/166 /** Translates dialog content. */ 157 167 void retranslateUi(); 158 168 … … 175 185 QTreeWidget* currentTreeWidget() const; 176 186 177 /** Returns medium-item for passed medium @a type. */187 /** Returns item for passed medium @a type. */ 178 188 UIMediumItem* mediumItem(UIMediumType type) const; 179 /** Returns current medium-item. */189 /** Returns current item. */ 180 190 UIMediumItem* currentMediumItem() const; 181 191 182 /** Defines <i>current-item</i>for passed @a pTreeWidget as @a pItem. */192 /** Defines current item for passed @a pTreeWidget as @a pItem. */ 183 193 void setCurrentItem(QTreeWidget *pTreeWidget, QTreeWidgetItem *pItem); 184 194 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); 191 204 192 205 /** Casts passed QTreeWidgetItem @a pItem to UIMediumItem if possible. */ 193 206 static UIMediumItem* toMediumItem(QTreeWidgetItem *pItem); 194 207 195 /* Static helper: Formatting stuff:*/208 /** Format information-pane content. */ 196 209 static QString formatPaneText(const QString &strText, bool fCompact = true, const QString &strElipsis = "middle"); 197 210 198 /* Static helper: Enumeration stuff:*/211 /** Determines if passed @a medium attached to hidden machines only. */ 199 212 static bool isMediumAttachedToHiddenMachinesOnly(const UIMedium &medium); 200 213 201 /* Variable: Singleton instance:*/214 /** UIMediumManager singleton instance. */ 202 215 static UIMediumManager *m_spInstance; 203 216 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. */ 207 222 bool m_fRefresh; 223 /** Holds whether UIMediumManager should preserve current item change. */ 208 224 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. */ 211 230 bool m_fInaccessibleHD; 231 /** Holds whether optical-disk tab-widget have inaccessible item. */ 212 232 bool m_fInaccessibleCD; 233 /** Holds whether floppy-disk tab-widget have inaccessible item. */ 213 234 bool m_fInaccessibleFD; 235 /** Holds cached hard-drive tab-widget icon. */ 214 236 const QIcon m_iconHD; 237 /** Holds cached optical-disk tab-widget icon. */ 215 238 const QIcon m_iconCD; 239 /** Holds cached floppy-disk tab-widget icon. */ 216 240 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. */ 222 252 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. */ 232 272 UIEnumerationProgressBar *m_pProgressBar; 273 /** @} */ 233 274 }; 234 275 235 #endif /* __UIMediumManager_h__ */276 #endif /* !___UIMediumManager_h___ */
Note:
See TracChangeset
for help on using the changeset viewer.