![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <colorcombobox.h>


Public Member Functions | |
| ColorComboBox (QWidget *parent=0) | |
| 构造颜色下拉框类, 初始化颜色下拉框. More... | |
| void | setColor (const QColor &c) |
| 设置当前颜色. More... | |
| QColor | color () const |
| 获取当前颜色. More... | |
Static Public Member Functions | |
| static QList< QColor > | colorList () |
| 获取颜色下拉框的颜色列表. More... | |
| static QStringList | colorNames () |
| 获取颜色下拉框的颜色名称列表. More... | |
| static int | colorIndex (const QColor &c) |
| 获取颜色的索引值. More... | |
| static QColor | color (int colorIndex) |
| 获取给定索引值的颜色. More... | |
| static QColor | defaultColor (int colorIndex) |
| 获取给定索引值的颜色. More... | |
| static bool | isValidColor (const QColor &color) |
| 判断是否是一个有效的颜色. More... | |
| static int | numPredefinedColors () |
| 获取颜色下拉框内置颜色数. More... | |
| static QStringList | defaultColorNames () |
| 获取默认颜色名列表. More... | |
| static QList< QColor > | defaultColors () |
| 获取默认颜色列表. More... | |
Protected Member Functions | |
| void | init () |
| 初始化颜色下拉框. More... | |
Static Protected Attributes | |
| static const int | stColorsCount = 24 |
| static const QColor | stColors [] |
Definition at line 16 of file colorcombobox.h.
| Widgets::ColorComboBox::ColorComboBox | ( | QWidget * | parent = 0 | ) |
构造颜色下拉框类, 初始化颜色下拉框.
| parent,父窗口. |
Definition at line 38 of file colorcombobox.cpp.
References init().
| QColor Widgets::ColorComboBox::color | ( | ) | const |
|
static |
获取给定索引值的颜色.
| colorIndex,颜色的索引值. |
Definition at line 95 of file colorcombobox.cpp.
References ecvColor::black(), colorIndex(), and colorList().
|
static |
获取颜色的索引值.
| c,需要查找索引的颜色. |
Definition at line 83 of file colorcombobox.cpp.
References colorList(), and isValidColor().
Referenced by color(), defaultColor(), and setColor().
|
static |
获取颜色下拉框的颜色列表.
Definition at line 107 of file colorcombobox.cpp.
References stColors, and stColorsCount.
Referenced by color(), colorIndex(), Widgets::ColorPushButton::ColorPushButton(), init(), and isValidColor().
|
static |
获取颜色下拉框的颜色名称列表.
Definition at line 129 of file colorcombobox.cpp.
References defaultColorNames().
Referenced by Widgets::ColorPushButton::ColorPushButton(), and init().
|
static |
获取给定索引值的颜色.
| colorIndex,颜色的索引值. |
Definition at line 147 of file colorcombobox.cpp.
References ecvColor::black(), colorIndex(), and stColors.
|
static |
获取默认颜色名列表.
Definition at line 173 of file colorcombobox.cpp.
Referenced by colorNames(), and Widgets::ColorPushButton::ColorPushButton().
|
static |
获取默认颜色列表.
Definition at line 205 of file colorcombobox.cpp.
References stColors, and stColorsCount.
Referenced by Widgets::ColorPushButton::ColorPushButton().
|
protected |
初始化颜色下拉框.
Definition at line 46 of file colorcombobox.cpp.
References colorList(), and colorNames().
Referenced by ColorComboBox().
|
static |
判断是否是一个有效的颜色.
| color | 一个颜色. |
Definition at line 159 of file colorcombobox.cpp.
References color(), and colorList().
Referenced by colorIndex().
|
static |
获取颜色下拉框内置颜色数.
Definition at line 167 of file colorcombobox.cpp.
References stColorsCount.
Referenced by Widgets::ColorPushButton::ColorPushButton().
| void Widgets::ColorComboBox::setColor | ( | const QColor & | c | ) |
|
staticprotected |
Definition at line 36 of file colorcombobox.h.
Referenced by colorList(), defaultColor(), and defaultColors().
|
staticprotected |
Definition at line 35 of file colorcombobox.h.
Referenced by colorList(), defaultColors(), and numPredefinedColors().