Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGtk3Json Class Reference

#include <qgtk3json_p.h>

+ Collaboration diagram for QGtk3Json:

Static Public Member Functions

static QLatin1String fromPalette (QPlatformTheme::Palette palette)
 
static QLatin1String fromGtkState (GtkStateFlags type)
 
static QLatin1String fromColor (const QColor &Color)
 
static QLatin1String fromColorRole (QPalette::ColorRole role)
 
static QLatin1String fromColorGroup (QPalette::ColorGroup group)
 
static QLatin1String fromGdkSource (QGtk3Interface::QGtkColorSource source)
 
static QLatin1String fromSourceType (QGtk3Storage::SourceType sourceType)
 
static QLatin1String fromWidgetType (QGtk3Interface::QGtkWidget widgetType)
 
static QLatin1String fromColorScheme (Qt::ColorScheme colorScheme)
 
static QPlatformTheme::Palette toPalette (const QString &palette)
 
static GtkStateFlags toGtkState (const QString &type)
 
static QColor toColor (const QString &Color)
 
static QPalette::ColorRole toColorRole (const QString &role)
 
static QPalette::ColorGroup toColorGroup (const QString &group)
 
static QGtk3Interface::QGtkColorSource toGdkSource (const QString &source)
 
static QGtk3Storage::SourceType toSourceType (const QString &sourceType)
 
static QGtk3Interface::QGtkWidget toWidgetType (const QString &widgetType)
 
static Qt::ColorScheme toColorScheme (const QString &colorScheme)
 
static bool save (const QGtk3Storage::PaletteMap &map, const QString &fileName, QJsonDocument::JsonFormat format=QJsonDocument::Indented)
 
static const QJsonDocument save (const QGtk3Storage::PaletteMap &map)
 
static bool load (QGtk3Storage::PaletteMap &map, const QString &fileName)
 
static bool load (QGtk3Storage::PaletteMap &map, const QJsonDocument &doc)
 

Static Public Attributes

static constexpr QLatin1StringView cePalettes = "QtGtk3Palettes"_L1
 
static constexpr QLatin1StringView cePalette = "PaletteType"_L1
 
static constexpr QLatin1StringView ceGtkState = "GtkStateType"_L1
 
static constexpr QLatin1StringView ceGtkWidget = "GtkWidgetType"_L1
 
static constexpr QLatin1StringView ceColor = "Color"_L1
 
static constexpr QLatin1StringView ceColorRole = "ColorRole"_L1
 
static constexpr QLatin1StringView ceColorGroup = "ColorGroup"_L1
 
static constexpr QLatin1StringView ceGdkSource = "GdkSource"_L1
 
static constexpr QLatin1StringView ceSourceType = "SourceType"_L1
 
static constexpr QLatin1StringView ceLighter = "Lighter"_L1
 
static constexpr QLatin1StringView ceRed = "DeltaRed"_L1
 
static constexpr QLatin1StringView ceGreen = "DeltaGreen"_L1
 
static constexpr QLatin1StringView ceBlue = "DeltaBlue"_L1
 
static constexpr QLatin1StringView ceWidth = "Width"_L1
 
static constexpr QLatin1StringView ceHeight = "Height"_L1
 
static constexpr QLatin1StringView ceBrush = "FixedBrush"_L1
 
static constexpr QLatin1StringView ceData = "SourceData"_L1
 
static constexpr QLatin1StringView ceBrushes = "Brushes"_L1
 
static constexpr QLatin1StringView ceColorScheme = "ColorScheme"_L1
 

Detailed Description

Definition at line 37 of file qgtk3json_p.h.

Member Function Documentation

◆ fromColor()

static QLatin1String QGtk3Json::fromColor ( const QColor & Color)
static

◆ fromColorGroup()

QLatin1String QGtk3Json::fromColorGroup ( QPalette::ColorGroup group)
static

Definition at line 41 of file qgtk3json.cpp.

Referenced by save().

+ Here is the caller graph for this function:

◆ fromColorRole()

QLatin1String QGtk3Json::fromColorRole ( QPalette::ColorRole role)
static

