Last change
on this file since 35740 was 34781, checked in by vboxsync, 14 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
|
Rev | Line | |
---|
[12590] | 1 | /** @file
|
---|
| 2 | *
|
---|
| 3 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
| 4 | * VBoxAboutDlg class declaration
|
---|
| 5 | */
|
---|
| 6 |
|
---|
| 7 | /*
|
---|
[34781] | 8 | * Copyright (C) 2006-2010 Oracle Corporation
|
---|
[12590] | 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 |
|
---|
[34781] | 22 | /* Global includes */
|
---|
| 23 | #include <QPixmap>
|
---|
| 24 |
|
---|
| 25 | /* Local includes */
|
---|
[12590] | 26 | #include "QIWithRetranslateUI.h"
|
---|
[17377] | 27 | #include "QIDialog.h"
|
---|
[12590] | 28 |
|
---|
[34781] | 29 | /* Forward declarations */
|
---|
[12590] | 30 | class QEvent;
|
---|
| 31 |
|
---|
[34781] | 32 | /* VBox about dialog */
|
---|
[17377] | 33 | class VBoxAboutDlg: public QIWithRetranslateUI2<QIDialog>
|
---|
[12590] | 34 | {
|
---|
| 35 | Q_OBJECT;
|
---|
| 36 |
|
---|
| 37 | public:
|
---|
| 38 |
|
---|
[34781] | 39 | /* Constructor: */
|
---|
| 40 | VBoxAboutDlg(QWidget* pParent, const QString &strVersion);
|
---|
| 41 |
|
---|
[12590] | 42 | protected:
|
---|
| 43 |
|
---|
[34781] | 44 | /* Event handlers: */
|
---|
| 45 | bool event(QEvent *pEvent);
|
---|
| 46 | void paintEvent(QPaintEvent *pEvent);
|
---|
| 47 | void mouseReleaseEvent(QMouseEvent *pEvent);
|
---|
| 48 |
|
---|
| 49 | /* Language stuff: */
|
---|
[12590] | 50 | void retranslateUi();
|
---|
| 51 |
|
---|
| 52 | private:
|
---|
[34781] | 53 |
|
---|
| 54 | /* Variables: */
|
---|
| 55 | QString m_strAboutText;
|
---|
| 56 | QString m_strVersion;
|
---|
| 57 | QPixmap m_bgImage;
|
---|
[12590] | 58 | };
|
---|
| 59 |
|
---|
| 60 | #endif /* __VBoxAboutDlg_h__ */
|
---|
[26719] | 61 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.