VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlDialog.h@ 103551

Last change on this file since 103551 was 98875, checked in by vboxsync, 20 months ago

FE/Qt: bugref:10322: Cleanup for UIGuestProcessControlDialog related to UIMachine global pointer.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1/* $Id: UIGuestProcessControlDialog.h 98875 2023-03-08 09:40:48Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIGuestProcessControlDialog class declaration.
4 */
5
6/*
7 * Copyright (C) 2010-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_guestctrl_UIGuestProcessControlDialog_h
29#define FEQT_INCLUDED_SRC_guestctrl_UIGuestProcessControlDialog_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QString>
36
37/* GUI includes: */
38#include "QIManagerDialog.h"
39#include "QIWithRetranslateUI.h"
40
41/* COM includes: */
42#include "COMEnums.h"
43#include "CGuest.h"
44
45/** QIManagerDialogFactory extension used as a factory for the Guest Control dialog. */
46class UIGuestProcessControlDialogFactory : public QIManagerDialogFactory
47{
48public:
49
50 /** Constructs dialog factory. */
51 UIGuestProcessControlDialogFactory();
52
53protected:
54
55 /** Creates derived @a pDialog instance.
56 * @param pCenterWidget Passes the widget to center wrt. pCenterWidget. */
57 virtual void create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) RT_OVERRIDE;
58};
59
60/** QIManagerDialog extension providing GUI with the dialog displaying guest control releated logs. */
61class UIGuestProcessControlDialog : public QIWithRetranslateUI<QIManagerDialog>
62{
63 Q_OBJECT;
64
65public:
66
67 /** Constructs Guest Control dialog. */
68 UIGuestProcessControlDialog(QWidget *pCenterWidget);
69
70protected:
71
72 /** @name Event-handling stuff.
73 * @{ */
74 /** Handles translation event. */
75 virtual void retranslateUi() RT_OVERRIDE;
76 /** @} */
77
78 /** @name Prepare/cleanup cascade.
79 * @{ */
80 /** Configures all. */
81 virtual void configure() RT_OVERRIDE;
82 /** Configures central-widget. */
83 virtual void configureCentralWidget() RT_OVERRIDE;
84 /** Perform final preparations. */
85 virtual void finalize() RT_OVERRIDE;
86 /** Loads dialog setting from extradata. */
87 virtual void loadSettings() RT_OVERRIDE;
88
89 /** Saves dialog setting into extradata. */
90 virtual void saveSettings() RT_OVERRIDE;
91 /** @} */
92
93 /** @name Functions related to geometry restoration.
94 * @{ */
95 /** Returns whether the window should be maximized when geometry being restored. */
96 virtual bool shouldBeMaximized() const RT_OVERRIDE;
97 /** @} */
98
99private slots:
100
101 void sltSetCloseButtonShortCut(QKeySequence shortcut);
102
103private:
104
105 CGuest m_comGuest;
106 QString m_strMachineName;
107};
108
109#endif /* !FEQT_INCLUDED_SRC_guestctrl_UIGuestProcessControlDialog_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