Index: sources/editor/customelementgraphicpart.cpp
===================================================================
--- sources/editor/customelementgraphicpart.cpp (révision 2656)
+++ sources/editor/customelementgraphicpart.cpp (copie de travail)
@@ -35,7 +35,7 @@
if (_lineweight == NoneWeight) css_like_styles += "none";
else if (_lineweight == ThinWeight) css_like_styles += "thin";
else if (_lineweight == NormalWeight) css_like_styles += "normal";
-
+ else if (_lineweight == BigWeight) css_like_styles += "big";
css_like_styles += ";filling:";
if (_filling == NoneFilling) css_like_styles += "none";
else if (_filling == BlackFilling) css_like_styles += "black";
@@ -82,6 +82,7 @@
if (style_value == "thin") _lineweight = ThinWeight;
else if (style_value == "normal") _lineweight = NormalWeight;
else if (style_value == "none") _lineweight = NoneWeight;
+ else if (style_value == "big") _lineweight = BigWeight;
} else if (style_name == "filling") {
if (style_value == "white") _filling = WhiteFilling;
else if (style_value == "black") _filling = BlackFilling;
@@ -132,6 +133,8 @@
if (_lineweight == NoneWeight) pen.setColor(QColor(0, 0, 0, 0));
else if (_lineweight == ThinWeight) pen.setWidth(0);
else if (_lineweight == NormalWeight) pen.setWidthF(1.0);
+ else if (_lineweight == BigWeight) pen.setWidthF(5.0);
+
// applique le remplissage
if (_filling == NoneFilling) {
Index: sources/editor/customelementgraphicpart.h
===================================================================
--- sources/editor/customelementgraphicpart.h (révision 2656)
+++ sources/editor/customelementgraphicpart.h (copie de travail)
@@ -40,7 +40,8 @@
enum LineWeight {
NormalWeight, ///< Normal line
ThinWeight, ///< Thin line
- NoneWeight ///< Invisible line
+ NoneWeight, ///< Invisible line
+ BigWeight ///< Big Line
};
/// This enum lists the various filling colors available to draw primitives.
Index: sources/editor/styleeditor.cpp
===================================================================
--- sources/editor/styleeditor.cpp (révision 2656)
+++ sources/editor/styleeditor.cpp (copie de travail)
@@ -36,6 +36,8 @@
outline_color -> addItem(tr("Rouge", "element part color"), CustomElementGraphicPart::RedColor);
outline_color -> addItem(tr("Bleu", "element part color"), CustomElementGraphicPart::BlueColor);
+
+
// style
style = new QButtonGroup(this);
style -> addButton(normal_style = new QRadioButton(tr("Normal", "element part line style")), CustomElementGraphicPart::NormalStyle);
@@ -49,7 +51,8 @@
weight -> addButton(none_weight = new QRadioButton(tr("Nulle", "element part weight")), CustomElementGraphicPart::NoneWeight);
weight -> addButton(thin_weight = new QRadioButton(tr("Fine", "element part weight")), CustomElementGraphicPart::ThinWeight);
weight -> addButton(normal_weight = new QRadioButton(tr("Normale", "element part weight")), CustomElementGraphicPart::NormalWeight);
-
+ weight -> addButton(big_weight = new QRadioButton(tr("gros", "element part weight")) , CustomElementGraphicPart::BigWeight);
+
// remplissage
filling_color = new QComboBox (this);
filling_color -> addItem(tr("Aucun", "element part filling"), CustomElementGraphicPart::NoneFilling);
@@ -91,6 +94,7 @@
weight_layout -> addWidget(none_weight);
weight_layout -> addWidget(thin_weight);
weight_layout -> addWidget(normal_weight);
+ weight_layout -> addWidget(big_weight);
weight_layout -> addStretch();
main_layout -> addLayout(weight_layout);
main_layout -> addWidget(antialiasing);
Index: sources/editor/styleeditor.h
===================================================================
--- sources/editor/styleeditor.h (révision 2656)
+++ sources/editor/styleeditor.h (copie de travail)
@@ -42,7 +42,7 @@
QVBoxLayout *main_layout;
QButtonGroup *style, *weight;
QRadioButton *black_color, *white_color, *normal_style, *dashed_style, *dashdotted_style, *dotted_style, *green_color, *red_color, *blue_color;
- QRadioButton *none_weight, *thin_weight, *normal_weight, *no_filling;
+ QRadioButton *none_weight, *thin_weight, *normal_weight, *big_weight, *no_filling;
QRadioButton *black_filling, *white_filling, *green_filling, *red_filling, *blue_filling;
QCheckBox *antialiasing;
QComboBox *filling_color, *outline_color;
Index: sources/qetgraphicsitem/customelement.cpp
===================================================================
--- sources/qetgraphicsitem/customelement.cpp (révision 2656)
+++ sources/qetgraphicsitem/customelement.cpp (copie de travail)
@@ -763,6 +763,7 @@
} else if (style_name == "line-weight") {
if (style_value == "thin") pen.setWidth(0);
else if (style_value == "normal") pen.setWidthF(1.0);
+ else if (style_value == "big") pen.setWidthF(5.0);
else if (style_value == "none") pen.setColor(QColor(0, 0, 0, 0));
} else if (style_name == "filling") {
if (style_value == "white") {