Changeset 24732 in vbox for trunk/src/VBox/Frontends/VirtualBox/include
- Timestamp:
- Nov 17, 2009 5:45:12 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54939
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxSnapshotDetailsDlg.h
r9729 r24732 6 6 7 7 /* 8 * Copyright (C) 200 6-2008Sun Microsystems, Inc.8 * Copyright (C) 2008-2009 Sun Microsystems, Inc. 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 24 24 #define __VBoxSnapshotDetailsDlg_h__ 25 25 26 /* Local includes */ 26 27 #include "VBoxSnapshotDetailsDlg.gen.h" 27 28 #include "QIWithRetranslateUI.h" 28 29 #include "COMDefs.h" 29 30 30 class VBoxSnapshotDetailsDlg : public QIWithRetranslateUI<QDialog>, 31 public Ui::VBoxSnapshotDetailsDlg 31 /* Global forwards */ 32 class QScrollArea; 33 34 class VBoxSnapshotDetailsDlg : public QIWithRetranslateUI <QDialog>, public Ui::VBoxSnapshotDetailsDlg 32 35 { 33 36 Q_OBJECT; … … 44 47 void retranslateUi(); 45 48 49 bool eventFilter (QObject *aObject, QEvent *aEvent); 50 void showEvent (QShowEvent *aEvent); 51 46 52 private slots: 47 53 … … 51 57 52 58 CSnapshot mSnapshot; 59 60 QPixmap mThumbnail; 61 }; 62 63 class VBoxScreenshotViewer : public QIWithRetranslateUI2 <QWidget> 64 { 65 Q_OBJECT; 66 67 public: 68 69 VBoxScreenshotViewer (QWidget *aParent, const QPixmap &aScreenshot, 70 const QString &aSnapshotName, const QString &aMachineName); 71 72 private: 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; 53 91 }; 54 92
Note:
See TracChangeset
for help on using the changeset viewer.