VirtualBox

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

Last change on this file was 106061, checked in by vboxsync, 3 weeks 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.6 KB
RevLine 
[70027]1/* $Id: UIFileManagerDialog.h 106061 2024-09-16 14:03:52Z vboxsync $ */
2/** @file
[76177]3 * VBox Qt GUI - UIFileManagerDialog class declaration.
[70027]4 */
5
6/*
[106061]7 * Copyright (C) 2010-2024 Oracle and/or its affiliates.
[70027]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
[70027]26 */
27
[76581]28#ifndef FEQT_INCLUDED_SRC_guestctrl_UIFileManagerDialog_h
29#define FEQT_INCLUDED_SRC_guestctrl_UIFileManagerDialog_h
[76532]30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
[70027]33
34/* Qt includes: */
35#include <QString>
[92816]36#include <QUuid>
[70027]37
38/* GUI includes: */
[70029]39#include "QIManagerDialog.h"
[70027]40
[70029]41
[70027]42/* Forward declarations: */
43class QDialogButtonBox;
44class QVBoxLayout;
[73694]45class UIActionPool;
[76177]46class UIFileManagerDialog;
[70027]47
[72039]48
[76177]49/** QIManagerDialogFactory extension used as a factory for the file manager dialog. */
50class UIFileManagerDialogFactory : public QIManagerDialogFactory
[70029]51{
52public:
[72706]53
[92814]54 UIFileManagerDialogFactory(UIActionPool *pActionPool, const QUuid &uMachineId, const QString &strMachineName);
[92630]55 UIFileManagerDialogFactory();
[73693]56
[70029]57protected:
[73693]58
[70029]59 /** Creates derived @a pDialog instance.
[75059]60 * @param pCenterWidget Passes the widget to center wrt. pCenterWidget. */
[93990]61 virtual void create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) RT_OVERRIDE;
[73693]62
[73694]63 UIActionPool *m_pActionPool;
[92814]64 QUuid m_uMachineId;
65 QString m_strMachineName;
[70029]66};
67
[76177]68/** QIManagerDialog extension providing GUI with the dialog displaying file manager releated logs. */
[104297]69class UIFileManagerDialog : public QIManagerDialog
[70027]70{
71 Q_OBJECT;
72
73public:
[70139]74
[76177]75 /** Constructs File Manager dialog.
[75059]76 * @param pCenterWidget Passes the widget reference to center according to.
77 * @param pActionPool Passes the action-pool reference.
[92814]78 * @param uMachineId Passes the machine id. */
79 UIFileManagerDialog(QWidget *pCenterWidget, UIActionPool *pActionPool, const QUuid &uMachineId, const QString &strMachineName);
[89111]80 ~UIFileManagerDialog();
[70027]81
[70029]82protected:
[70027]83
[70139]84 /** @name Prepare/cleanup cascade.
85 * @{ */
[73693]86 /** Configures all. */
[93990]87 virtual void configure() RT_OVERRIDE;
[73693]88 /** Configures central-widget. */
[93990]89 virtual void configureCentralWidget() RT_OVERRIDE;
[73693]90 /** Perform final preparations. */
[93990]91 virtual void finalize() RT_OVERRIDE;
[86231]92 /** Loads dialog setting from extradata. */
[93990]93 virtual void loadSettings() RT_OVERRIDE;
[73693]94
95 /** Saves dialog setting into extradata. */
[93990]96 virtual void saveSettings() RT_OVERRIDE;
[70139]97 /** @} */
98
[73693]99 /** @name Functions related to geometry restoration.
100 * @{ */
101 /** Returns whether the window should be maximized when geometry being restored. */
[93990]102 virtual bool shouldBeMaximized() const RT_OVERRIDE;
[73693]103 /** @} */
104
[71477]105private slots:
106
[73693]107 void sltSetCloseButtonShortCut(QKeySequence shortcut);
[104297]108 /** @name Event-handling stuff.
109 * @{ */
110 /** Handles translation event. */
111 void sltRetranslateUI();
112 /** @} */
[71477]113
[70027]114private:
[70139]115
[75268]116 void manageEscapeShortCut();
[73694]117 UIActionPool *m_pActionPool;
[92814]118 QUuid m_uMachineId;
119 QString m_strMachineName;
[70027]120};
121
[72039]122
[76581]123#endif /* !FEQT_INCLUDED_SRC_guestctrl_UIFileManagerDialog_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