1 | /* $Id: UIFileManagerOptionsPanel.h 78010 2019-04-04 07:27:13Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIVMLogViewer class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2010-2019 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef FEQT_INCLUDED_SRC_guestctrl_UIFileManagerOptionsPanel_h
|
---|
19 | #define FEQT_INCLUDED_SRC_guestctrl_UIFileManagerOptionsPanel_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* GUI includes: */
|
---|
25 | #include "UIDialogPanel.h"
|
---|
26 |
|
---|
27 | /* Forward declarations: */
|
---|
28 | class QCheckBox;
|
---|
29 | class QLabel;
|
---|
30 | class QIToolButton;
|
---|
31 | class UIFileManagerOptions;
|
---|
32 |
|
---|
33 | /** UIDialogPanel extension to change file manager options. It directly
|
---|
34 | * modifies the options through the passed UIFileManagerOptions instance. */
|
---|
35 | class UIFileManagerOptionsPanel : public UIDialogPanel
|
---|
36 | {
|
---|
37 | Q_OBJECT;
|
---|
38 |
|
---|
39 | signals:
|
---|
40 |
|
---|
41 | void sigOptionsChanged();
|
---|
42 |
|
---|
43 | public:
|
---|
44 |
|
---|
45 | UIFileManagerOptionsPanel(QWidget *pParent, UIFileManagerOptions *pFileManagerOptions);
|
---|
46 | virtual QString panelName() const /* override */;
|
---|
47 | /** Reads the file manager options and updates the widget accordingly. This functions is typically called
|
---|
48 | * when file manager options have been changed by other means and this panel needs to adapt. */
|
---|
49 | void update();
|
---|
50 |
|
---|
51 | protected:
|
---|
52 |
|
---|
53 | virtual void prepareWidgets() /* override */;
|
---|
54 | virtual void prepareConnections() /* override */;
|
---|
55 |
|
---|
56 | /** Handles the translation event. */
|
---|
57 | void retranslateUi();
|
---|
58 |
|
---|
59 | private slots:
|
---|
60 |
|
---|
61 | void sltListDirectoryCheckBoxToogled(bool bChecked);
|
---|
62 | void sltDeleteConfirmationCheckBoxToogled(bool bChecked);
|
---|
63 | void sltHumanReabableSizesCheckBoxToogled(bool bChecked);
|
---|
64 | void sltShowHiddenObjectsCheckBoxToggled(bool bChecked);
|
---|
65 |
|
---|
66 | private:
|
---|
67 |
|
---|
68 | QCheckBox *m_pListDirectoriesOnTopCheckBox;
|
---|
69 | QCheckBox *m_pDeleteConfirmationCheckBox;
|
---|
70 | QCheckBox *m_pHumanReabableSizesCheckBox;
|
---|
71 | QCheckBox *m_pShowHiddenObjectsCheckBox;
|
---|
72 | UIFileManagerOptions *m_pFileManagerOptions;
|
---|
73 | };
|
---|
74 |
|
---|
75 | #endif /* !FEQT_INCLUDED_SRC_guestctrl_UIFileManagerOptionsPanel_h */
|
---|