VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOperationsPanel.h@ 100347

Last change on this file since 100347 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1/* $Id: UIFileManagerOperationsPanel.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIVMLogViewer 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_UIFileManagerOperationsPanel_h
29#define FEQT_INCLUDED_SRC_guestctrl_UIFileManagerOperationsPanel_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35# include <QUuid>
36
37/* GUI includes: */
38#include "UIGuestControlDefs.h"
39#include "UIDialogPanel.h"
40
41/* Forward declarations: */
42class CProgress;
43class QScrollArea;
44class QSpacerItem;
45class QVBoxLayout;
46
47class UIFileOperationModel;
48class UIFileOperationProgressWidget;
49class UIFileManager;
50
51
52/** UIVMLogViewerPanel extension hosting a QListWidget which in turn has a special QWidget extension
53 * to manage multiple CProgress instances. This is particulary used in monitoring file operations. */
54class UIFileManagerOperationsPanel : public UIDialogPanel
55{
56 Q_OBJECT;
57
58signals:
59
60 void sigFileOperationComplete(QUuid progressId);
61 void sigFileOperationFail(QString strErrorString, QString strSourceTableName, FileManagerLogType eLogType);
62
63public:
64
65 UIFileManagerOperationsPanel(QWidget *pParent = 0);
66 virtual QString panelName() const RT_OVERRIDE;
67 void addNewProgress(const CProgress &comProgress, const QString &strSourceTableName);
68
69protected:
70
71 /** @name Preparation specific functions.
72 * @{ */
73 virtual void prepareWidgets() RT_OVERRIDE;
74 virtual void prepareConnections() RT_OVERRIDE;
75 /** @} */
76
77 /** Handles the translation event. */
78 virtual void retranslateUi() RT_OVERRIDE;
79 virtual void contextMenuEvent(QContextMenuEvent *pEvent) RT_OVERRIDE;
80
81private slots:
82
83 void sltRemoveFinished();
84 void sltRemoveAll();
85 void sltRemoveSelected();
86
87 void sltHandleWidgetFocusIn(QWidget *pWidget);
88 void sltHandleWidgetFocusOut(QWidget *pWidget);
89 void sltScrollToBottom(int iMin, int iMax);
90
91private:
92
93 /** @name Member variables.
94 * @{ */
95 QScrollArea *m_pScrollArea;
96 QWidget *m_pContainerWidget;
97 QVBoxLayout *m_pContainerLayout;
98 QSpacerItem *m_pContainerSpaceItem;
99 QWidget *m_pWidgetInFocus;
100 QSet<QWidget*> m_widgetSet;
101 /** @} */
102};
103
104#endif /* !FEQT_INCLUDED_SRC_guestctrl_UIFileManagerOperationsPanel_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