VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsView.h@ 103977

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

FE/Qt: Theme/palette change handling for Chooser & Details panes; This is possible since r160619.

  • 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/UIGChooserView.h58652,​70973
    /branches/VBox-3.2/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.h66309,​66318
    /branches/VBox-4.0/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.h70873
    /branches/VBox-4.1/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.h74233
    /branches/VBox-4.2/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.h91503-91504,​91506-91508,​91510,​91514-91515,​91521
    /branches/VBox-4.3/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.h91223
    /branches/VBox-4.3/trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.h91223
    /branches/dsen/gui/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.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/UIGDetailsView.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/UIGDetailsView.h79645-79692
    /trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.h79225,​79271
File size: 2.5 KB
Line 
1/* $Id: UIDetailsView.h 102477 2023-12-05 13:54:50Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIDetailsView 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_UIDetailsView_h
29#define FEQT_INCLUDED_SRC_manager_details_UIDetailsView_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "QIGraphicsView.h"
36#include "QIWithRetranslateUI.h"
37
38/* Forward declarations: */
39class UIDetails;
40
41/* Graphics details-view: */
42class UIDetailsView : public QIWithRetranslateUI<QIGraphicsView>
43{
44 Q_OBJECT;
45
46signals:
47
48 /** Notifies listeners about resize. */
49 void sigResized();
50
51public:
52
53 /** Constructs a details-view passing @a pParent to the base-class.
54 * @param pParent Brings the details container to embed into. */
55 UIDetailsView(UIDetails *pParent);
56
57 /** Returns the details reference. */
58 UIDetails *details() const { return m_pDetails; }
59
60public slots:
61
62 /** Handles minimum width @a iHint change. */
63 void sltMinimumWidthHintChanged(int iHint);
64
65protected:
66
67 /** Handles translation event. */
68 virtual void retranslateUi() RT_OVERRIDE;
69
70 /** Handles resize @a pEvent. */
71 virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE;
72
73private slots:
74
75 /** Updates palette. */
76 void sltUpdatePalette() { preparePalette(); }
77
78private:
79
80 /** Prepares all. */
81 void prepare();
82 /** Prepares this. */
83 void prepareThis();
84 /** Prepares palette. */
85 void preparePalette();
86
87 /** Updates scene rectangle. */
88 void updateSceneRect();
89
90 /** Holds the details reference. */
91 UIDetails *m_pDetails;
92
93 /** Updates scene rectangle. */
94 int m_iMinimumWidthHint;
95};
96
97#endif /* !FEQT_INCLUDED_SRC_manager_details_UIDetailsView_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