1 | /* $Id: UIInformationRuntime.h 106061 2024-09-16 14:03:52Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIInformationRuntime class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2016-2024 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef FEQT_INCLUDED_SRC_runtime_information_UIInformationRuntime_h
|
---|
29 | #define FEQT_INCLUDED_SRC_runtime_information_UIInformationRuntime_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* Qt includes: */
|
---|
35 | #include <QWidget>
|
---|
36 |
|
---|
37 | /* COM includes: */
|
---|
38 | #include "KClipboardMode.h"
|
---|
39 | #include "KDnDMode.h"
|
---|
40 | #include "KGuestMonitorChangedEventType.h"
|
---|
41 |
|
---|
42 | /* Forward declarations: */
|
---|
43 | class QAction;
|
---|
44 | class QVBoxLayout;
|
---|
45 | class UIMachine;
|
---|
46 | class UIRuntimeInfoWidget;
|
---|
47 |
|
---|
48 | /** UIInformationRuntime class displays a table including some
|
---|
49 | * run time attributes. */
|
---|
50 | class UIInformationRuntime : public QWidget
|
---|
51 | {
|
---|
52 | Q_OBJECT;
|
---|
53 |
|
---|
54 | public:
|
---|
55 |
|
---|
56 | /** Constructs information-tab passing @a pParent to the base-class. */
|
---|
57 | UIInformationRuntime(QWidget *pParent);
|
---|
58 |
|
---|
59 | private slots:
|
---|
60 |
|
---|
61 | virtual void sltRetranslateUI();
|
---|
62 |
|
---|
63 | /** @name These functions are connected to API events and implement necessary updates on the table.
|
---|
64 | * @{ */
|
---|
65 | void sltGuestAdditionsStateChange();
|
---|
66 | void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo);
|
---|
67 | void sltVRDEChange();
|
---|
68 | void sltClipboardChange(KClipboardMode enmMode);
|
---|
69 | void sltDnDModeChange(KDnDMode enmMode);
|
---|
70 | /** @} */
|
---|
71 | void sltHandleTableContextMenuRequest(const QPoint &position);
|
---|
72 | void sltHandleCopyWholeTable();
|
---|
73 |
|
---|
74 | private:
|
---|
75 |
|
---|
76 | void prepareObjects();
|
---|
77 |
|
---|
78 | /** Holds the instance of layout we create. */
|
---|
79 | QVBoxLayout *m_pMainLayout;
|
---|
80 | UIRuntimeInfoWidget *m_pRuntimeInfoWidget;
|
---|
81 | QAction *m_pCopyWholeTableAction;
|
---|
82 | };
|
---|
83 |
|
---|
84 | #endif /* !FEQT_INCLUDED_SRC_runtime_information_UIInformationRuntime_h */
|
---|