VirtualBox

Ignore:
Timestamp:
Nov 17, 2009 5:45:12 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54939
Message:

FE/Qt4: Thumbnail & screenshot support for snapshot details page.

File:
1 edited

Legend:

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

    r9729 r24732  
    66
    77/*
    8  * Copyright (C) 2006-2008 Sun Microsystems, Inc.
     8 * Copyright (C) 2008-2009 Sun Microsystems, Inc.
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2424#define __VBoxSnapshotDetailsDlg_h__
    2525
     26/* Local includes */
    2627#include "VBoxSnapshotDetailsDlg.gen.h"
    2728#include "QIWithRetranslateUI.h"
    2829#include "COMDefs.h"
    2930
    30 class VBoxSnapshotDetailsDlg : public QIWithRetranslateUI<QDialog>,
    31                                public Ui::VBoxSnapshotDetailsDlg
     31/* Global forwards */
     32class QScrollArea;
     33
     34class VBoxSnapshotDetailsDlg : public QIWithRetranslateUI <QDialog>, public Ui::VBoxSnapshotDetailsDlg
    3235{
    3336    Q_OBJECT;
     
    4447    void retranslateUi();
    4548
     49    bool eventFilter (QObject *aObject, QEvent *aEvent);
     50    void showEvent (QShowEvent *aEvent);
     51
    4652private slots:
    4753
     
    5157
    5258    CSnapshot mSnapshot;
     59
     60    QPixmap mThumbnail;
     61};
     62
     63class VBoxScreenshotViewer : public QIWithRetranslateUI2 <QWidget>
     64{
     65    Q_OBJECT;
     66
     67public:
     68
     69    VBoxScreenshotViewer (QWidget *aParent, const QPixmap &aScreenshot,
     70                          const QString &aSnapshotName, const QString &aMachineName);
     71
     72private:
     73
     74    void retranslateUi();
     75
     76    void showEvent (QShowEvent *aEvent);
     77    void resizeEvent (QResizeEvent *aEvent);
     78    void mousePressEvent (QMouseEvent *aEvent);
     79    void keyPressEvent (QKeyEvent *aEvent);
     80
     81    void adjustPicture();
     82
     83    QScrollArea *mArea;
     84    QLabel *mPicture;
     85
     86    QPixmap mScreenshot;
     87    QString mSnapshotName;
     88    QString mMachineName;
     89
     90    bool mZoomMode;
    5391};
    5492
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