File indexing completed on 2024-11-10 04:56:48

0001 /*
0002     SPDX-FileCopyrightText: 2019 Valerio Pilo <vpilo@coldshock.net>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KDecoration2/DecorationButton>
0010 #include <KSharedConfig>
0011 
0012 #include <QList>
0013 
0014 using DecorationButtonsList = QList<KDecoration2::DecorationButtonType>;
0015 
0016 namespace Utils
0017 {
0018 
0019 QString buttonsToString(const DecorationButtonsList &buttons);
0020 DecorationButtonsList buttonsFromString(const QString &buttons);
0021 DecorationButtonsList readDecorationButtons(const KConfigGroup &config, const QString &key, const DecorationButtonsList &defaultValue);
0022 
0023 KDecoration2::BorderSize stringToBorderSize(const QString &name);
0024 QString borderSizeToString(KDecoration2::BorderSize size);
0025 
0026 const QMap<KDecoration2::BorderSize, QString> &getBorderSizeNames();
0027 
0028 }