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: */
|
---|
38 | class QCheckBox;
|
---|
39 | class QLabel;
|
---|
40 | class QIToolButton;
|
---|
41 | class UIFileManagerOptions;
|
---|
42 |
|
---|
43 | /** UIDialogPanel extension to change file manager options. It directly
|
---|
44 | * modifies the options through the passed UIFileManagerOptions instance. */
|
---|
45 | class UIFileManagerOptionsPanel : public UIDialogPanel
|
---|
46 | {
|
---|
47 | Q_OBJECT;
|
---|
48 |
|
---|
49 | signals:
|
---|
50 |
|
---|
51 | void sigOptionsChanged();
|
---|
52 |
|
---|
53 | public:
|
---|
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 |
|
---|
61 | protected:
|
---|
62 |
|
---|
63 | virtual void prepareWidgets() RT_OVERRIDE;
|
---|
64 | virtual void prepareConnections() RT_OVERRIDE;
|
---|
65 |
|
---|
66 | /** Handles the translation event. */
|
---|
67 | void retranslateUi();
|
---|
68 |
|
---|
69 | private slots:
|
---|
70 |
|
---|
71 | void sltListDirectoryCheckBoxToogled(bool bChecked);
|
---|
72 | void sltDeleteConfirmationCheckBoxToogled(bool bChecked);
|
---|
73 | void sltHumanReabableSizesCheckBoxToogled(bool bChecked);
|
---|
74 | void sltShowHiddenObjectsCheckBoxToggled(bool bChecked);
|
---|
75 |
|
---|
76 | private:
|
---|
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 */
|
---|