Definition at line 36 of file qgtk3json.cpp.

Referenced by save().

+ Here is the caller graph for this function:

◆ fromColorScheme()

QLatin1String QGtk3Json::fromColorScheme ( Qt::ColorScheme colorScheme)
static

Definition at line 56 of file qgtk3json.cpp.

References app.

Referenced by save().

+ Here is the caller graph for this function:

◆ fromGdkSource()

QLatin1String QGtk3Json::fromGdkSource ( QGtk3Interface::QGtkColorSource source)
static

Definition at line 46 of file qgtk3json.cpp.

Referenced by save().

+ Here is the caller graph for this function:

◆ fromGtkState()

QLatin1String QGtk3Json::fromGtkState ( GtkStateFlags type)
static

Definition at line 26 of file qgtk3json.cpp.

References QGtk3Interface::fromGtkState(), and state.

Referenced by save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromPalette()

QT_BEGIN_NAMESPACE QLatin1String QGtk3Json::fromPalette ( QPlatformTheme::Palette palette)
static

Definition at line 21 of file qgtk3json.cpp.

References palette.

Referenced by QGtk3Storage::palette(), and save().

+ Here is the caller graph for this function:

◆ fromSourceType()

QLatin1String QGtk3Json::fromSourceType ( QGtk3Storage::SourceType sourceType)
static

Definition at line 104 of file qgtk3json.cpp.

Referenced by save().

+ Here is the caller graph for this function:

◆ fromWidgetType()

QLatin1String QGtk3Json::fromWidgetType ( QGtk3Interface::QGtkWidget widgetType)
static

Definition at line 51 of file qgtk3json.cpp.

Referenced by save().

+ Here is the caller graph for this function:

◆ load() [1/2]

◆ load() [2/2]

bool QGtk3Json::load ( QGtk3Storage::PaletteMap & map,
const QString & fileName )
static

Definition at line 232 of file qgtk3json.cpp.

References QJsonParseError::error, QJsonParseError::errorString(), file, fileName, QJsonDocument::fromJson(), load(), map, QJsonParseError::NoError, QFile::open(), Q_LIKELY, qCWarning, qInfo, qWarning, QIODevice::readAll(), and QIODeviceBase::ReadOnly.

Referenced by load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save() [1/2]

◆ save() [2/2]

bool QGtk3Json::save ( const QGtk3Storage::PaletteMap & map,
const QString & fileName,
QJsonDocument::JsonFormat format = QJsonDocument::Indented )
static

Definition at line 121 of file qgtk3json.cpp.

References QFileDevice::close(), file, fileName, QJsonDocument::isEmpty(), map, QFile::open(), qInfo, qWarning, save(), QJsonDocument::toJson(), QIODevice::write(), and QIODeviceBase::WriteOnly.

Referenced by save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toColor()

static QColor QGtk3Json::toColor ( const QString & Color)
static

◆ toColorGroup()

QPalette::ColorGroup QGtk3Json::toColorGroup ( const QString & group)
static

Definition at line 94 of file qgtk3json.cpp.

References CONVERT.

Referenced by load().

+ Here is the caller graph for this function:

◆ toColorRole()

QPalette::ColorRole QGtk3Json::toColorRole ( const QString & role)
static

Definition at line 89 of file qgtk3json.cpp.

References CONVERT.

Referenced by load().

+ Here is the caller graph for this function:

◆ toColorScheme()

Qt::ColorScheme QGtk3Json::toColorScheme ( const QString & colorScheme)
static

Definition at line 66 of file qgtk3json.cpp.

References CONVERT, and Unknown.

Referenced by load().

+ Here is the caller graph for this function:

◆ toGdkSource()

QGtk3Interface::QGtkColorSource QGtk3Json::toGdkSource ( const QString & source)
static

Definition at line 99 of file qgtk3json.cpp.

References CONVERT.

Referenced by load().

+ Here is the caller graph for this function:

◆ toGtkState()

GtkStateFlags QGtk3Json::toGtkState ( const QString & type)
static

