VirtualBox

Ignore:
Timestamp:
Nov 18, 2009 10:17:40 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54984
Message:

FE/Qt4: Snapshots Dialog: snapshot tree-widget item now contains snapshot's age.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxSnapshotsWgt.h

    r23924 r24774  
    2424#define __VBoxSnapshotsWgt_h__
    2525
     26/* Global includes */
     27#include <QTimer>
     28
    2629/* Local includes */
    2730#include "VBoxSnapshotsWgt.gen.h"
     
    3134/* Local forwards */
    3235class SnapshotWgtItem;
     36
     37/* Snapshot age format */
     38enum SnapshotAgeFormat
     39{
     40    AgeInSeconds,
     41    AgeInMinutes,
     42    AgeInHours,
     43    AgeInDays,
     44    AgeMax
     45};
    3346
    3447class VBoxSnapshotsWgt : public QIWithRetranslateUI <QWidget>, public Ui::VBoxSnapshotsWgt
     
    6174    void sessionStateChanged (const VBoxSessionStateChangeEvent &aEvent);
    6275
     76    void updateSnapshotsAge();
     77
    6378private:
    6479
     
    6782    SnapshotWgtItem* curStateItem();
    6883    void populateSnapshots (const CSnapshot &aSnapshot, QTreeWidgetItem *aItem);
     84    SnapshotAgeFormat traverseSnapshotAge (QTreeWidgetItem *aParentItem);
    6985
    7086    CMachine         mMachine;
     
    8197    QAction         *mShowSnapshotDetailsAction;
    8298    QAction         *mTakeSnapshotAction;
     99
     100    QTimer          mAgeUpdateTimer;
    83101};
    84102
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