2020-09-16 00:35:12 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2008 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2015-2018 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2015-02-07 00:32:25 +00:00
|
|
|
|
2018-04-05 21:54:55 +01:00
|
|
|
#ifndef GUIHELPERS_H
|
2017-09-11 16:27:51 +01:00
|
|
|
#define GUIHELPERS_H
|
2008-12-27 22:12:42 +00:00
|
|
|
|
2016-01-12 00:12:49 +00:00
|
|
|
#include <fs/filesystem.h>
|
|
|
|
#include <util/capacity.h>
|
2015-06-12 13:11:29 +01:00
|
|
|
|
2018-04-05 21:54:55 +01:00
|
|
|
#include <vector>
|
|
|
|
|
2015-06-12 13:11:29 +01:00
|
|
|
class QIcon;
|
2017-09-14 20:42:43 +01:00
|
|
|
class QPoint;
|
|
|
|
class QString;
|
|
|
|
class QTreeWidget;
|
2015-06-04 01:51:56 +01:00
|
|
|
|
2016-01-06 13:56:32 +00:00
|
|
|
bool loadBackend();
|
2015-06-14 02:03:13 +01:00
|
|
|
QIcon createFileSystemColor(FileSystem::Type type, quint32 size);
|
|
|
|
Capacity::Unit preferredUnit();
|
2017-09-14 20:42:43 +01:00
|
|
|
void showColumnsContextMenu(const QPoint& p, QTreeWidget& tree);
|
2015-07-13 15:17:41 +01:00
|
|
|
namespace GuiHelpers
|
|
|
|
{
|
|
|
|
FileSystem::Type defaultFileSystem();
|
2018-04-05 21:54:55 +01:00
|
|
|
std::vector<QColor> fileSystemColorCodesFromSettings();
|
2015-06-30 20:22:13 +01:00
|
|
|
}
|
2015-06-12 13:11:29 +01:00
|
|
|
|
2008-12-27 22:12:42 +00:00
|
|
|
#endif
|