VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.h@ 43138

Last change on this file since 43138 was 41587, checked in by vboxsync, 12 years ago

FE/Qt: 6227: Decrease GUI build time: Rework COM wrappers generator to create one header per each COM interface. Update all GUI files to use newly generated headers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.1 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt4 GUI ("VirtualBox"):
4 * VBoxSnapshotDetailsDlg class declaration
5 */
6
7/*
8 * Copyright (C) 2008-2009 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef __VBoxSnapshotDetailsDlg_h__
20#define __VBoxSnapshotDetailsDlg_h__
21
22/* GUI includes: */
23#include "VBoxSnapshotDetailsDlg.gen.h"
24#include "QIWithRetranslateUI.h"
25
26/* COM includes: */
27#include "CSnapshot.h"
28
29/* Forward declarations: */
30class QScrollArea;
31
32class VBoxSnapshotDetailsDlg : public QIWithRetranslateUI <QDialog>, public Ui::VBoxSnapshotDetailsDlg
33{
34 Q_OBJECT;
35
36public:
37
38 VBoxSnapshotDetailsDlg (QWidget *aParent);
39
40 void getFromSnapshot (const CSnapshot &aSnapshot);
41 void putBackToSnapshot();
42
43protected:
44
45 void retranslateUi();
46
47 bool eventFilter (QObject *aObject, QEvent *aEvent);
48 void showEvent (QShowEvent *aEvent);
49
50private slots:
51
52 void onNameChanged (const QString &aText);
53
54private:
55
56 CSnapshot mSnapshot;
57
58 QPixmap mThumbnail;
59 QPixmap mScreenshot;
60};
61
62class VBoxScreenshotViewer : public QIWithRetranslateUI2 <QWidget>
63{
64 Q_OBJECT;
65
66public:
67
68 VBoxScreenshotViewer (QWidget *aParent, const QPixmap &aScreenshot,
69 const QString &aSnapshotName, const QString &aMachineName);
70
71private:
72
73 void retranslateUi();
74
75 void showEvent (QShowEvent *aEvent);
76 void resizeEvent (QResizeEvent *aEvent);
77 void mousePressEvent (QMouseEvent *aEvent);
78 void keyPressEvent (QKeyEvent *aEvent);
79
80 void adjustPicture();
81
82 QScrollArea *mArea;
83 QLabel *mPicture;
84
85 QPixmap mScreenshot;
86 QString mSnapshotName;
87 QString mMachineName;
88
89 bool mZoomMode;
90};
91
92#endif // __VBoxSnapshotDetailsDlg_h__
93
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use