Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PaletteEditorDialog Class Reference

#include <palette_editor_dialog.h>

Inheritance diagram for PaletteEditorDialog:
[legend]
Collaboration diagram for PaletteEditorDialog:
[legend]

Public Member Functions

 PaletteEditorDialog (const QString &themeDirPath, const QString &themeName, QWidget *parent=nullptr)
void loadSchemes ()

Protected Member Functions

void changeEvent (QEvent *e) override

Private Slots

void onSave ()
void onApply ()
void onReset ()
void onRevertToDefault ()
void onSchemeChanged (const QString &scheme)
void onGenerateFromAccent (const QColor &accent, int intensity)

Private Member Functions

void setupUi ()
void retranslateUi ()
void refreshChromePalettes ()
void loadScheme (const QString &scheme)
void seedAccentFromScheme (const QString &scheme)

Private Attributes

QWidget * header
QLabel * titleLabel
QLabel * editingLabel
QuickSetupPanelquickSetupPanel = nullptr
PaletteGridWidgetpaletteGrid = nullptr
QPushButton * paletteGridToggleButton = nullptr
QFrame * paletteGridSeparator = nullptr
QWidget * footer
QComboBox * schemeComboBox = nullptr
QDialogButtonBox * buttonBox = nullptr
QPushButton * resetBtn = nullptr
QPushButton * applyBtn = nullptr
QPushButton * saveBtn = nullptr
QPushButton * closeBtn = nullptr
QPushButton * revertButton = nullptr
QString themeDirPath
QString themeName
QString loadedScheme
QMap< QString, PaletteConfigworkingConfig
QMap< QString, PaletteConfigsavedConfig

Constructor & Destructor Documentation

◆ PaletteEditorDialog()

PaletteEditorDialog::PaletteEditorDialog ( const QString & themeDirPath,
const QString & themeName,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ changeEvent()

void PaletteEditorDialog::changeEvent ( QEvent * e)
overrideprotected
Here is the call graph for this function:

◆ loadScheme()

void PaletteEditorDialog::loadScheme ( const QString & scheme)
private

◆ loadSchemes()

void PaletteEditorDialog::loadSchemes ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onApply

void PaletteEditorDialog::onApply ( )
privateslot
Here is the caller graph for this function:

◆ onGenerateFromAccent

void PaletteEditorDialog::onGenerateFromAccent ( const QColor & accent,
int intensity )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onReset

void PaletteEditorDialog::onReset ( )
privateslot
Here is the caller graph for this function:

◆ onRevertToDefault

void PaletteEditorDialog::onRevertToDefault ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSave

void PaletteEditorDialog::onSave ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSchemeChanged

void PaletteEditorDialog::onSchemeChanged ( const QString & scheme)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshChromePalettes()

void PaletteEditorDialog::refreshChromePalettes ( )
private
Here is the caller graph for this function:

◆ retranslateUi()

void PaletteEditorDialog::retranslateUi ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ seedAccentFromScheme()

void PaletteEditorDialog::seedAccentFromScheme ( const QString & scheme)
private
Here is the caller graph for this function:

◆ setupUi()

void PaletteEditorDialog::setupUi ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ applyBtn

QPushButton* PaletteEditorDialog::applyBtn = nullptr
private

◆ buttonBox

QDialogButtonBox* PaletteEditorDialog::buttonBox = nullptr
private

◆ closeBtn

QPushButton* PaletteEditorDialog::closeBtn = nullptr
private

◆ editingLabel

QLabel* PaletteEditorDialog::editingLabel
private

◆ footer

QWidget* PaletteEditorDialog::footer
private

◆ header

QWidget* PaletteEditorDialog::header
private

◆ loadedScheme

QString PaletteEditorDialog::loadedScheme
private

◆ paletteGrid

PaletteGridWidget* PaletteEditorDialog::paletteGrid = nullptr
private

◆ paletteGridSeparator

QFrame* PaletteEditorDialog::paletteGridSeparator = nullptr
private

◆ paletteGridToggleButton

QPushButton* PaletteEditorDialog::paletteGridToggleButton = nullptr
private

◆ quickSetupPanel

QuickSetupPanel* PaletteEditorDialog::quickSetupPanel = nullptr
private

◆ resetBtn

QPushButton* PaletteEditorDialog::resetBtn = nullptr
private

◆ revertButton

QPushButton* PaletteEditorDialog::revertButton = nullptr
private

◆ saveBtn

QPushButton* PaletteEditorDialog::saveBtn = nullptr
private

◆ savedConfig

QMap<QString, PaletteConfig> PaletteEditorDialog::savedConfig
private

◆ schemeComboBox

QComboBox* PaletteEditorDialog::schemeComboBox = nullptr
private

◆ themeDirPath

QString PaletteEditorDialog::themeDirPath
private

◆ themeName

QString PaletteEditorDialog::themeName
private

◆ titleLabel

QLabel* PaletteEditorDialog::titleLabel
private

◆ workingConfig

QMap<QString, PaletteConfig> PaletteEditorDialog::workingConfig
private

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