VirtualBox

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

Last change on this file since 43138 was 34781, checked in by vboxsync, 13 years ago

FE/Qt4: 5395: Crash if 'about' box is open during VM shutdown - should be fixed, VBoxAboutDlg refactoring.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * VBoxAboutDlg class declaration
5 */
6
7/*
8 * Copyright (C) 2006-2010 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 __VBoxAboutDlg_h__
20#define __VBoxAboutDlg_h__
21
22/* Global includes */
23#include <QPixmap>
24
25/* Local includes */
26#include "QIWithRetranslateUI.h"
27#include "QIDialog.h"
28
29/* Forward declarations */
30class QEvent;
31
32/* VBox about dialog */
33class VBoxAboutDlg: public QIWithRetranslateUI2<QIDialog>
34{
35 Q_OBJECT;
36
37public:
38
39 /* Constructor: */
40 VBoxAboutDlg(QWidget* pParent, const QString &strVersion);
41
42protected:
43
44 /* Event handlers: */
45 bool event(QEvent *pEvent);
46 void paintEvent(QPaintEvent *pEvent);
47 void mouseReleaseEvent(QMouseEvent *pEvent);
48
49 /* Language stuff: */
50 void retranslateUi();
51
52private:
53
54 /* Variables: */
55 QString m_strAboutText;
56 QString m_strVersion;
57 QPixmap m_bgImage;
58};
59
60#endif /* __VBoxAboutDlg_h__ */
61
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use