List of colors.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-02-02 11:29:50 +02:00
parent 1b6408c144
commit de1c9d8a77

View File

@ -70,6 +70,8 @@ const QString VAbstractTool::AttrPSpline = QStringLiteral("pSpline");
const QString VAbstractTool::AttrAxisP1 = QStringLiteral("axisP1");
const QString VAbstractTool::AttrAxisP2 = QStringLiteral("axisP2");
const QString VAbstractTool::AttrCurve = QStringLiteral("curve");
const QString VAbstractTool::AttrLineColor = QStringLiteral("lineColor");
const QString VAbstractTool::AttrColor = QStringLiteral("color");
const QString VAbstractTool::TypeLineNone = QStringLiteral("none");
const QString VAbstractTool::TypeLineLine = QStringLiteral("hair");
@ -78,6 +80,14 @@ const QString VAbstractTool::TypeLineDotLine = QStringLiteral("dotLine");
const QString VAbstractTool::TypeLineDashDotLine = QStringLiteral("dashDotLine");
const QString VAbstractTool::TypeLineDashDotDotLine = QStringLiteral("dashDotDotLine");
const QString VAbstractTool::ColorBlack = QStringLiteral("black");
const QString VAbstractTool::ColorGreen = QStringLiteral("green");
const QString VAbstractTool::ColorBlue = QStringLiteral("blue");
const QString VAbstractTool::ColorDarkRed = QStringLiteral("darkRed");
const QString VAbstractTool::ColorDarkGreen = QStringLiteral("darkGreen");
const QString VAbstractTool::ColorDarkBlue = QStringLiteral("DarkBlue");
const QString VAbstractTool::ColorYellow = QStringLiteral("Yellow");
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief VAbstractTool container.
@ -214,6 +224,14 @@ QMap<QString, QIcon> VAbstractTool::LineStylesPics()
return map;
}
//---------------------------------------------------------------------------------------------------------------------
const QStringList VAbstractTool::Colors()
{
const QStringList colors = QStringList() << ColorBlack << ColorGreen << ColorBlue << ColorDarkRed << ColorDarkGreen
<< ColorDarkBlue << ColorYellow;
return colors;
}
//---------------------------------------------------------------------------------------------------------------------
QString VAbstractTool::getLineType() const
{
@ -290,8 +308,8 @@ void VAbstractTool::SaveOption(QSharedPointer<VGObject> &obj)
*/
const QStringList VAbstractTool::StylesList()
{
QStringList styles = QStringList() << TypeLineNone << TypeLineLine << TypeLineDashLine << TypeLineDotLine <<
TypeLineDashDotLine << TypeLineDashDotDotLine;
const QStringList styles = QStringList() << TypeLineNone << TypeLineLine << TypeLineDashLine << TypeLineDotLine
<< TypeLineDashDotLine << TypeLineDashDotDotLine;
return styles;
}