VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h@ 103977

Last change on this file since 103977 was 103977, checked in by vboxsync, 11 months ago

Apply RT_OVERRIDE/NS_OVERRIDE where required to shut up clang.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/* $Id: UIInformationRuntime.h 103977 2024-03-21 02:04:52Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIInformationRuntime class declaration.
4 */
5
6/*
7 * Copyright (C) 2016-2023 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/* GUI includes: */
38#include "QIWithRetranslateUI.h"
39
40/* COM includes: */
41#include "KClipboardMode.h"
42#include "KDnDMode.h"
43#include "KGuestMonitorChangedEventType.h"
44
45/* Forward declarations: */
46class QAction;
47class QVBoxLayout;
48class UIMachine;
49class UIRuntimeInfoWidget;
50
51/** UIInformationRuntime class displays a table including some
52 * run time attributes. */
53class UIInformationRuntime : public QIWithRetranslateUI<QWidget>
54{
55 Q_OBJECT;
56
57public:
58
59 /** Constructs information-tab passing @a pParent to the base-class. */
60 UIInformationRuntime(QWidget *pParent);
61
62protected:
63
64 virtual void retranslateUi() RT_OVERRIDE;
65
66private slots:
67
68 /** @name These functions are connected to API events and implement necessary updates on the table.
69 * @{ */
70 void sltGuestAdditionsStateChange();
71 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo);
72 void sltVRDEChange();
73 void sltClipboardChange(KClipboardMode enmMode);
74 void sltDnDModeChange(KDnDMode enmMode);
75 /** @} */
76 void sltHandleTableContextMenuRequest(const QPoint &position);
77 void sltHandleCopyWholeTable();
78
79private:
80
81 void prepareObjects();
82
83 /** Holds the instance of layout we create. */
84 QVBoxLayout *m_pMainLayout;
85 UIRuntimeInfoWidget *m_pRuntimeInfoWidget;
86 QAction *m_pCopyWholeTableAction;
87};
88
89#endif /* !FEQT_INCLUDED_SRC_runtime_information_UIInformationRuntime_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette