Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
oclero::qlementine::ThemeEditorWidget Class Reference

A widget for editing themes. More...

#include <theme_editor.h>

Inheritance diagram for oclero::qlementine::ThemeEditorWidget:

Classes

struct  Impl

Signals

void themeChanged (const oclero::qlementine::Theme &theme)
 Emitted when the theme is changed.
void themeSaved (const QString &path, const oclero::qlementine::Theme &theme)
 Emitted when a theme is saved.
void themeLoaded (const QString &path, const oclero::qlementine::Theme &theme)
 Emitted when a theme is loaded.

Public Member Functions

 ThemeEditorWidget (QWidget *parent=nullptr)
 Constructs a new ThemeEditorWidget.
 ~ThemeEditorWidget () override
 Destroys the ThemeEditorWidget.
const Theme & theme () const
 Gets the current theme.
void setTheme (const Theme &theme)
 Sets a new theme.
void setDefaultPath (const QString &savePath)
 Sets the default save path for themes.

Detailed Description

A widget for editing themes.

Constructor & Destructor Documentation

◆ ThemeEditorWidget()

oclero::qlementine::ThemeEditorWidget::ThemeEditorWidget ( QWidget * parent = nullptr)
explicit

Constructs a new ThemeEditorWidget.

Parameters
parentThe parent widget.

Member Function Documentation

◆ setDefaultPath()

void oclero::qlementine::ThemeEditorWidget::setDefaultPath ( const QString & savePath)

Sets the default save path for themes.

Parameters
savePathThe default save path.

◆ setTheme()

void oclero::qlementine::ThemeEditorWidget::setTheme ( const Theme & theme)

Sets a new theme.

Parameters
themeThe new theme to set.

◆ theme()

const Theme & oclero::qlementine::ThemeEditorWidget::theme ( ) const

Gets the current theme.

Returns
const Theme& The current theme.

◆ themeChanged

void oclero::qlementine::ThemeEditorWidget::themeChanged ( const oclero::qlementine::Theme & theme)
signal

Emitted when the theme is changed.

Parameters
themeThe new theme.

◆ themeLoaded

void oclero::qlementine::ThemeEditorWidget::themeLoaded ( const QString & path,
const oclero::qlementine::Theme & theme )
signal

Emitted when a theme is loaded.

Parameters
pathThe load path.
themeThe loaded theme.

◆ themeSaved

void oclero::qlementine::ThemeEditorWidget::themeSaved ( const QString & path,
const oclero::qlementine::Theme & theme )
signal

Emitted when a theme is saved.

Parameters
pathThe save path.
themeThe saved theme.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/widgets/theme_editor.h
  • /__w/maki/maki/app/widgets/theme_editor.cpp