- Timestamp:
- May 26, 2017 2:40:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.h
r67044 r67118 59 59 UISnapshotPane(QWidget *pParent = 0); 60 60 61 /** Defines the @a comMachine to be parsed. */61 /** Defines the @a comMachine object to be parsed. */ 62 62 void setMachine(const CMachine &comMachine); 63 63 … … 72 72 private slots: 73 73 74 /** @name Tree- view handlers74 /** @name Tree-widget handlers. 75 75 * @{ */ 76 76 /** Handles cursor change to @a pItem. */ … … 84 84 /** @} */ 85 85 86 /** @name Main event handlers 86 /** @name Main event handlers. 87 87 * @{ */ 88 88 /** Handles machine data change for machine with @a strMachineID. */ … … 94 94 /** @} */ 95 95 96 /** @name Timer event handlers 96 /** @name Timer event handlers. 97 97 * @{ */ 98 98 /** Updates snapshots age. */ … … 100 100 /** @} */ 101 101 102 /** @name Snapshot operations102 /** @name Toolbar handlers. 103 103 * @{ */ 104 104 /** Proposes to take a snapshot. */ … … 116 116 private: 117 117 118 /** @name Snapshot operations118 /** @name Toolbar helpers. 119 119 * @{ */ 120 120 /** Proposes to take a snapshot. */ … … 135 135 void populateSnapshots(const CSnapshot &comSnapshot, QITreeWidgetItem *pItem); 136 136 137 /** Searches for an item with corresponding @a strSnapshotID. */ 138 UISnapshotItem *findItem(const QString &strSnapshotID) const; 139 /** Returns the "current state" item. */ 140 UISnapshotItem *currentStateItem() const; 137 /** @name Tree-widget helpers. 138 * @{ */ 139 /** Searches for an item with corresponding @a strSnapshotID. */ 140 UISnapshotItem *findItem(const QString &strSnapshotID) const; 141 /** Returns the "current state" item. */ 142 UISnapshotItem *currentStateItem() const; 141 143 142 /** Searches for smallest snapshot age starting with @a pItem as parent. */ 143 SnapshotAgeFormat traverseSnapshotAge(QTreeWidgetItem *pItem) const; 144 /** Searches for smallest snapshot age starting with @a pItem as parent. */ 145 SnapshotAgeFormat traverseSnapshotAge(QTreeWidgetItem *pItem) const; 146 /** @} */ 144 147 145 /** Holds the machine COM wrapper. */ 146 CMachine m_comMachine; 147 /** Holds the machine ID. */ 148 QString m_strMachineID; 149 /** Holds the cached session state. */ 150 KSessionState m_enmSessionState; 151 /** Holds the current snapshot item reference. */ 152 UISnapshotItem *m_pCurrentSnapshotItem; 153 /** Holds the snapshot item editing protector. */ 154 QReadWriteLock m_lockReadWrite; 148 /** @name General variables. 149 * @{ */ 150 /** Holds the COM machine object. */ 151 CMachine m_comMachine; 152 /** Holds the machine object ID. */ 153 QString m_strMachineID; 154 /** Holds the cached session state. */ 155 KSessionState m_enmSessionState; 156 /** Holds the current snapshot item reference. */ 157 UISnapshotItem *m_pCurrentSnapshotItem; 158 /** Holds the snapshot item editing protector. */ 159 QReadWriteLock m_lockReadWrite; 160 /** @} */ 155 161 156 /** Holds the snapshot take action instance. */ 157 QAction *m_pActionTakeSnapshot; 158 /** Holds the snapshot restore action instance. */ 159 QAction *m_pActionRestoreSnapshot; 160 /** Holds the snapshot delete action instance. */ 161 QAction *m_pActionDeleteSnapshot; 162 /** Holds the show snapshot details action instance. */ 163 QAction *m_pActionShowSnapshotDetails; 164 /** Holds the snapshot clone action instance. */ 165 QAction *m_pActionCloneSnapshot; 162 /** @name Widget variables. 163 * @{ */ 164 /** Holds the Take Snapshot action instance. */ 165 QAction *m_pActionTakeSnapshot; 166 /** Holds the Restore Snapshot action instance. */ 167 QAction *m_pActionRestoreSnapshot; 168 /** Holds the Delete Snapshot action instance. */ 169 QAction *m_pActionDeleteSnapshot; 170 /** Holds the Show Snapshot Details action instance. */ 171 QAction *m_pActionShowSnapshotDetails; 172 /** Holds the Clone Snapshot action instance. */ 173 QAction *m_pActionCloneSnapshot; 166 174 167 /** Holds the snapshot age update timer. */168 QTimerm_ageUpdateTimer;175 /** Holds the snapshot age update timer. */ 176 QTimer m_ageUpdateTimer; 169 177 170 /** Holds whether the snapshot operations are allowed. */171 boolm_fShapshotOperationsAllowed;178 /** Holds whether the snapshot operations are allowed. */ 179 bool m_fShapshotOperationsAllowed; 172 180 173 /** Holds the cached snapshot-item pixmap for 'offline' state. */174 QIconm_snapshotIconOffline;175 /** Holds the cached snapshot-item pixmap for 'online' state. */176 QIconm_snapshotIconOnline;181 /** Holds the cached snapshot-item pixmap for 'offline' state. */ 182 QIcon m_snapshotIconOffline; 183 /** Holds the cached snapshot-item pixmap for 'online' state. */ 184 QIcon m_snapshotIconOnline; 177 185 178 /** Holds the snapshot tree instance. */ 179 UISnapshotTree *m_pSnapshotTree; 186 /** Holds the snapshot tree instance. */ 187 UISnapshotTree *m_pSnapshotTree; 188 /** @} */ 180 189 }; 181 190
Note:
See TracChangeset
for help on using the changeset viewer.