File indexing completed on 2024-05-05 05:49:34
0001 /* 0002 SPDX-FileCopyrightText: 2008 Volker Lanz <vl@fidra.de> 0003 SPDX-FileCopyrightText: 2015-2018 Andrius Štikonas <andrius@stikonas.eu> 0004 0005 SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 #ifndef GUIHELPERS_H 0009 #define GUIHELPERS_H 0010 0011 #include <fs/filesystem.h> 0012 #include <util/capacity.h> 0013 0014 #include <vector> 0015 0016 class QIcon; 0017 class QPoint; 0018 class QString; 0019 class QTreeWidget; 0020 0021 bool loadBackend(); 0022 QIcon createFileSystemColor(FileSystem::Type type, quint32 size); 0023 Capacity::Unit preferredUnit(); 0024 void showColumnsContextMenu(const QPoint& p, QTreeWidget& tree); 0025 namespace GuiHelpers 0026 { 0027 FileSystem::Type defaultFileSystem(); 0028 std::vector<QColor> fileSystemColorCodesFromSettings(); 0029 } 0030 0031 #endif