File indexing completed on 2024-05-12 15:59:52

0001 /*
0002  *  SPDX-FileCopyrightText: 2019 Boudewijn Rempt <boud@valdyas.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 #ifndef KISRESOURCETYPES_H
0007 #define KISRESOURCETYPES_H
0008 
0009 #include <klocalizedstring.h>
0010 #include "kritaresources_export.h"
0011 /**
0012  * These namespaces define the type keys and sub-type keys for resource types.
0013  * The type keys correspond to folders in the resource folder, the sub-type
0014  * keys to different types that have their own resource loader instance.
0015  */
0016 namespace ResourceType {
0017     KRITARESOURCES_EXPORT extern const QString PaintOpPresets;
0018     KRITARESOURCES_EXPORT extern const QString Brushes;
0019     KRITARESOURCES_EXPORT extern const QString Gradients;
0020     KRITARESOURCES_EXPORT extern const QString Palettes;
0021     KRITARESOURCES_EXPORT extern const QString Patterns;
0022     KRITARESOURCES_EXPORT extern const QString Workspaces;
0023     KRITARESOURCES_EXPORT extern const QString Symbols;
0024     KRITARESOURCES_EXPORT extern const QString WindowLayouts;
0025     KRITARESOURCES_EXPORT extern const QString Sessions;
0026     KRITARESOURCES_EXPORT extern const QString GamutMasks;
0027     KRITARESOURCES_EXPORT extern const QString SeExprScripts;
0028     KRITARESOURCES_EXPORT extern const QString FilterEffects;
0029     KRITARESOURCES_EXPORT extern const QString TaskSets;
0030     KRITARESOURCES_EXPORT extern const QString LayerStyles;
0031 }
0032 
0033 namespace ResourceSubType {
0034     KRITARESOURCES_EXPORT extern const QString AbrBrushes;
0035     KRITARESOURCES_EXPORT extern const QString GbrBrushes;
0036     KRITARESOURCES_EXPORT extern const QString GihBrushes;
0037     KRITARESOURCES_EXPORT extern const QString SvgBrushes;
0038     KRITARESOURCES_EXPORT extern const QString PngBrushes;
0039     KRITARESOURCES_EXPORT extern const QString SegmentedGradients;
0040     KRITARESOURCES_EXPORT extern const QString StopGradients;
0041     KRITARESOURCES_EXPORT extern const QString KritaPaintOpPresets;
0042     KRITARESOURCES_EXPORT extern const QString MyPaintPaintOpPresets;
0043 }
0044 
0045 namespace ResourceName {
0046     KRITARESOURCES_EXPORT extern const KLocalizedString PaintOpPresets;
0047     KRITARESOURCES_EXPORT extern const KLocalizedString Brushes;
0048     KRITARESOURCES_EXPORT extern const KLocalizedString Gradients;
0049     KRITARESOURCES_EXPORT extern const KLocalizedString Palettes;
0050     KRITARESOURCES_EXPORT extern const KLocalizedString Patterns;
0051     KRITARESOURCES_EXPORT extern const KLocalizedString Workspaces;
0052     KRITARESOURCES_EXPORT extern const KLocalizedString Symbols;
0053     KRITARESOURCES_EXPORT extern const KLocalizedString WindowLayouts;
0054     KRITARESOURCES_EXPORT extern const KLocalizedString Sessions;
0055     KRITARESOURCES_EXPORT extern const KLocalizedString GamutMasks;
0056     KRITARESOURCES_EXPORT extern const KLocalizedString SeExprScripts;
0057     KRITARESOURCES_EXPORT extern const KLocalizedString FilterEffects;
0058     KRITARESOURCES_EXPORT extern const KLocalizedString TaskSets;
0059     KRITARESOURCES_EXPORT extern const KLocalizedString LayerStyles;
0060 
0061     KRITARESOURCES_EXPORT QString resourceTypeToName(const QString &resourceType);
0062 
0063 }
0064 
0065 
0066 
0067 #endif // KISRESOURCETYPES_H