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

#include <palette_grid_widget.h>

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

Public Member Functions

 PaletteGridWidget (QWidget *parent=nullptr)
void loadPalette (const PaletteConfig &cfg)
PaletteConfig currentPaletteConfig () const

Private Member Functions

void buildGrid (QWidget *host)
void changeEvent (QEvent *e)
void refreshChromePalettes ()

Private Attributes

QMap< QPalette::ColorGroup, QMap< QPalette::ColorRole, ColorButton * > > colorButtons
QScrollArea * scroll
QWidget * gridHost
QVBoxLayout * layout
QVector< QLabel * > headerLabels
QVector< QWidget * > rowShadeWidgets

Constructor & Destructor Documentation

◆ PaletteGridWidget()

PaletteGridWidget::PaletteGridWidget ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ buildGrid()

void PaletteGridWidget::buildGrid ( QWidget * host)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeEvent()

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

◆ currentPaletteConfig()

PaletteConfig PaletteGridWidget::currentPaletteConfig ( ) const
Here is the call graph for this function:

◆ loadPalette()

void PaletteGridWidget::loadPalette ( const PaletteConfig & cfg)
Here is the call graph for this function:

◆ refreshChromePalettes()

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

Member Data Documentation

◆ colorButtons

QMap<QPalette::ColorGroup, QMap<QPalette::ColorRole, ColorButton *> > PaletteGridWidget::colorButtons
private

◆ gridHost

QWidget* PaletteGridWidget::gridHost
private

◆ headerLabels

QVector<QLabel *> PaletteGridWidget::headerLabels
private

◆ layout

QVBoxLayout* PaletteGridWidget::layout
private

◆ rowShadeWidgets

QVector<QWidget *> PaletteGridWidget::rowShadeWidgets
private

◆ scroll

QScrollArea* PaletteGridWidget::scroll
private

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