1 | /* $Id: UIErrorPane.h 76581 2019-01-01 06:24:57Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIErrorPane class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2010-2019 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef FEQT_INCLUDED_SRC_manager_UIErrorPane_h
|
---|
19 | #define FEQT_INCLUDED_SRC_manager_UIErrorPane_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* Qt includes: */
|
---|
25 | #include <QWidget>
|
---|
26 |
|
---|
27 | /* GUI includes: */
|
---|
28 | #include "QIWithRetranslateUI.h"
|
---|
29 |
|
---|
30 | /* Forward declarations: */
|
---|
31 | class QAction;
|
---|
32 | class QLabel;
|
---|
33 | class QString;
|
---|
34 | class QTextBrowser;
|
---|
35 | class QToolButton;
|
---|
36 |
|
---|
37 |
|
---|
38 | /** QWidget subclass representing error pane reflecting information
|
---|
39 | * about currently chosen inaccessible VM and allowing to operate over it. */
|
---|
40 | class UIErrorPane : public QIWithRetranslateUI<QWidget>
|
---|
41 | {
|
---|
42 | Q_OBJECT;
|
---|
43 |
|
---|
44 | public:
|
---|
45 |
|
---|
46 | /** Constructs error pane passing @a pParent to the base-class.
|
---|
47 | * @param pRefreshAction Brings the refresh action reference. */
|
---|
48 | UIErrorPane(QAction *pRefreshAction = 0, QWidget *pParent = 0);
|
---|
49 |
|
---|
50 | /** Defines error @a strDetails. */
|
---|
51 | void setErrorDetails(const QString &strDetails);
|
---|
52 |
|
---|
53 | protected:
|
---|
54 |
|
---|
55 | /** Handles translation event. */
|
---|
56 | virtual void retranslateUi() /* override */;
|
---|
57 |
|
---|
58 | private:
|
---|
59 |
|
---|
60 | /** Prepares all. */
|
---|
61 | void prepare();
|
---|
62 |
|
---|
63 | /** Holds the Refresh action refrence. */
|
---|
64 | QAction *m_pActionRefresh;
|
---|
65 | /** Holds the VM refresh button instance. */
|
---|
66 | QToolButton *m_pButtonRefresh;
|
---|
67 |
|
---|
68 | /** Holds the label instance. */
|
---|
69 | QLabel *m_pLabel;
|
---|
70 | /** Holds the text-browser instance. */
|
---|
71 | QTextBrowser *m_pBrowserDetails;
|
---|
72 | };
|
---|
73 |
|
---|
74 | #endif /* !FEQT_INCLUDED_SRC_manager_UIErrorPane_h */
|
---|