diff --git a/lang/qet_de.qm b/lang/qet_de.qm index 7136a8833..e141123a7 100644 Binary files a/lang/qet_de.qm and b/lang/qet_de.qm differ diff --git a/lang/qet_de.ts b/lang/qet_de.ts index 21caad0dd..d1907f309 100644 --- a/lang/qet_de.ts +++ b/lang/qet_de.ts @@ -1108,7 +1108,7 @@ Bemerkung: diese Optionen verhindern NICHT das automatische Nummerieren. Diagram - + Modifier la profondeur Ebene der Auswahl bearbeiten @@ -3278,17 +3278,17 @@ Texte und Zahlen sind ebenso erlaubt. Farben vom Betriebssystem verwenden - + Chemin de la collection utilisateur Pfad zur Benutzersammlung - + Chemin des cartouches utilisateur Pfad zu den Benutzer-Schriftfeldern - + Chemin de la collection commune Pfad zur QET Sammlung @@ -3544,12 +3544,22 @@ Hier unten kann der Standardwert dieses Textfeldes für Ihre eigenen Bauteile de Schaltplaneditor (hoch/runter Tasten), Schrittweite y - + + Affichage Grille + Anzeige Raster + + + + Taille du point Grille : 1 - 5 + Punktgröße Raster: 1 - 5 + + + Editor Editor - + Max. parts in Element Editor List Max. Anzahl in der Element Editor Liste @@ -3589,158 +3599,163 @@ Hier unten kann der Standardwert dieses Textfeldes für Ihre eigenen Bauteile de nicht runden - + Général configuration page title Allgemein - + Système System - + Arabe Arabisch - + Brézilien Brasilianisch - + Catalan Katalanisch - + Tchèque Tschechisch - + Allemand Deutsch - + Danois Dänisch - + Grec Grieschisch - + Anglais Englisch - + Espagnol Spanisch - + Français Französisch - + Croate Kroatisch - + Italien Italienisch - + Japonais Japanisch - + Polonais Polnisch - + Portugais Portugesisch - + Roumains Rumänisch - + Russe Russisch - + Slovène Slowenisch - + Pays-Bas Niederländisch - + Norvege Norwegisch - + Belgique-Flemish Belgien-Flandern - + Turc Türkisch - + Hongrois Ungarisch - + Mongol Mongolisch - + Ukrainien Ukrainisch - + Chinois Chinesisch - + + Suédois + Schwedisch + + + Chemin de la collection company Pfad zur Firmen-Sammlung - + Chemin des cartouches company Firmen-Schriftfelder - + To high values might lead to crashes of the application. Zu große Werte können zum Absturz der Applikation führen @@ -4909,10 +4924,10 @@ Veuillez utiliser l'éditeur avancé pour cela. PartArc - - - - + + + + Modifier un arc Bogen ändern @@ -4926,7 +4941,7 @@ Veuillez utiliser l'éditeur avancé pour cela. Dynamisches Textfeld - + Déplacer un champ texte Textfeld verschieben @@ -4934,7 +4949,7 @@ Veuillez utiliser l'éditeur avancé pour cela. PartEllipse - + Modifier un rectangle Rechteck ändern @@ -4960,17 +4975,17 @@ Veuillez utiliser l'éditeur avancé pour cela. Punkt löschen - + Modifier un polygone Polygon ändern - + Ajouter un point à un polygone Punkt einem Polygon hinzufügen - + Supprimer un point d'un polygone Punkt eines Polygons löschen @@ -4978,12 +4993,12 @@ Veuillez utiliser l'éditeur avancé pour cela. PartText - + Déplacer un texte Text verschieben - + Modifier un champ texte Textfeld ändern diff --git a/lang/qet_en.qm b/lang/qet_en.qm index 734f7d639..d6ddfa2fa 100644 Binary files a/lang/qet_en.qm and b/lang/qet_en.qm differ diff --git a/lang/qet_en.ts b/lang/qet_en.ts index 6cb7281bb..4426236a9 100644 --- a/lang/qet_en.ts +++ b/lang/qet_en.ts @@ -1105,7 +1105,7 @@ Note: these options DO NOT allow or block auto numberings, only their update pol Diagram - + Modifier la profondeur Change the depth @@ -3266,17 +3266,17 @@ that you create. Text and number inputs are Use system colors - + Chemin de la collection utilisateur User Collection Path - + Chemin des cartouches utilisateur User Title blocks Path - + Chemin de la collection commune Path of the Common Collection @@ -3531,12 +3531,22 @@ Vous pouvez spécifier ici la valeur par défaut de ce champ pour les éléments DiagramEditor (key: up / down) yGrid - + + Affichage Grille + View grid + + + + Taille du point Grille : 1 - 5 + Pointsize grid: 1 - 5 + + + Editor Editor - + Max. parts in Element Editor List Max. parts in Element Editor List @@ -3576,158 +3586,163 @@ Vous pouvez spécifier ici la valeur par défaut de ce champ pour les éléments No rounding - + Général configuration page title General - + Système System - + Arabe Arabic - + Brézilien Brazilian - + Catalan Catalan - + Tchèque Czech - + Allemand German - + Danois Danish - + Grec Greek - + Anglais English - + Espagnol Spanish - + Français French - + Croate Croatian - + Italien Italian - + Japonais Japanese - + Polonais Polish - + Portugais Portuguese - + Roumains Romanian - + Russe Russian - + Slovène Slovenian - + Pays-Bas Dutch - + Norvege Norwegian - + Belgique-Flemish Belgium-Flemish - + Turc Turkish - + Hongrois Hungarian - + Mongol Mongolian - + Ukrainien Ukrainian - + Chinois Chinese - + + Suédois + Swedish + + + Chemin de la collection company Company collection path - + Chemin des cartouches company Company title-blocks - + To high values might lead to crashes of the application. Values that are too high might cause the application to crash @@ -4896,10 +4911,10 @@ Please use the advanced editor for this. PartArc - - - - + + + + Modifier un arc Edit an arc @@ -4913,7 +4928,7 @@ Please use the advanced editor for this. Dynamic text field - + Déplacer un champ texte Move a text field @@ -4921,7 +4936,7 @@ Please use the advanced editor for this. PartEllipse - + Modifier un rectangle Change a rectangle @@ -4947,17 +4962,17 @@ Please use the advanced editor for this. Delete this point - + Modifier un polygone Change a polygon - + Ajouter un point à un polygone Add a point to a polygon - + Supprimer un point d'un polygone Delete a point from a polygon @@ -4965,12 +4980,12 @@ Please use the advanced editor for this. PartText - + Déplacer un texte Move a text - + Modifier un champ texte Edit the text field diff --git a/sources/diagram.cpp b/sources/diagram.cpp index 6474a0394..17408070e 100644 --- a/sources/diagram.cpp +++ b/sources/diagram.cpp @@ -227,6 +227,8 @@ void Diagram::drawBackground(QPainter *p, const QRectF &r) { points << QPoint(gx, gy); } } + pen.setWidth(settings.value(QStringLiteral("diagrameditor/grid_pointsize"), 1).toInt()); + p -> setPen(pen); p -> drawPoints(points); } diff --git a/sources/editor/elementview.cpp b/sources/editor/elementview.cpp index 9b2bb20b4..d3165d865 100644 --- a/sources/editor/elementview.cpp +++ b/sources/editor/elementview.cpp @@ -550,6 +550,8 @@ void ElementView::drawBackground(QPainter *p, const QRectF &r) { // draw the dot of the grid QPen pen(Qt::black); pen.setCosmetic(true); + QSettings settings; + pen.setWidth(settings.value(QStringLiteral("diagrameditor/grid_pointsize"), 1).toInt()); p -> setPen(pen); p -> setBrush(Qt::NoBrush); qreal limite_x = r.x() + r.width(); @@ -564,8 +566,8 @@ void ElementView::drawBackground(QPainter *p, const QRectF &r) { for (int gy = g_y ; gy < limite_y ; gy += drawn_y_grid) { if (draw_cross) { if (!(gx % 10) && !(gy % 10)) { - p -> drawLine(QLineF(gx - 0.25, gy, gx + 0.25, gy)); - p -> drawLine(QLineF(gx, gy - 0.25, gx, gy + 0.25)); + p -> drawLine(QLineF(gx - (pen.width()/4.0), gy, gx + (pen.width()/4.0), gy)); + p -> drawLine(QLineF(gx, gy - (pen.width()/4.0), gx, gy + (pen.width()/4.0))); } else { p -> drawPoint(gx, gy); } diff --git a/sources/ui/configpage/generalconfigurationpage.cpp b/sources/ui/configpage/generalconfigurationpage.cpp index 8f2e5f032..8ee618769 100644 --- a/sources/ui/configpage/generalconfigurationpage.cpp +++ b/sources/ui/configpage/generalconfigurationpage.cpp @@ -71,6 +71,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(QWidget *parent) : ui->DiagramEditor_yKeyGrid_sb->setValue(settings.value("diagrameditor/key_Ygrid", 10).toInt()); ui->DiagramEditor_xKeyGridFine_sb->setValue(settings.value("diagrameditor/key_fine_Xgrid", 1).toInt()); ui->DiagramEditor_yKeyGridFine_sb->setValue(settings.value("diagrameditor/key_fine_Ygrid", 1).toInt()); + ui->DiagramEditor_Grid_PointSize_sb->setValue(settings.value("diagrameditor/grid_pointsize", 1).toInt()); ui->m_use_system_color_cb->setChecked(settings.value("usesystemcolors", "true").toBool()); bool tabbed = settings.value("diagrameditor/viewmode", "tabbed") == "tabbed"; if(tabbed) @@ -237,6 +238,7 @@ void GeneralConfigurationPage::applyConf() settings.setValue("diagrameditor/key_Ygrid", ui->DiagramEditor_yKeyGrid_sb->value()); settings.setValue("diagrameditor/key_fine_Xgrid", ui->DiagramEditor_xKeyGridFine_sb->value()); settings.setValue("diagrameditor/key_fine_Ygrid", ui->DiagramEditor_yKeyGridFine_sb->value()); + settings.setValue("diagrameditor/grid_pointsize", ui->DiagramEditor_Grid_PointSize_sb->value()); //Dynamic text item settings.setValue("diagrameditor/dynamic_text_rotation", ui->m_dyn_text_rotation_sb->value()); settings.setValue("diagrameditor/dynamic_text_width", ui->m_dyn_text_width_sb->value()); diff --git a/sources/ui/configpage/generalconfigurationpage.ui b/sources/ui/configpage/generalconfigurationpage.ui index bead4ae2d..7e59c3cad 100644 --- a/sources/ui/configpage/generalconfigurationpage.ui +++ b/sources/ui/configpage/generalconfigurationpage.ui @@ -7,7 +7,7 @@ 0 0 872 - 411 + 471 @@ -17,7 +17,7 @@ - 2 + 5 @@ -868,6 +868,51 @@ Vous pouvez spécifier ici la valeur par défaut de ce champ pour les éléments + + + + Affichage Grille + + + + + + Qt::Horizontal + + + + 555 + 20 + + + + + + + + + 80 + 0 + + + + 1 + + + 5 + + + + + + + Taille du point Grille : 1 - 5 + + + + + +