VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOptionsPanel.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: 2.6 KB
Line 
1/* $Id: UIFileManagerOptionsPanel.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_UIFileManagerOptionsPanel_h
29#define FEQT_INCLUDED_SRC_guestctrl_UIFileManagerOptionsPanel_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "UIDialogPanel.h"
36
37/* Forward declarations: */
38class QCheckBox;
39class QLabel;
40class QIToolButton;
41class UIFileManagerOptions;
42
43/** UIDialogPanel extension to change file manager options. It directly
44 * modifies the options through the passed UIFileManagerOptions instance. */
45class UIFileManagerOptionsPanel : public UIDialogPanel
46{
47 Q_OBJECT;
48
49signals:
50
51 void sigOptionsChanged();
52
53public:
54
55 UIFileManagerOptionsPanel(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions);
56 virtual QString panelName() const RT_OVERRIDE;
57 /** Reads the file manager options and updates the widget accordingly. This functions is typically called
58 * when file manager options have been changed by other means and this panel needs to adapt. */
59 void update();
60
61protected:
62
63 virtual void prepareWidgets() RT_OVERRIDE;
64 virtual void prepareConnections() RT_OVERRIDE;
65
66 /** Handles the translation event. */
67 void retranslateUi();
68
69private slots:
70
71 void sltListDirectoryCheckBoxToogled(bool bChecked);
72 void sltDeleteConfirmationCheckBoxToogled(bool bChecked);
73 void sltHumanReabableSizesCheckBoxToogled(bool bChecked);
74 void sltShowHiddenObjectsCheckBoxToggled(bool bChecked);
75
76private:
77
78 QCheckBox *m_pListDirectoriesOnTopCheckBox;
79 QCheckBox *m_pDeleteConfirmationCheckBox;
80 QCheckBox *m_pHumanReabableSizesCheckBox;
81 QCheckBox *m_pShowHiddenObjectsCheckBox;
82 UIFileManagerOptions *m_pFileManagerOptions;
83};
84
85#endif /* !FEQT_INCLUDED_SRC_guestctrl_UIFileManagerOptionsPanel_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