SALOME style palette editor widget.
More...
#include <Style_PrefDlg.h>
Style_PrefDlg::PaletteEditor::PaletteEditor |
( |
QWidget * |
parent = 0 | ) |
|
- Parameters
-
References addColumn(), addItem(), Style_Model::BorderTop, Style_Model::LastColor, MARGIN, myAutoCheck, myContainer, myQuickButton, Style_Model::NColorRoles, Style_Model::NoRole, onAuto(), onQuick(), SPACING, and Style_Model::WindowText.
Style_PrefDlg::PaletteEditor::~PaletteEditor |
( |
| ) |
|
void Style_PrefDlg::PaletteEditor::addColumn |
( |
const QString & |
title | ) |
|
void Style_PrefDlg::PaletteEditor::addItem |
( |
int |
id | ) |
|
void Style_PrefDlg::PaletteEditor::changed |
( |
| ) |
|
|
signal |
QColor Style_PrefDlg::PaletteEditor::color |
( |
int |
id, |
|
|
QPalette::ColorGroup |
cg |
|
) |
| const |
void Style_PrefDlg::PaletteEditor::fromColor |
( |
const QColor & |
c | ) |
|
- Parameters
-
References Style_Model::BorderBottom, Style_Model::BorderTop, Style_Model::Checked, Style_Model::FieldDark, Style_Model::FieldLight, Style_Model::GridLine, Style_Model::Header, Style_Model::HighlightBorder, Style_Model::HighlightWidget, Style_Model::Lines, Style_Model::NColorRoles, Style_Model::Pointer, Style_Model::ProgressBar, Style_Model::Slider, Style_Model::TabBorderBottom, and Style_Model::TabBorderTop.
QString Style_PrefDlg::PaletteEditor::idToName |
( |
int |
id | ) |
|
|
staticprivate |
- Parameters
-
- Returns
- item title
References Style_Model::AlternateBase, Style_Model::Base, Style_Model::BorderBottom, Style_Model::BorderTop, Style_Model::BrightText, Style_Model::Button, Style_Model::ButtonText, Style_Model::Checked, Style_Model::Dark, Style_Model::FieldDark, Style_Model::FieldLight, Style_Model::GridLine, Style_Model::Header, Style_Model::Highlight, Style_Model::HighlightBorder, Style_Model::HighlightedText, Style_Model::HighlightWidget, Style_Model::Light, Style_Model::Lines, Style_Model::Link, Style_Model::LinkVisited, Style_Model::Mid, Style_Model::Midlight, Style_Model::Pointer, Style_Model::ProgressBar, Style_Model::Shadow, Style_Model::Slider, Style_Model::TabBorderBottom, Style_Model::TabBorderTop, Style_Model::Text, Style_Model::ToolTipBase, Style_Model::ToolTipText, Style_Model::Window, and Style_Model::WindowText.
bool Style_PrefDlg::PaletteEditor::isAuto |
( |
| ) |
const |
- Returns
true
if inactive/disabled palette colors should be calculated from active one
- See Also
- setAuto()
QList< int > Style_PrefDlg::PaletteEditor::items |
( |
| ) |
const |
QWidget * Style_PrefDlg::PaletteEditor::line |
( |
| ) |
|
|
private |
void Style_PrefDlg::PaletteEditor::onAuto |
( |
| ) |
|
|
privateslot |
void Style_PrefDlg::PaletteEditor::onQuick |
( |
| ) |
|
|
privateslot |
void Style_PrefDlg::PaletteEditor::setAuto |
( |
bool |
on | ) |
|
- Parameters
-
on | if true , inactive/disabled palette colors should be calculated from active one |
- See Also
- isAuto()
void Style_PrefDlg::PaletteEditor::setColor |
( |
int |
id, |
|
|
QPalette::ColorGroup |
cg, |
|
|
const QColor & |
c |
|
) |
| |
void Style_PrefDlg::PaletteEditor::setColor |
( |
int |
id, |
|
|
const QColor & |
active, |
|
|
const QColor & |
inactive = QColor() , |
|
|
const QColor & |
disabled = QColor() |
|
) |
| |
- Parameters
-
id | item identifier (Style_Model::ColorRole) |
active | color to be used with active color group (QPalette::Active) |
inactive | color to be used with inactive color group (QPalette::Inactive) |
disabled | color to be used with disabled color group (QPalette::Disabled) |
- See Also
- color()
QLabel* Style_PrefDlg::PaletteEditor::myActiveLab |
|
private |
QCheckBox* Style_PrefDlg::PaletteEditor::myAutoCheck |
|
private |
QMap<int, Btns> Style_PrefDlg::PaletteEditor::myButtons |
|
private |
QFrame* Style_PrefDlg::PaletteEditor::myContainer |
|
private |
int Style_PrefDlg::PaletteEditor::myCurrentColumn |
|
private |
int Style_PrefDlg::PaletteEditor::myCurrentRow |
|
private |
QLabel* Style_PrefDlg::PaletteEditor::myDisabledLab |
|
private |
QLabel* Style_PrefDlg::PaletteEditor::myInactiveLab |
|
private |
QPushButton* Style_PrefDlg::PaletteEditor::myQuickButton |
|
private |
The documentation for this class was generated from the following files: