VirtualBox

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

Last change on this file was 104297, checked in by vboxsync, 6 weeks ago

FE/Qt. bugref:10622. Using new UITranslationEventListener in the guest control related GUI classes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1/* $Id: UIGuestProcessControlDialog.h 104297 2024-04-11 13:20:43Z 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
40/* COM includes: */
41#include "CGuest.h"
42
43/** QIManagerDialogFactory extension used as a factory for the Guest Control dialog. */
44class UIGuestProcessControlDialogFactory : public QIManagerDialogFactory
45{
46public:
47
48 /** Constructs dialog factory. */
49 UIGuestProcessControlDialogFactory();
50
51protected:
52
53 /** Creates derived @a pDialog instance.
54 * @param pCenterWidget Passes the widget to center wrt. pCenterWidget. */
55 virtual void create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) RT_OVERRIDE;
56};
57
58/** QIManagerDialog extension providing GUI with the dialog displaying guest control releated logs. */
59class UIGuestProcessControlDialog : public QIManagerDialog
60{
61 Q_OBJECT;
62
63public:
64
65 /** Constructs Guest Control dialog. */
66 UIGuestProcessControlDialog(QWidget *pCenterWidget);
67
68protected:
69
70 /** @name Prepare/cleanup cascade.
71 * @{ */
72 /** Configures all. */
73 virtual void configure() RT_OVERRIDE;
74 /** Configures central-widget. */
75 virtual void configureCentralWidget() RT_OVERRIDE;
76 /** Perform final preparations. */
77 virtual void finalize() RT_OVERRIDE;
78 /** Loads dialog setting from extradata. */
79 virtual void loadSettings() RT_OVERRIDE;
80
81 /** Saves dialog setting into extradata. */
82 virtual void saveSettings() RT_OVERRIDE;
83 /** @} */
84
85 /** @name Functions related to geometry restoration.
86 * @{ */
87 /** Returns whether the window should be maximized when geometry being restored. */
88 virtual bool shouldBeMaximized() const RT_OVERRIDE;
89 /** @} */
90
91private slots:
92
93 void sltSetCloseButtonShortCut(QKeySequence shortcut);
94 /** @name Event-handling stuff.
95 * @{ */
96 /** Handles translation event. */
97 void sltRetranslateUI();
98 /** @} */
99
100private:
101
102 CGuest m_comGuest;
103 QString m_strMachineName;
104};
105
106#endif /* !FEQT_INCLUDED_SRC_guestctrl_UIGuestProcessControlDialog_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use