VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetails.h

Last change on this file was 98103, checked in by vboxsync, 17 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
  • Property svn:mergeinfo set to (toggle deleted branches)
    /branches/VBox-3.0/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h58652,​70973
    /branches/VBox-3.2/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h66309,​66318
    /branches/VBox-4.0/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h70873
    /branches/VBox-4.1/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h74233
    /branches/VBox-4.2/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetails.h91503-91504,​91506-91508,​91510,​91514-91515,​91521
    /branches/VBox-4.3/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetails.h91223
    /branches/VBox-4.3/trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetails.h91223
    /branches/dsen/gui/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h79076-79078,​79089,​79109-79110,​79112-79113,​79127-79130,​79134,​79141,​79151,​79155,​79157-79159,​79193,​79197
    /branches/dsen/gui2/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetails.h79562-79569,​79572-79573,​79578,​79581-79582,​79590-79591,​79598-79599,​79602-79603,​79605-79606,​79632,​79635,​79637,​79644
    /branches/dsen/gui3/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetails.h79645-79692
    /trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h79225,​79271
File size: 3.2 KB
Line 
1/* $Id: UIDetails.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIDetails class declaration.
4 */
5
6/*
7 * Copyright (C) 2012-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_manager_details_UIDetails_h
29#define FEQT_INCLUDED_SRC_manager_details_UIDetails_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QWidget>
36
37/* Forward declartions: */
38class QString;
39class QVBoxLayout;
40class UIDetailsModel;
41class UIDetailsView;
42class UIVirtualMachineItem;
43
44/** QWidget-based Details pane container. */
45class UIDetails : public QWidget
46{
47 Q_OBJECT;
48
49signals:
50
51 /** @name General stuff.
52 * @{ */
53 /** Notifies listeners about link click.
54 * @param strCategory Brings link category.
55 * @param strControl Brings control name.
56 * @param uId Brings machine ID. */
57 void sigLinkClicked(const QString &strCategory,
58 const QString &strControl,
59 const QUuid &uId);
60
61 /** Notifies listeners about toggling started. */
62 void sigToggleStarted();
63 /** Notifies listeners about toggling finished. */
64 void sigToggleFinished();
65 /** @} */
66
67public:
68
69 /** Constructs Details pane passing @a pParent to the base-class. */
70 UIDetails(QWidget *pParent = 0);
71
72 /** @name General stuff.
73 * @{ */
74 /** Return the Details-model instance. */
75 UIDetailsModel *model() const { return m_pDetailsModel; }
76 /** Return the Details-view instance. */
77 UIDetailsView *view() const { return m_pDetailsView; }
78
79 /** Replaces current model @a items. */
80 void setItems(const QList<UIVirtualMachineItem*> &items);
81 /** @} */
82
83private:
84
85 /** @name Prepare/Cleanup cascade.
86 * @{ */
87 /** Prepares all. */
88 void prepare();
89 /** Prepares contents. */
90 void prepareContents();
91 /** Prepares model. */
92 void prepareModel();
93 /** Prepares view. */
94 void prepareView();
95 /** Prepares connections. */
96 void prepareConnections();
97 /** Inits model. */
98 void initModel();
99 /** @} */
100
101 /** @name General stuff.
102 * @{ */
103 /** Holds the main layout instance. */
104 QVBoxLayout *m_pMainLayout;
105 /** Holds the details model instance. */
106 UIDetailsModel *m_pDetailsModel;
107 /** Holds the details view instance. */
108 UIDetailsView *m_pDetailsView;
109 /** @} */
110};
111
112#endif /* !FEQT_INCLUDED_SRC_manager_details_UIDetails_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use