VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOptionsPanel.h@ 82781

Last change on this file since 82781 was 78010, checked in by vboxsync, 5 years ago

FE/Qt: bugref:6699. Reimplementing the bread crumbs widget.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
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: */
28class QCheckBox;
29class QLabel;
30class QIToolButton;
31class UIFileManagerOptions;
32
33/** UIDialogPanel extension to change file manager options. It directly
34 * modifies the options through the passed UIFileManagerOptions instance. */
35class UIFileManagerOptionsPanel : public UIDialogPanel
36{
37 Q_OBJECT;
38
39signals:
40
41 void sigOptionsChanged();
42
43public:
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
51protected:
52
53 virtual void prepareWidgets() /* override */;
54 virtual void prepareConnections() /* override */;
55
56 /** Handles the translation event. */
57 void retranslateUi();
58
59private slots:
60
61 void sltListDirectoryCheckBoxToogled(bool bChecked);
62 void sltDeleteConfirmationCheckBoxToogled(bool bChecked);
63 void sltHumanReabableSizesCheckBoxToogled(bool bChecked);
64 void sltShowHiddenObjectsCheckBoxToggled(bool bChecked);
65
66private:
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 */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use