VirtualBox

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

Last change on this file was 103020, checked in by vboxsync, 4 months ago

FE/Qt: bugref:10501: Missing part fix for r161204; Passing cloud items through Global tool pone.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
RevLine 
[55401]1/* $Id: UIToolPaneGlobal.h 103020 2024-01-24 12:44:48Z vboxsync $ */
[382]2/** @file
[73424]3 * VBox Qt GUI - UIToolPaneGlobal class declaration.
[382]4 */
5
6/*
[98103]7 * Copyright (C) 2017-2023 Oracle and/or its affiliates.
[382]8 *
[96407]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
[382]26 */
27
[76581]28#ifndef FEQT_INCLUDED_SRC_manager_UIToolPaneGlobal_h
29#define FEQT_INCLUDED_SRC_manager_UIToolPaneGlobal_h
[76532]30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
[382]33
[44318]34/* Qt includes: */
35#include <QWidget>
36
[68235]37/* GUI includes: */
[68304]38#include "UIExtraDataDefs.h"
[68235]39
[44318]40/* Forward declarations: */
[67068]41class QHBoxLayout;
[67091]42class QStackedLayout;
[99389]43class QUuid;
[67068]44class QVBoxLayout;
[68175]45class UIActionPool;
[74870]46class UICloudProfileManagerWidget;
[87354]47class UIExtensionPackManagerWidget;
[68200]48class UIMediumManagerWidget;
[86997]49class UINetworkManagerWidget;
[88082]50class UIVMActivityOverviewWidget;
[103020]51class UIVirtualMachineItemCloud;
[74870]52class UIWelcomePane;
[67068]53class CMachine;
[382]54
[63950]55
[67068]56/** QWidget subclass representing container for tool panes. */
[74561]57class UIToolPaneGlobal : public QWidget
[382]58{
[9729]59 Q_OBJECT;
[382]60
[75054]61signals:
62
[99390]63 /** Notifies listeners about creation procedure was requested. */
64 void sigCreateMedium();
[99389]65 /** Notifies listeners about copy procedure was requested for medium with specified @a uMediumId. */
66 void sigCopyMedium(const QUuid &uMediumId);
67
[89094]68 /** Notifies listeners about request to switch to Activity pane of machine with @a uMachineId. */
69 void sigSwitchToMachineActivityPane(const QUuid &uMachineId);
[85508]70
[382]71public:
72
[67068]73 /** Constructs tools pane passing @a pParent to the base-class. */
[73424]74 UIToolPaneGlobal(UIActionPool *pActionPool, QWidget *pParent = 0);
[67091]75 /** Destructs tools pane. */
[93990]76 virtual ~UIToolPaneGlobal() RT_OVERRIDE;
[12695]77
[83482]78 /** Defines whether this pane is @a fActive. */
79 void setActive(bool fActive);
80 /** Returns whether this pane is active. */
81 bool active() const { return m_fActive; }
82
[68221]83 /** Returns type of tool currently opened. */
[75016]84 UIToolType currentTool() const;
[67110]85 /** Returns whether tool of particular @a enmType is opened. */
[75016]86 bool isToolOpened(UIToolType enmType) const;
[68175]87 /** Activates tool of passed @a enmType, creates new one if necessary. */
[75016]88 void openTool(UIToolType enmType);
[68175]89 /** Closes tool of passed @a enmType, deletes one if exists. */
[75016]90 void closeTool(UIToolType enmType);
[87022]91 /** Returns the help keyword of the current tool's widget. */
92 QString currentHelpKeyword() const;
[67110]93
[103020]94 /** Defines the @a cloudItems. */
95 void setCloudMachineItems(const QList<UIVirtualMachineItemCloud*> &cloudItems);
96
[44318]97private:
[382]98
[67068]99 /** Prepares all. */
100 void prepare();
[67091]101 /** Prepares stacked-layout. */
102 void prepareStackedLayout();
103 /** Cleanups all. */
104 void cleanup();
[67068]105
[83482]106 /** Handles token change. */
107 void handleTokenChange();
108
[68175]109 /** Holds the action pool reference. */
110 UIActionPool *m_pActionPool;
[67068]111
[67091]112 /** Holds the stacked-layout instance. */
[87354]113 QStackedLayout *m_pLayout;
[74561]114 /** Holds the Welcome pane instance. */
[87354]115 UIWelcomePane *m_pPaneWelcome;
116 /** Holds the Extension Pack Manager instance. */
117 UIExtensionPackManagerWidget *m_pPaneExtensions;
[68200]118 /** Holds the Virtual Media Manager instance. */
[87354]119 UIMediumManagerWidget *m_pPaneMedia;
[87342]120 /** Holds the Network Manager instance. */
[87354]121 UINetworkManagerWidget *m_pPaneNetwork;
[74870]122 /** Holds the Cloud Profile Manager instance. */
[87354]123 UICloudProfileManagerWidget *m_pPaneCloud;
[88173]124 /** Holds the VM Activity Overview instance. */
[88089]125 UIVMActivityOverviewWidget *m_pPaneVMActivityOverview;
[83482]126
127 /** Holds whether this pane is active. */
128 bool m_fActive;
[103020]129
130 /** Holds the cache of passed cloud machine items. */
131 QList<UIVirtualMachineItemCloud*> m_cloudItems;
[382]132};
133
[76581]134#endif /* !FEQT_INCLUDED_SRC_manager_UIToolPaneGlobal_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use