Changeset 82960 in vbox
- Timestamp:
- Feb 3, 2020 3:50:24 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 7 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r82944 r82960 612 612 src/manager/UIVirtualBoxManagerWidget.h \ 613 613 src/manager/UIVirtualMachineItem.h \ 614 src/manager/UIVirtualMachineItemCloud.h \ 614 615 src/manager/UIVirtualMachineItemLocal.h \ 615 616 src/manager/UIWelcomePane.h \ … … 1055 1056 src/manager/UIVirtualBoxManagerWidget.cpp \ 1056 1057 src/manager/UIVirtualMachineItem.cpp \ 1058 src/manager/UIVirtualMachineItemCloud.cpp \ 1057 1059 src/manager/UIVirtualMachineItemLocal.cpp \ 1058 1060 src/manager/UIWelcomePane.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp
r82438 r82960 366 366 m_guestOSTypeIconNames.insert("JRockitVE", ":/os_jrockitve.png"); 367 367 m_guestOSTypeIconNames.insert("VBoxBS_64", ":/os_other_64.png"); 368 m_guestOSTypeIconNames.insert("Cloud", ":/os_cloud.png"); 368 369 } 369 370 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItem.cpp
r82944 r82960 17 17 18 18 /* GUI includes: */ 19 #include "UIVirtualMachineItemCloud.h" 19 20 #include "UIVirtualMachineItemLocal.h" 20 21 … … 41 42 return itemType() == ItemType_Local 42 43 ? static_cast<UIVirtualMachineItemLocal*>(this) 44 : 0; 45 } 46 47 UIVirtualMachineItemCloud *UIVirtualMachineItem::toCloud() 48 { 49 return itemType() == ItemType_CloudFake 50 ? static_cast<UIVirtualMachineItemCloud*>(this) 43 51 : 0; 44 52 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItem.h
r82944 r82960 36 36 37 37 /* Forward declarations: */ 38 class UIVirtualMachineItemCloud; 38 39 class UIVirtualMachineItemLocal; 39 40 … … 49 50 50 51 /** Item types. */ 51 enum ItemType { ItemType_Local };52 enum ItemType { ItemType_Local, ItemType_CloudFake }; 52 53 53 54 /** Constructs VM item on the basis of taken @a enmType. */ … … 62 63 /** Returns item casted to local type. */ 63 64 UIVirtualMachineItemLocal *toLocal(); 65 /** Returns item casted to cloud type. */ 66 UIVirtualMachineItemCloud *toCloud(); 64 67 /** @} */ 65 68 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp
r82944 r82960 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIVirtualMachineItem class implementation.3 * VBox Qt GUI - UIVirtualMachineItemCloud class implementation. 4 4 */ 5 5 … … 16 16 */ 17 17 18 /* Qt includes: */19 #include <QFileInfo>20 #include <QIcon>21 22 18 /* GUI includes: */ 23 #include "UIVirtualMachineItemLocal.h"24 19 #include "UICommon.h" 25 20 #include "UIConverter.h" 26 #include "UIExtraDataManager.h" 27 #ifdef VBOX_WS_MAC 28 # include <ApplicationServices/ApplicationServices.h> 29 #endif /* VBOX_WS_MAC */ 30 31 /* COM includes: */ 32 #include "CSnapshot.h" 21 #include "UIIconPool.h" 22 #include "UIVirtualMachineItemCloud.h" 33 23 34 24 35 /********************************************************************************************************************************* 36 * Class UIVirtualMachineItemLocal implementation. * 37 *********************************************************************************************************************************/ 38 39 UIVirtualMachineItemLocal::UIVirtualMachineItemLocal(const CMachine &comMachine) 40 : UIVirtualMachineItem(ItemType_Local) 41 , m_comMachine(comMachine) 42 , m_cSnaphot(0) 43 , m_enmSessionState(KSessionState_Null) 25 UIVirtualMachineItemCloud::UIVirtualMachineItemCloud() 26 : UIVirtualMachineItem(ItemType_CloudFake) 27 , m_enmFakeCloudItemState(FakeCloudItemState_Loading) 44 28 { 45 29 recache(); 46 30 } 47 31 48 UIVirtualMachineItem Local::~UIVirtualMachineItemLocal()32 UIVirtualMachineItemCloud::~UIVirtualMachineItemCloud() 49 33 { 50 34 } 51 35 52 void UIVirtualMachineItem Local::recache()36 void UIVirtualMachineItemCloud::recache() 53 37 { 54 38 /* Determine attributes which are always available: */ 55 m_strId = m_comMachine.GetId().toString(); 56 m_strSettingsFile = m_comMachine.GetSettingsFilePath(); 39 /// @todo is there something? 57 40 58 41 /* Now determine whether VM is accessible: */ 59 m_fAccessible = m_comMachine.GetAccessible();42 m_fAccessible = true; 60 43 if (m_fAccessible) 61 44 { … … 64 47 65 48 /* Determine own VM attributes: */ 66 m_strName = m_comMachine.GetName(); 67 m_strOSTypeId = m_comMachine.GetOSTypeId(); 68 m_groups = m_comMachine.GetGroups().toList(); 69 70 /* Determine snapshot attributes: */ 71 CSnapshot comSnapshot = m_comMachine.GetCurrentSnapshot(); 72 m_strSnapshotName = comSnapshot.isNull() ? QString() : comSnapshot.GetName(); 73 m_lastStateChange.setTime_t(m_comMachine.GetLastStateChange() / 1000); 74 m_cSnaphot = m_comMachine.GetSnapshotCount(); 49 m_strOSTypeId = "Other"; 75 50 76 51 /* Determine VM states: */ 77 m_enmMachineState = m_comMachine.GetState();52 m_enmMachineState = KMachineState_PoweredOff; 78 53 m_strMachineStateName = gpConverter->toString(m_enmMachineState); 79 m_machineStateIcon = gpConverter->toIcon(m_enmMachineState); 80 m_enmSessionState = m_comMachine.GetSessionState(); 81 m_strSessionStateName = gpConverter->toString(m_enmSessionState); 54 if ( itemType() == ItemType_CloudFake 55 && fakeCloudItemState() == FakeCloudItemState_Loading) 56 m_machineStateIcon = UIIconPool::iconSet(":/state_loading_16px.png"); 57 else 58 m_machineStateIcon = gpConverter->toIcon(m_enmMachineState); 82 59 83 60 /* Determine configuration access level: */ 84 m_enmConfigurationAccessLevel = ::configurationAccessLevel(m_enmSessionState, m_enmMachineState); 85 /* Also take restrictions into account: */ 86 if ( m_enmConfigurationAccessLevel != ConfigurationAccessLevel_Null 87 && !gEDataManager->machineReconfigurationEnabled(m_strId)) 88 m_enmConfigurationAccessLevel = ConfigurationAccessLevel_Null; 89 90 /* Determine PID finally: */ 91 if ( m_enmMachineState == KMachineState_PoweredOff 92 || m_enmMachineState == KMachineState_Saved 93 || m_enmMachineState == KMachineState_Teleported 94 || m_enmMachineState == KMachineState_Aborted 95 ) 96 { 97 m_pid = (ULONG) ~0; 98 } 99 else 100 { 101 m_pid = m_comMachine.GetSessionPID(); 102 } 61 m_enmConfigurationAccessLevel = ConfigurationAccessLevel_Null; 103 62 104 63 /* Determine whether we should show this VM details: */ 105 m_fHasDetails = gEDataManager->showMachineInVirtualBoxManagerDetails(m_strId);64 m_fHasDetails = false; 106 65 } 107 66 else 108 67 { 109 /* Update last access error information: */ 110 m_comAccessError = m_comMachine.GetAccessError(); 111 112 /* Determine machine name on the basis of settings file only: */ 113 QFileInfo fi(m_strSettingsFile); 114 m_strName = UICommon::hasAllowedExtension(fi.completeSuffix(), VBoxFileExts) 115 ? fi.completeBaseName() 116 : fi.fileName(); 117 /* Reset other VM attributes: */ 118 m_strOSTypeId = QString(); 119 m_groups.clear(); 120 121 /* Reset snapshot attributes: */ 122 m_strSnapshotName = QString(); 123 m_lastStateChange = QDateTime::currentDateTime(); 124 m_cSnaphot = 0; 125 126 /* Reset VM states: */ 127 m_enmMachineState = KMachineState_Null; 128 m_machineStateIcon = gpConverter->toIcon(KMachineState_Aborted); 129 m_enmSessionState = KSessionState_Null; 130 131 /* Reset configuration access level: */ 132 m_enmConfigurationAccessLevel = ConfigurationAccessLevel_Null; 133 134 /* Reset PID finally: */ 135 m_pid = (ULONG) ~0; 136 137 /* Reset whether we should show this VM details: */ 138 m_fHasDetails = true; 68 /// @todo handle inaccessible cloud VM 139 69 } 140 70 … … 146 76 } 147 77 148 void UIVirtualMachineItem Local::recachePixmap()78 void UIVirtualMachineItemCloud::recachePixmap() 149 79 { 150 80 /* If machine is accessible: */ 151 81 if (m_fAccessible) 152 82 { 153 /* First, we are trying to acquire personal machine guest OS type icon: */ 154 m_pixmap = uiCommon().vmUserPixmapDefault(m_comMachine, &m_logicalPixmapSize); 155 /* If there is nothing, we are using icon corresponding to cached guest OS type: */ 156 if (m_pixmap.isNull()) 83 /* We are using icon corresponding to cached guest OS type: */ 84 if ( itemType() == ItemType_CloudFake 85 && fakeCloudItemState() == FakeCloudItemState_Loading) 86 m_pixmap = uiCommon().vmGuestOSTypePixmapDefault("Cloud", &m_logicalPixmapSize); 87 else 157 88 m_pixmap = uiCommon().vmGuestOSTypePixmapDefault(m_strOSTypeId, &m_logicalPixmapSize); 158 89 } … … 160 91 else 161 92 { 162 /* We are using "Other" guest OS type icon: */ 163 m_pixmap = uiCommon().vmGuestOSTypePixmapDefault("Other", &m_logicalPixmapSize); 93 /// @todo handle inaccessible cloud VM 164 94 } 165 95 } 166 96 167 bool UIVirtualMachineItem Local::canSwitchTo() const97 bool UIVirtualMachineItemCloud::isItemEditable() const 168 98 { 169 return const_cast <CMachine&>(m_comMachine).CanShowConsoleWindow();99 return accessible(); 170 100 } 171 101 172 bool UIVirtualMachineItemLocal::switchTo() 173 { 174 #ifdef VBOX_WS_MAC 175 ULONG64 id = m_comMachine.ShowConsoleWindow(); 176 #else 177 WId id = (WId) m_comMachine.ShowConsoleWindow(); 178 #endif 179 AssertWrapperOk(m_comMachine); 180 if (!m_comMachine.isOk()) 181 return false; 182 183 /* winId = 0 it means the console window has already done everything 184 * necessary to implement the "show window" semantics. */ 185 if (id == 0) 186 return true; 187 188 #if defined (VBOX_WS_WIN) || defined (VBOX_WS_X11) 189 190 return uiCommon().activateWindow(id, true); 191 192 #elif defined (VBOX_WS_MAC) 193 194 // WORKAROUND: 195 // This is just for the case were the other process cannot steal 196 // the focus from us. It will send us a PSN so we can try. 197 ProcessSerialNumber psn; 198 psn.highLongOfPSN = id >> 32; 199 psn.lowLongOfPSN = (UInt32)id; 200 OSErr rc = ::SetFrontProcess(&psn); 201 if (!rc) 202 Log(("GUI: %#RX64 couldn't do SetFrontProcess on itself, the selector (we) had to do it...\n", id)); 203 else 204 Log(("GUI: Failed to bring %#RX64 to front. rc=%#x\n", id, rc)); 205 return !rc; 206 207 #else 208 209 return false; 210 211 #endif 212 } 213 214 bool UIVirtualMachineItemLocal::isItemEditable() const 215 { 216 return accessible() 217 && sessionState() == KSessionState_Unlocked; 218 } 219 220 bool UIVirtualMachineItemLocal::isItemSaved() const 102 bool UIVirtualMachineItemCloud::isItemSaved() const 221 103 { 222 104 return accessible() … … 224 106 } 225 107 226 bool UIVirtualMachineItem Local::isItemPoweredOff() const108 bool UIVirtualMachineItemCloud::isItemPoweredOff() const 227 109 { 228 110 return accessible() … … 233 115 } 234 116 235 bool UIVirtualMachineItem Local::isItemStarted() const117 bool UIVirtualMachineItemCloud::isItemStarted() const 236 118 { 237 119 return isItemRunning() … … 239 121 } 240 122 241 bool UIVirtualMachineItem Local::isItemRunning() const123 bool UIVirtualMachineItemCloud::isItemRunning() const 242 124 { 243 125 return accessible() … … 247 129 } 248 130 249 bool UIVirtualMachineItem Local::isItemRunningHeadless() const131 bool UIVirtualMachineItemCloud::isItemRunningHeadless() const 250 132 { 251 if (isItemRunning()) 252 { 253 /* Open session to determine which frontend VM is started with: */ 254 CSession comSession = uiCommon().openExistingSession(id()); 255 if (!comSession.isNull()) 256 { 257 /* Acquire the session name: */ 258 const QString strSessionName = comSession.GetMachine().GetSessionName(); 259 /* Close the session early: */ 260 comSession.UnlockMachine(); 261 /* Check whether we are in 'headless' session: */ 262 return strSessionName == "headless"; 263 } 264 } 265 return false; 133 return isItemRunning(); 266 134 } 267 135 268 bool UIVirtualMachineItem Local::isItemPaused() const136 bool UIVirtualMachineItemCloud::isItemPaused() const 269 137 { 270 138 return accessible() … … 273 141 } 274 142 275 bool UIVirtualMachineItem Local::isItemStuck() const143 bool UIVirtualMachineItemCloud::isItemStuck() const 276 144 { 277 145 return accessible() … … 279 147 } 280 148 281 void UIVirtualMachineItem Local::retranslateUi()149 void UIVirtualMachineItemCloud::retranslateUi() 282 150 { 283 /* This is used in tool-tip generation: */284 const QString strDateTime = (m_lastStateChange.date() == QDate::currentDate())285 ? m_lastStateChange.time().toString(Qt::LocalDate)286 : m_lastStateChange.toString(Qt::LocalDate);287 288 151 /* If machine is accessible: */ 289 152 if (m_fAccessible) 290 153 { 154 /* Update name: */ 155 if (itemType() == UIVirtualMachineItem::ItemType_CloudFake) 156 m_strName = tr("Empty"); 157 158 /* Update machine state: */ 159 if (itemType() == UIVirtualMachineItem::ItemType_CloudFake) 160 { 161 switch (m_enmFakeCloudItemState) 162 { 163 case UIVirtualMachineItemCloud::FakeCloudItemState_Loading: 164 m_strMachineStateName = tr("Loading ..."); 165 break; 166 case UIVirtualMachineItemCloud::FakeCloudItemState_Done: 167 m_strMachineStateName = tr("Done"); 168 break; 169 default: 170 break; 171 } 172 } 173 291 174 /* Update tool-tip: */ 292 m_strToolTipText = QString("<b>%1</b>").arg(m_strName); 293 if (!m_strSnapshotName.isNull()) 294 m_strToolTipText += QString(" (%1)").arg(m_strSnapshotName); 295 m_strToolTipText = tr("<nobr>%1<br></nobr>" 296 "<nobr>%2 since %3</nobr><br>" 297 "<nobr>Session %4</nobr>", 298 "VM tooltip (name, last state change, session state)") 299 .arg(m_strToolTipText) 300 .arg(gpConverter->toString(m_enmMachineState)) 301 .arg(strDateTime) 302 .arg(gpConverter->toString(m_enmSessionState).toLower()); 175 m_strToolTipText = tr("<nobr><b>%1</b></nobr><br>" 176 "<nobr>%2</nobr>", 177 "VM tooltip (name, state)") 178 .arg(m_strName) 179 .arg(gpConverter->toString(m_enmMachineState)); 303 180 } 304 181 /* Otherwise: */ … … 306 183 { 307 184 /* Update tool-tip: */ 308 m_strToolTipText = tr("<nobr><b>%1</b><br></nobr>" 309 "<nobr>Inaccessible since %2</nobr>", 310 "Inaccessible VM tooltip (name, last state change)") 311 .arg(m_strSettingsFile) 312 .arg(strDateTime); 185 m_strToolTipText = tr("<nobr><b>%1</b></nobr><br>" 186 "<nobr>Inaccessible</nobr>", 187 "Inaccessible VM tooltip (name)") 188 .arg(m_strName); 313 189 314 190 /* We have our own translation for Null states: */ 315 191 m_strMachineStateName = tr("Inaccessible"); 316 m_strSessionStateName = tr("Inaccessible");317 192 } 318 193 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.h
r82944 r82960 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIVirtualMachineItem Localclass declarations.3 * VBox Qt GUI - UIVirtualMachineItemCloud class declarations. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_manager_UIVirtualMachineItem Local_h19 #define FEQT_INCLUDED_SRC_manager_UIVirtualMachineItem Local_h18 #ifndef FEQT_INCLUDED_SRC_manager_UIVirtualMachineItemCloud_h 19 #define FEQT_INCLUDED_SRC_manager_UIVirtualMachineItemCloud_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once 22 22 #endif 23 23 24 /* Qt includes: */25 #include <QDateTime>26 27 24 /* GUI includes: */ 28 25 #include "UIVirtualMachineItem.h" 29 26 30 /* COM includes: */ 31 #include "CMachine.h" 32 33 /** UIVirtualMachineItem sub-class used as local Virtual Machine item interface. */ 34 class UIVirtualMachineItemLocal : public UIVirtualMachineItem 27 /** UIVirtualMachineItem sub-class used as cloud Virtual Machine item interface. */ 28 class UIVirtualMachineItemCloud : public UIVirtualMachineItem 35 29 { 36 30 Q_OBJECT; … … 38 32 public: 39 33 40 /** Constructs local VM item on the basis of taken @a comMachine. */ 41 UIVirtualMachineItemLocal(const CMachine &comMachine); 42 /** Destructs local VM item. */ 43 virtual ~UIVirtualMachineItemLocal(); 34 /** Fake cloud item states. */ 35 enum FakeCloudItemState 36 { 37 FakeCloudItemState_NotApplicable, 38 FakeCloudItemState_Loading, 39 FakeCloudItemState_Done 40 }; 44 41 45 /** @name Arguments. 46 * @{ */ 47 /** Returns cached virtual machine object. */ 48 CMachine machine() const { return m_comMachine; } 49 /** @} */ 50 51 /** @name Basic attributes. 52 * @{ */ 53 /** Returns cached machine settings file name. */ 54 QString settingsFile() const { return m_strSettingsFile; } 55 /** Returns cached machine group list. */ 56 const QStringList &groups() { return m_groups; } 57 /** @} */ 58 59 /** @name Snapshot attributes. 60 * @{ */ 61 /** Returns cached snapshot name. */ 62 QString snapshotName() const { return m_strSnapshotName; } 63 /** Returns cached snapshot children count. */ 64 ULONG snapshotCount() const { return m_cSnaphot; } 65 /** @} */ 42 /** Constructs fake cloud VM item. */ 43 UIVirtualMachineItemCloud(); 44 /** Destructs cloud VM item. */ 45 virtual ~UIVirtualMachineItemCloud(); 66 46 67 47 /** @name State attributes. 68 48 * @{ */ 69 /** Returns cached session state. */ 70 KSessionState sessionState() const { return m_enmSessionState; } 71 /** Returns cached session state name. */ 72 QString sessionStateName() const { return m_strSessionStateName; } 73 /** @} */ 74 75 /** @name Console attributes. 76 * @{ */ 77 /** Returns whether we can switch to main window of VM process. */ 78 bool canSwitchTo() const; 79 /** Tries to switch to the main window of the VM process. 80 * @return true if switched successfully. */ 81 bool switchTo(); 49 /** Returns fake cloud item state. */ 50 FakeCloudItemState fakeCloudItemState() const { return m_enmFakeCloudItemState; } 82 51 /** @} */ 83 52 … … 118 87 /** @} */ 119 88 120 private:121 122 /** @name Arguments.123 * @{ */124 /** Holds cached machine object reference. */125 CMachine m_comMachine;126 /** @} */127 128 /** @name Basic attributes.129 * @{ */130 /** Holds cached machine settings file name. */131 QString m_strSettingsFile;132 /** Holds cached machine group list. */133 QStringList m_groups;134 /** @} */135 136 /** @name Snapshot attributes.137 * @{ */138 /** Holds cached snapshot name. */139 QString m_strSnapshotName;140 /** Holds cached last state change date/time. */141 QDateTime m_lastStateChange;142 /** Holds cached snapshot children count. */143 ULONG m_cSnaphot;144 /** @} */145 146 89 /** @name State attributes. 147 90 * @{ */ 148 /** Holds cached session state. */ 149 KSessionState m_enmSessionState; 150 /** Holds cached session state name. */ 151 QString m_strSessionStateName; 152 /** @} */ 153 154 /** @name Console attributes. 155 * @{ */ 156 /** Holds machine PID. */ 157 ULONG m_pid; 91 /** Holds fake cloud item state. */ 92 FakeCloudItemState m_enmFakeCloudItemState; 158 93 /** @} */ 159 94 }; 160 95 161 #endif /* !FEQT_INCLUDED_SRC_manager_UIVirtualMachineItem Local_h */96 #endif /* !FEQT_INCLUDED_SRC_manager_UIVirtualMachineItemCloud_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp
r82944 r82960 21 21 22 22 /* GUI includes: */ 23 #include "UIVirtualMachineItemLocal.h"24 23 #include "UICommon.h" 25 24 #include "UIConverter.h" 26 25 #include "UIExtraDataManager.h" 26 #include "UIVirtualMachineItemLocal.h" 27 27 #ifdef VBOX_WS_MAC 28 28 # include <ApplicationServices/ApplicationServices.h> -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.cpp
r82944 r82960 18 18 /* GUI includes: */ 19 19 #include "UIChooserNodeMachine.h" 20 #include "UIVirtualMachineItemCloud.h" 20 21 #include "UIVirtualMachineItemLocal.h" 21 22 … … 34 35 35 36 UIChooserNodeMachine::UIChooserNodeMachine(UIChooserNode *pParent, 37 bool fFavorite, 38 int iPosition) 39 : UIChooserNode(pParent, fFavorite) 40 , m_pCache(new UIVirtualMachineItemCloud) 41 { 42 if (parentNode()) 43 parentNode()->addNode(this, iPosition); 44 retranslateUi(); 45 } 46 47 UIChooserNodeMachine::UIChooserNodeMachine(UIChooserNode *pParent, 36 48 UIChooserNodeMachine *pCopyFrom, 37 49 int iPosition) 38 50 : UIChooserNode(pParent, pCopyFrom->isFavorite()) 39 , m_pCache(new UIVirtualMachineItemLocal(pCopyFrom->cache()->toLocal()->machine()))40 51 { 52 switch (pCopyFrom->cache()->itemType()) 53 { 54 case UIVirtualMachineItem::ItemType_Local: 55 m_pCache = new UIVirtualMachineItemLocal(pCopyFrom->cache()->toLocal()->machine()); 56 break; 57 case UIVirtualMachineItem::ItemType_CloudFake: 58 m_pCache = new UIVirtualMachineItemCloud; 59 break; 60 default: 61 break; 62 } 63 41 64 if (parentNode()) 42 65 parentNode()->addNode(this, iPosition); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.h
r82944 r82960 37 37 public: 38 38 39 /** Constructs chooser node passing @a pParent to the base-class.39 /** Constructs chooser node for local VM passing @a pParent to the base-class. 40 40 * @param fFavorite Brings whether the node is favorite. 41 41 * @param iPosition Brings the initial node position. … … 45 45 int iPosition, 46 46 const CMachine &comMachine); 47 /** Constructs chooser node for cloud VM passing @a pParent to the base-class. 48 * @param fFavorite Brings whether the node is favorite. 49 * @param iPosition Brings the initial node position. */ 50 UIChooserNodeMachine(UIChooserNode *pParent, 51 bool fFavorite, 52 int iPosition); 47 53 /** Constructs chooser node passing @a pParent to the base-class. 48 54 * @param pCopyFrom Brings the node to copy data from.
Note:
See TracChangeset
for help on using the changeset viewer.