Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShellPicker::AppearanceLibrary Class Reference

#include <PhosphorShellPicker/AppearanceLibrary.h>

Inheritance diagram for PhosphorShellPicker::AppearanceLibrary:
[legend]

Signals

void wallpapersChanged ()
void presetsChanged ()
void importedChanged ()
void errorChanged ()
void busyChanged ()

Public Member Functions

 AppearanceLibrary (PhosphorTheme::AppearanceStore *store, const QString &directory, QObject *parent=nullptr)
QVariantList wallpapers () const
QVariantList presets () const
QVariantMap imported () const
QString error () const
bool busy () const
QStringList fonts () const
void rescan ()
QVariantMap wallpaper (const QString &path) const
void chooseWallpaper (const QString &path, const QString &screen, const QString &fit)
void importImages (const QList< QUrl > &urls)
void cancel ()
bool savePreset (const QString &name, bool wallpaper, bool bar)
bool removePreset (const QString &id)
bool inspectImport (const QUrl &file)
bool previewPreset (const QString &id, bool wallpaper, bool bar)
bool saveImported (const QString &name)
bool exportPreset (const QString &id, const QUrl &file)

Static Public Member Functions

static void setSingletonDirectory (const QString &directory)
static QString singletonDirectory ()
static AppearanceLibrary * create (QQmlEngine *, QJSEngine *)
static QVariantMap inspectImage (const QString &path)

Constructor & Destructor Documentation

◆ AppearanceLibrary()

PhosphorShellPicker::AppearanceLibrary::AppearanceLibrary ( PhosphorTheme::AppearanceStore * store,
const QString & directory,
QObject * parent = nullptr )

Member Function Documentation

◆ busy()

bool PhosphorShellPicker::AppearanceLibrary::busy ( ) const
inline

◆ busyChanged

void PhosphorShellPicker::AppearanceLibrary::busyChanged ( )
signal

◆ cancel()

void PhosphorShellPicker::AppearanceLibrary::cancel ( )

◆ chooseWallpaper()

void PhosphorShellPicker::AppearanceLibrary::chooseWallpaper ( const QString & path,
const QString & screen,
const QString & fit )

◆ create()

AppearanceLibrary * PhosphorShellPicker::AppearanceLibrary::create ( QQmlEngine * ,
QJSEngine *  )
static

◆ error()

QString PhosphorShellPicker::AppearanceLibrary::error ( ) const
inline

◆ errorChanged

void PhosphorShellPicker::AppearanceLibrary::errorChanged ( )
signal

◆ exportPreset()

bool PhosphorShellPicker::AppearanceLibrary::exportPreset ( const QString & id,
const QUrl & file )

◆ fonts()

QStringList PhosphorShellPicker::AppearanceLibrary::fonts ( ) const

◆ imported()

QVariantMap PhosphorShellPicker::AppearanceLibrary::imported ( ) const
inline

◆ importedChanged

void PhosphorShellPicker::AppearanceLibrary::importedChanged ( )
signal

◆ importImages()

void PhosphorShellPicker::AppearanceLibrary::importImages ( const QList< QUrl > & urls)

◆ inspectImage()

QVariantMap PhosphorShellPicker::AppearanceLibrary::inspectImage ( const QString & path)
static

◆ inspectImport()

bool PhosphorShellPicker::AppearanceLibrary::inspectImport ( const QUrl & file)

◆ presets()

QVariantList PhosphorShellPicker::AppearanceLibrary::presets ( ) const

◆ presetsChanged

void PhosphorShellPicker::AppearanceLibrary::presetsChanged ( )
signal

◆ previewPreset()

bool PhosphorShellPicker::AppearanceLibrary::previewPreset ( const QString & id,
bool wallpaper,
bool bar )

◆ removePreset()

bool PhosphorShellPicker::AppearanceLibrary::removePreset ( const QString & id)

◆ rescan()

void PhosphorShellPicker::AppearanceLibrary::rescan ( )

◆ saveImported()

bool PhosphorShellPicker::AppearanceLibrary::saveImported ( const QString & name)

◆ savePreset()

bool PhosphorShellPicker::AppearanceLibrary::savePreset ( const QString & name,
bool wallpaper,
bool bar )

◆ setSingletonDirectory()

void PhosphorShellPicker::AppearanceLibrary::setSingletonDirectory ( const QString & directory)
static

◆ singletonDirectory()

QString PhosphorShellPicker::AppearanceLibrary::singletonDirectory ( )
static

◆ wallpaper()

QVariantMap PhosphorShellPicker::AppearanceLibrary::wallpaper ( const QString & path) const

◆ wallpapers()

QVariantList PhosphorShellPicker::AppearanceLibrary::wallpapers ( ) const
inline

◆ wallpapersChanged

void PhosphorShellPicker::AppearanceLibrary::wallpapersChanged ( )
signal

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