|
lmms
Cross-platform music production software
|
#include <ColorChooser.h>
Public Types | |
| enum class | Palette { Default , Track , Mixer } |
Public Member Functions | |
| ColorChooser (const QColor &initial, QWidget *parent) | |
| ColorChooser (QWidget *parent) | |
| ColorChooser ()=default | |
| For getting a color without having to initialise a color dialog. | |
| void | setPalette (QVector< QColor >) |
| Set global palette via array, checking bounds. | |
| void | setPalette (Palette) |
| Set global paletter via enum. | |
| ColorChooser * | withPalette (Palette) |
| Set palette via enum, return self pointer for chaining. | |
Static Public Member Functions | |
| static QVector< QColor > | getPalette (Palette) |
| Return a certain palette. | |
Protected Member Functions | |
| void | keyReleaseEvent (QKeyEvent *event) override |
| Forward key events to the parent to prevent stuck notes when the dialog gets focus. | |
Static Private Member Functions | |
| static QVector< QColor > | defaultPalette () |
| Copy the current QColorDialog palette into an array. | |
| static QVector< QColor > | nicePalette (int) |
| Generate a nice palette, with adjustable value. | |
|
strong |
|
inline |
|
inline |
|
default |
For getting a color without having to initialise a color dialog.
|
staticprivate |
Copy the current QColorDialog palette into an array.
|
static |
Return a certain palette.
|
inlineoverrideprotected |
Forward key events to the parent to prevent stuck notes when the dialog gets focus.
|
staticprivate |
Generate a nice palette, with adjustable value.
| void lmms::gui::ColorChooser::setPalette | ( | Palette | palette | ) |
Set global paletter via enum.
| void lmms::gui::ColorChooser::setPalette | ( | QVector< QColor > | colors | ) |
Set global palette via array, checking bounds.
| ColorChooser * lmms::gui::ColorChooser::withPalette | ( | Palette | palette | ) |
Set palette via enum, return self pointer for chaining.