Definition at line 76 of file qgtk3json.cpp.

References i, and QGtk3Interface::toGtkState().

Referenced by load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toPalette()

QPlatformTheme::Palette QGtk3Json::toPalette ( const QString & palette)
static

Definition at line 71 of file qgtk3json.cpp.

References CONVERT, and palette.

◆ toSourceType()

QGtk3Storage::SourceType QGtk3Json::toSourceType ( const QString & sourceType)
static

Definition at line 109 of file qgtk3json.cpp.

References CONVERT, and Invalid.

Referenced by load().

+ Here is the caller graph for this function:

◆ toWidgetType()

QGtk3Interface::QGtkWidget QGtk3Json::toWidgetType ( const QString & widgetType)
static

Definition at line 114 of file qgtk3json.cpp.

References CONVERT.

Referenced by load().

+ Here is the caller graph for this function:

Member Data Documentation

◆ ceBlue

constexpr QLatin1StringView QGtk3Json::ceBlue = "DeltaBlue"_L1
staticconstexpr

Definition at line 79 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceBrush

constexpr QLatin1StringView QGtk3Json::ceBrush = "FixedBrush"_L1
staticconstexpr

Definition at line 82 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceBrushes

constexpr QLatin1StringView QGtk3Json::ceBrushes = "Brushes"_L1
staticconstexpr

Definition at line 84 of file qgtk3json_p.h.

◆ ceColor

constexpr QLatin1StringView QGtk3Json::ceColor = "Color"_L1
staticconstexpr

Definition at line 71 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceColorGroup

constexpr QLatin1StringView QGtk3Json::ceColorGroup = "ColorGroup"_L1
staticconstexpr

Definition at line 73 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceColorRole

constexpr QLatin1StringView QGtk3Json::ceColorRole = "ColorRole"_L1
staticconstexpr

Definition at line 72 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceColorScheme

constexpr QLatin1StringView QGtk3Json::ceColorScheme = "ColorScheme"_L1
staticconstexpr

Definition at line 85 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceData

constexpr QLatin1StringView QGtk3Json::ceData = "SourceData"_L1
staticconstexpr

Definition at line 83 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceGdkSource

constexpr QLatin1StringView QGtk3Json::ceGdkSource = "GdkSource"_L1
staticconstexpr

Definition at line 74 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceGreen

constexpr QLatin1StringView QGtk3Json::ceGreen = "DeltaGreen"_L1
staticconstexpr

Definition at line 78 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceGtkState

constexpr QLatin1StringView QGtk3Json::ceGtkState = "GtkStateType"_L1
staticconstexpr

Definition at line 69 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceGtkWidget

constexpr QLatin1StringView QGtk3Json::ceGtkWidget = "GtkWidgetType"_L1
staticconstexpr

Definition at line 70 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceHeight

constexpr QLatin1StringView QGtk3Json::ceHeight = "Height"_L1
staticconstexpr

Definition at line 81 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceLighter

constexpr QLatin1StringView QGtk3Json::ceLighter = "Lighter"_L1
staticconstexpr

Definition at line 76 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ cePalette

constexpr QLatin1StringView QGtk3Json::cePalette = "PaletteType"_L1
staticconstexpr

Definition at line 68 of file qgtk3json_p.h.

◆ cePalettes

constexpr QLatin1StringView QGtk3Json::cePalettes = "QtGtk3Palettes"_L1
staticconstexpr

Definition at line 67 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceRed

constexpr QLatin1StringView QGtk3Json::ceRed = "DeltaRed"_L1
staticconstexpr

Definition at line 77 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceSourceType

constexpr QLatin1StringView QGtk3Json::ceSourceType = "SourceType"_L1
staticconstexpr

Definition at line 75 of file qgtk3json_p.h.

Referenced by load(), and save().

◆ ceWidth

constexpr QLatin1StringView QGtk3Json::ceWidth = "Width"_L1
staticconstexpr

Definition at line 80 of file qgtk3json_p.h.

Referenced by load(), and save().


The documentation for this class was generated from the following files: