Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/chart/KReportItemChart.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | 89 | { | |||
---|---|---|---|---|---|
119 | stringkeys << "default" << "rainbow" << "subdued"; | 119 | stringkeys << "default" << "rainbow" << "subdued"; | ||
120 | strings << tr("Default") << tr("Rainbow") << tr("Subdued"); | 120 | strings << tr("Default") << tr("Rainbow") << tr("Subdued"); | ||
121 | m_colorScheme = new KProperty("chart-color-scheme", stringkeys, strings, "default", tr("Color Scheme")); | 121 | m_colorScheme = new KProperty("chart-color-scheme", stringkeys, strings, "default", tr("Color Scheme")); | ||
122 | 122 | | |||
123 | m_threeD = new KProperty("three-dimensions", QVariant(false), | 123 | m_threeD = new KProperty("three-dimensions", QVariant(false), | ||
124 | tr("3D", "Three dimensions")); | 124 | tr("3D", "Three dimensions")); | ||
125 | m_aa = new KProperty("antialiased", QVariant(false), tr("Antialiased")); | 125 | m_aa = new KProperty("antialiased", QVariant(false), tr("Antialiased")); | ||
126 | 126 | | |||
127 | m_xTitle = new KProperty("title-x-axis", QString(), tr("X Axis Title"), tr("X Axis Title")); | 127 | m_xTitle = new KProperty("title-x-axis", QString(), tr("X Axis Title")); | ||
128 | m_yTitle = new KProperty("title-y-axis", QString(), tr("Y Axis Title"), tr("Y Axis Title")); | 128 | m_yTitle = new KProperty("title-y-axis", QString(), tr("Y Axis Title")); | ||
129 | 129 | | |||
130 | m_displayLegend = new KProperty("display-legend", true, tr("Display Legend"), tr("Display Legend")); | 130 | m_displayLegend = new KProperty("display-legend", true, tr("Display Legend")); | ||
131 | 131 | | |||
132 | keys.clear(); | 132 | keys.clear(); | ||
133 | strings.clear(); | 133 | strings.clear(); | ||
134 | keys << (int)KDChartEnums::PositionNorth | 134 | keys << (int)KDChartEnums::PositionNorth | ||
135 | << (int)KDChartEnums::PositionEast | 135 | << (int)KDChartEnums::PositionEast | ||
136 | << (int)KDChartEnums::PositionSouth | 136 | << (int)KDChartEnums::PositionSouth | ||
137 | << (int)KDChartEnums::PositionWest; | 137 | << (int)KDChartEnums::PositionWest; | ||
138 | QStringList names = KDChart::Position::printableNames(); | 138 | QStringList names = KDChart::Position::printableNames(); | ||
139 | foreach (const QVariant &pos, keys) { | 139 | foreach (const QVariant &pos, keys) { | ||
140 | strings << names[pos.toInt()-1]; | 140 | strings << names[pos.toInt()-1]; | ||
141 | } | 141 | } | ||
142 | subData = new KProperty::ListData(keys, strings); | 142 | subData = new KProperty::ListData(keys, strings); | ||
143 | m_legendPosition = new KProperty("legend-position", subData, (int)KDChartEnums::PositionEast, tr("Legend Position")); | 143 | m_legendPosition = new KProperty("legend-position", subData, (int)KDChartEnums::PositionEast, tr("Legend Position")); | ||
144 | 144 | | |||
145 | keys.clear(); | 145 | keys.clear(); | ||
146 | strings.clear(); | 146 | strings.clear(); | ||
147 | keys << Qt::Horizontal << Qt::Vertical; | 147 | keys << Qt::Horizontal << Qt::Vertical; | ||
148 | strings << tr("Horizontal") << tr("Vertical"); | 148 | strings << tr("Horizontal") << tr("Vertical"); | ||
149 | subData = new KProperty::ListData(keys, strings); | 149 | subData = new KProperty::ListData(keys, strings); | ||
150 | m_legendOrientation = new KProperty("legend-orientation", subData, Qt::Vertical, tr("Legend Orientation")); | 150 | m_legendOrientation = new KProperty("legend-orientation", subData, Qt::Vertical, tr("Legend Orientation")); | ||
151 | 151 | | |||
152 | m_backgroundColor = new KProperty("background-color", Qt::white, | 152 | m_backgroundColor = new KProperty("background-color", Qt::white, | ||
153 | tr("Background Color"), tr("Background Color")); | 153 | tr("Background Color")); | ||
154 | 154 | | |||
155 | m_linkMaster = new KProperty("link-master", QString(), tr("Link Master"), | 155 | m_linkMaster = new KProperty("link-master", QString(), tr("Link Master"), | ||
156 | tr("Fields from master data source")); | 156 | tr("Fields from master data source")); | ||
157 | m_linkChild = new KProperty("link-child", QString(), tr("Link Child"), | 157 | m_linkChild = new KProperty("link-child", QString(), tr("Link Child"), | ||
158 | tr("Fields from child data source")); | 158 | tr("Fields from child data source")); | ||
159 | 159 | | |||
160 | addDefaultProperties(); | 160 | addDefaultProperties(); | ||
161 | m_set->addProperty(m_dataSource); | 161 | m_set->addProperty(m_dataSource); | ||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |