Hi Raul : have you idea to generate with your plugin Terminal Block Fuse Holder (Fused Terminal Block with 48V Indication), I have a lot in my new project, the problem is you understand i can't put my terminal fuser in QET property : terminal, but in a simple element function.
At this time I need to edit manualhy all terminal blocks for adding this terminal fuse.

BTW, you could add function to generate separate block ? (27)

http://enigmaimage.com/a/2017/12/terminal-bus-footprint-din-wiring-diagram-symbols-88-diagrams-electrical-automotive-numbers-understanding-diagrams-plug-how-to-wire-rail-blocks-tutorial-colors-duct-5-pin-connector.jpg

4,602

(554 replies, posted in News)

Revision: 5194
Author:   scorpio810
Date:     2017-12-30 00:13:35 +0100 (Sat, 30 Dec 2017)
Log Message:
-----------
Basic shape add new CustomDashLine style with
Dash Pattern (<< 10 << 10 );

Les imprimantes même laser ont souvent bien du mal a restituer fidèlement les traits des basic shapes surtout avec des tailles de pen inférieure à 1px, les tirets par défaut se transformant en lignes solides ... rendant les schémas bien moins lisibles !
https://download.qelectrotech.org/qet/forum_img/basic-shapes_customDashLine.png
https://download.qelectrotech.org/qet/forum_img/basic-shapes_customDashLine1.png

Bonjour,

le format natif de QSettings prend en effet le dessus sur l'option --config_dir=conf/ dans le lanceur .bat et continue à vouloir enregistrer la conf dans la base de registre Windows.  
Faudra étudier un workaround spécifique à la ReadyToUse .. mais au vu des changements (voir ci dessous le lien dans la balise code), le mieux est de faire une copie de la clé HKEY_CURRENT_USER\Software\QElectroTech\ si t'as besoin de la conf des projets par défaut cartouche, informations du cartouche , etc, le reste ce n'est que la disposition des widgets dans la fenêtre, liste des derniers fichiers projets ouverts, liste des imprimantes et quelques options facilement ré activables dans le menu config de QET.


https://svnweb.tuxfamily.org/comp.php?repname=qet%2Fqet&compare[]=%2Ftrunk@4205&compare[]=%2Ftrunk%2F@4206

Un premier essais .... en me servant d' une variable globale enregistrée dans la conf de QET...mais comme Joshua dit revoir entièrement ces textes, on verra plus tard ...


4,605

(554 replies, posted in News)

Mise à jour du compilateur clang et du framework Qt sur les prochains bundles macOs :

QElectroTech V 0.70-dev r5191
Compilation : CLANG 9.0.0 (clang-900.0.39.2) - built with Qt 5.10.0 - run with Qt 5.10.0 using 16 thread(s)

4,606

(17 replies, posted in FR : Aide, suggestions, discussions, ...)

En principe, faire un clic droit sur un élément dans un folio, éditer l’élément, faire les modifications dans l’éditeur d’élément et enregistrer, quitter l’éditeur, enregistrer ensuite le projet et le fermer, si pas de grosse modification sur l’élément en question il devrait apparaître câblé dans ton folio.

Attention quand même ! ça ne fonctionne qu'a condition de ne faire que des modifications mineures, hors de questions d'ajouter ou de faire de gros déplacement de bornes, etc ça ne fonctionnera point et ton élément sera manquant dans le folio.

J'ai remplacé des dizaines de milliers du même élément dans mes projets en appliquant cette méthode.
J'avais remplacé graphiquement toutes les bornes d'un projet de 160 folios par un nouveau modèle qui esthétiquement me convenait davantage ..
Pense a faire un backup avant de ton projet !

Une de mes demande à l’époque (~2007) quand je n’étais qu'utilisateur :
https://qelectrotech.org/wiki_new/roadm … d_elements


en choisissant une “zone de collage” sur l'élément (Ctrl+Shift+V) : cf screenshot à gauche
directement (Ctrl+V) : les parties collées sont placées à côté des parties copiées ; si on recolle les parties, elles sont collées encore un cran à côté, et ce de manière incrémentale. Ainsi le screenshot à droite montre ce que l'on obtient en collant une sélection 8 fois d'affilée.

P.S. et à l'occasion , si y a moyen de paramétrer la taille de caractères par défaut des "labels" , je serai preneur


Ceci ?
https://download.qelectrotech.org/qet/forum_img/labels.png

4,609

(554 replies, posted in News)

Revision: 5189
Author:   scorpio810
Date:     2017-12-17 15:43:39 +0100 (Sun, 17 Dec 2017)
Log Message:
-----------
Add a button in config page for open a new Qfontdialog widget and choose
font for summarry pages (foliolist)

4,610

(17 replies, posted in FR : Aide, suggestions, discussions, ...)

Bonjour,

dans l’éditeur d’élément les bornes doivent être posées sur les points de la grille, en principe car souvent suivant l’élément c'est difficile.

4,611

(554 replies, posted in News)

Nuri wrote:
Nuri wrote:

Chez moi, le QColorDialog s'ouvre au premier plan seulement à la première ouverture. Les fois d'après, il s'ouvre toujours derrière le fenêtre principale de QET

Sous KDE, le QColorDialog s'ouvre toujours en avant-plan (devant la fenêtre QET) mais l'OS considère que c'est une appli à part entière car, dans la barre des tâches, il m'affiche 2 fenêtres pour QET (l'appli principale et le dialogue).
Alors que si j'ouvre le QColorDialog pour choisir la couleur des conducteurs, par exemple, le dialogue est considéré comme une sous-fenêtre de l'appli et l'OS ne montre qu'une seule fenêtre dans la barre des tâches.

Je ne n'ai pas constaté ce fonctionnement sur ma Debian sid kde, il m'affiche 2 fenêtres pour QET (l'appli principale et le dialogue) a chaque fois...le dialogue est toujours au premier plan.

4,612

(554 replies, posted in News)

@ Nuri :
J'ai remarqué pas mal de warnings en compilant ce commit, je pense que les soucis que tu mentionnes viennent de là !

4,613

(554 replies, posted in News)

Nuri wrote:

@ scorpio810 :
Ah, cela n'agit que sur diagramitemfont nomicons/shocked .
Je croyais que tu voulais faire und QFontDialog pour diagramfont.
Pour avoir pas mal joué dans le qelectrotech.conf, je sais qu'il faut pas trop tripoter diagramfont sinon cela crée des décalages en fonction de la métrique de police utilisée.

Surtout pas pour diagramfont qui est une variable globale et qui affecte beaucoup de textes dans le programme et donc le rendu de pas mal d'objets sur tes schemas.
Et comme diagramfont & diagramsize ne sont pas sauvegardées dans le projet, ouvrir ce meme projet sur une autre machine tu risques d'avoir des surprises, à l'instar des nouvelles variables pour les textes indépendants qui elles sont enregistrées dans le projet et donc le rendu devrait être le même quelque soit la machine, a condition que ces polices soient installées aussi sur les autres machines..
Il est préférable que cette variable soit changée manuellement par l'utilisateur en parfaite connaissance de cause.
https://qelectrotech.org/forum/viewtopi … 2438#p2438

Le but étant de séparer les propriétés "font" des textes indépendants des variables globales.

Si tu dois souvent ajouter des textes indépendants sur tes schémas avec une taille fixe de 6 px par exemple au lieu des 9 px par défaut, tu n'as plus besoin avec cette feature de passer a chaque fois par l’éditeur HTML pour réajuster la taille de police, ce qui est peut-être pénible à la longue.
Le choix des polices est un bonus, j'aurai ajouté que le choix de la taille et voila qu'on nous aurai demandé si on pouvait pas aussi avoir le choix des polices, tu sais comment ça se passe. nomicons/smiley-green

4,614

(554 replies, posted in News)

Revision: 5168
Author:   scorpio810
Date:     2017-12-11 01:52:33 +0100 (Mon, 11 Dec 2017)
Log Message:
-----------
Add a button in config page for open Qfontdialog widget

https://download.qelectrotech.org/qet/forum_img/policy2.png

Ps : les paquets de la 0.7 ne sont plus compatibles Ubuntu 14.04 LTS, meme si elle sera supportée jusqu'en avril 2019 par canonical, la version de Qt est trop vieille et nous obligent a chaque fois a trouver des workarounds pour que ça compile..
Il est conseillé d'upgrader vers une LTS avec une version récente de Qt.

4,615

(554 replies, posted in News)

Revision: 5166
Author:   scorpio810
Date:     2017-12-10 17:10:19 +0100 (Sun, 10 Dec 2017)
Log Message:
-----------
Add a Qfontdialog for choose policy for independent text item, not
finished yet !

Bon, même si ce n'est fini (reste a créer une page ou une action dans la config plutôt que de lancer le widget directement quand on clique sur configurer QET) j'ai pensé que ça pourrait intéresser certains.

Pour l'instant les textes barrés et soulignés ne sont pas pris en compte.

La configuration des polices est aussi sauvegardée dans le fichier config QET (ou dans la base de registre pour ceux sous Windows) et est appliquée au lancement de QET.

En attendant vos retours.

Enjoy ! nomicons/smile

[General]
diagramitemfont=Noto Sans
diagramitemsize=72
diagramitemstyle=Bold
diagramitemweight=75

lang=fr
m_auto_conductor=false
terminal-exportlist=false
usesystemcolors=true

[diagramcommands]
save-label=false

[diagrameditor]
defaultauthor=laurent
defaultauto_page_num=
defaultcols=20
defaultcolsize=60
.................
...........

4,616

(554 replies, posted in News)

Nuri wrote:
scorpio810 wrote:

Plus tard on devrait mettre en place un widget pour sélectionner facilement la taille et police par défaut de ces textes.

Chouette !
Par contre, attention aux changement de police et de taille en cours de route.
Comme QET ne gère pas l'alignement des textes, si la métrique de la police change, tous les textes seront décalés, voire les uns sur les autres, et empièteront éventuellement aussi sur les symboles.

Petit test :


https://download.qelectrotech.org/qet/forum_img/policy1.png

4,617

(554 replies, posted in News)

Revision: 5163
Author:   scorpio810
Date:     2017-12-10 02:03:36 +0100 (Sun, 10 Dec 2017)
Log Message:
-----------
Dissociate fonts policy and size for independent text item
Possiblility to overide defaut settings by adding in QElectroTech.conf
diagramitemsize, diagramitemfont variable, for example: 
[General]
diagramitemsize=12
diagramitemfont=droid


Je ne me rappelle plus qui l'avait demandé ..., pouvoir choisir une taille de texte par défaut ou choisir le type de font pour les textes indépendants sans devoir a chaque fois passer par l’éditeur HTML.
Plus tard on devrait mettre en place un widget pour sélectionner facilement la taille et police par défaut de ces textes.

4,618

(24 replies, posted in Import DXF)

Hello Calypso,

nice, you have now DXF converter run with your Qt 5.5.1 libs.

Best regards,
Laurent

4,619

(24 replies, posted in Import DXF)

It 's only Qt 5 version DXFtoQET3_DB
Yes we can see a lot of warnings, but compil fail or finish?
Paste the end of compilation, if you make it executable you can launch program?

Pour certains l'export DXF est aussi très important, pour le cartouche des pages sommaires qui est resété a chaque ouverture ce n'est pas gênant en soit car le sommaire devrait en principe être généré a la finalisation du projet juste avant l'impression vers une imprimante physique ou sauvegardé en pdf, je dit bien en principe car je fais comme toi, mais moi je m’embête pas avec les cartouches au boulot je met toujours celui par défaut, comme quoi les cordonniers sont les plus mal chaussés, dixit le proverbe nomicons/smiley-green .

Non, t’inquiète pas je ne risque pas de me fâcher  nomicons/smile : on fait ce qu'on peu, on est peu nombreux, et il est arrive souvent qu'apres nos 8h ou plus de travail (journées, nuits, W.E souvent tres harassantes) qu'il est plus facile de se plonger dans le canapé en arrivant que de plonger dans le code, mails, bricoler les serveurs, écrire la documentation, etc.

nuri-explain_QET_project.txt :
https://download.qelectrotech.org/qet/s … roject.txt

Nuri wrote:

@ scorpio810 :

d'où l'intérêt de transformer les pages sommaire en vrais folios.
Attention, j'ai pas dit que ce sera facile (-> aspirine) mais je vais essayer.
Quoique la priorité pour moi, c'est plutôt l'édition de nomenclature (j'aimerai bien à terme me séparer de ma macro LibreOffice).

Ronny avait un temps ajouté dans le convertisseur DXF sur de vieilles versions de quoi importer un fichier CSV, d'en extraire les données pour créer des éléments nomenclature, le code doit pouvoir ce trouver sur le Subversion si ça t'interrese.

galexis wrote:

L'export DXF me parait moins important qu'un sommaire digne de ce nom ...nomicons/angel

Pourquoi, tu le trouves incomplet ?
Tu peux récupérer automatiquement dans le sommaire les % variables de chaque folio : la localisation de la machine, nom machine, index_révision du folio, etc, il te faut quoi de plus? nomicons/blink
Surtout que ces nouvelles entrées tu n'as qu'a les ajouter directement dans les champs prévus a cet effet quand tu double clique sur le cartouche du folio en cours.

4,623

(24 replies, posted in Import DXF)

Hello Caplyso,

have you tried to compil it now?


Download source files :

svn checkout svn://svn.tuxfamily.org/svnroot/qet/qet/branches/DXFtoQET3_DB DXFtoQET3_DB

Go to directory :

cd DXFtoQET3_DB/

Compilation

/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
make -j$(nproc)

Make it executable

chmod +x ./DXFtoQET

Test if run 

./DXFtoQET

Now move or copy to QET user folder

mv ./DXFtoQET ~/.qet/

Now, the DXF converter can be started from the QET editor menu.

systemes wrote:

Bonjour,
Est-il possible de modifier la page sommaire, en enlevant des colonnes inutiles ou en modifiant la largeur de ces colonnes comme dans Excel par exemple ?
La mise en page dans la version 0.5 me convenait très bien avec 58 index sur la même page.
Merci d'avance

Helas non, le changement de format des pages sommaires étant en dur dans le code et m'avait demandé pas mal de temps  quelques tubes d'aspirines et beaucoup de modifications pour ajouter les nouvelles informations du projet, sachant qu'il faut aussi revoir le code pour l'export DXF en même temps :

https://svnweb.tuxfamily.org/revision.p … p;peg=4622

https://svnweb.tuxfamily.org/log.php?re … t.cpp&


Modified: trunk/sources/bordertitleblock.cpp
===================================================================
--- trunk/sources/bordertitleblock.cpp    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/bordertitleblock.cpp    2016-08-11 18:32:08 UTC (rev 4622)
@@ -240,6 +240,9 @@
     ip.date = date();
     ip.title = title();
     ip.filename = fileName();
+    ip.machine = machine();
+    ip.loc = loc();
+    ip.indexrev = indexrev();
     ip.version = version();
     ip.folio = folio();
     ip.template_name = titleBlockTemplateName();
@@ -260,6 +263,9 @@
     setDate(ip.date);
     setTitle(ip.title);
     setFileName(ip.filename);
+    setMachine(ip.machine);
+    setLoc(ip.loc);
+    setIndicerev(ip.indexrev);
     setVersion(QET::displayedVersion);
     setFolio(ip.folio);
     setAutoPageNum(ip.auto_page_num);
@@ -695,6 +701,9 @@
     context.addValue("date",        btb_date_.toString(Qt::SystemLocaleShortDate));
     context.addValue("title",       btb_title_);
     context.addValue("filename",    btb_filename_);
+    context.addValue("machine",     btb_machine_);
+    context.addValue("loc",         btb_loc_);
+    context.addValue("indexrev",    btb_indexrev_);
     context.addValue("version",     btb_version_);
     context.addValue("folio",       btb_final_folio_);
     context.addValue("folio-id",    folio_index_);
 
Modified: trunk/sources/bordertitleblock.h
===================================================================
--- trunk/sources/bordertitleblock.h    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/bordertitleblock.h    2016-08-11 18:32:08 UTC (rev 4622)
@@ -95,6 +95,13 @@
     QString title() const { return(btb_title_); }
     /// @return the value of the title block "Folio" field
     QString folio() const { return(btb_folio_); }
+    /// @return the value of the title block "Machine" field
+    QString machine() const { return(btb_machine_); }
+    /// @return the value of the title block "Folio" field
+    QString loc() const { return(btb_loc_); }
+    /// @return the value of the revision index block "Folio" field
+    QString indexrev() const { return(btb_indexrev_); }
+   
     /// @return the value of the title block "File" field
     QString fileName() const { return(btb_filename_); }
     /// @return the value of the title block Additional Fields
@@ -146,6 +153,9 @@
     }
     void setFolioData(int, int, QString = NULL, const DiagramContext & = DiagramContext());
     /// @param author the new value of the "File" field
+    void setMachine(const QString &machine) { btb_machine_ = machine; }
+    void setLoc(const QString &loc) { btb_loc_ = loc; }
+    void setIndicerev(const QString &indexrev){ btb_indexrev_ = indexrev; }
     void setFileName(const QString &filename) { btb_filename_ = filename; }
     /// @param author the new value of the "Version" field
     void setVersion(const QString &version) { btb_version_ = version; }
@@ -225,6 +235,9 @@
         QDate   btb_date_;
         QString btb_title_;
         QString btb_folio_;
+        QString btb_machine_;
+        QString btb_loc_;
+        QString btb_indexrev_;
         QString btb_final_folio_;
         QString btb_auto_page_num_;
         int folio_index_;
 
Modified: trunk/sources/diagramfoliolist.cpp
===================================================================
--- trunk/sources/diagramfoliolist.cpp    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/diagramfoliolist.cpp    2016-08-11 18:32:08 UTC (rev 4622)
@@ -19,7 +19,7 @@
 #include <QPainter>
 #include "qetapp.h"
 
-qreal DiagramFolioList::colWidths[4] = {0.1, 0.55, 0.2, 0.15};
+qreal DiagramFolioList::colWidths[8] = {0.05, 0.05, 0.50, 0.10, 0.10, 0.05, 0.05, 0.05};
 
 /**
  * @brief DiagramFolioList::DiagramFolioList
@@ -74,44 +74,31 @@
     qreal y0 = border_and_titleblock.columnsHeaderHeight();
     QRectF row_RectBorder(x0, y0, width, height);
 
-    buildGrid(p, row_RectBorder,30,2,colWidths);
+    buildGrid(p, row_RectBorder,30,1,colWidths);
 
     x0 = list_rectangles_[0] -> topLeft().x();
     y0 = list_rectangles_[0] -> topLeft().y();
+
     qreal rowHeight = (list_rectangles_[0] -> height())/30;
     QRectF row_RectF(x0, y0, list_rectangles_[0] -> width(), rowHeight);
 
     fillHeader(p, row_RectF);
     QList<Diagram *> diagram_list = project() -> diagrams();
 
-    int startDiagram = id * 58;
-
+    int startDiagram = id * 29;
     for (int i = startDiagram; i < startDiagram+29 && i < diagram_list.size(); ++i) {
         y0 += rowHeight;
         QRectF row_rect(x0, y0, list_rectangles_[0] -> width(), rowHeight);
         fillRow(p, row_rect, diagram_list[i] -> border_and_titleblock.author(),
                 diagram_list[i] -> title(),
                 QString::number(diagram_list[i] ->folioIndex()+1),
+                diagram_list[i] -> border_and_titleblock.folio(),
+                diagram_list[i] -> border_and_titleblock.machine(),
+                diagram_list[i] -> border_and_titleblock.loc(),
+                diagram_list[i] -> border_and_titleblock.indexrev(),
                 diagram_list[i] -> border_and_titleblock.date().toString(Qt::SystemLocaleShortDate));
     }
 
-    x0 = list_rectangles_[1] -> topLeft().x();
-    y0 = list_rectangles_[1] -> topLeft().y();
-    rowHeight = (list_rectangles_[1] -> height())/30;
-    QRectF row_RectF2(x0, y0, list_rectangles_[1] -> width(), rowHeight);
-    fillHeader(p, row_RectF2);
-
-    startDiagram += 29;
-
-    for (int i = startDiagram; i < startDiagram+29 && i < diagram_list.size(); ++i) {
-        y0 += rowHeight;
-        QRectF row_rect(x0, y0, list_rectangles_[1] -> width(), rowHeight);
-        fillRow(p, row_rect, diagram_list[i] -> border_and_titleblock.author(),
-                diagram_list[i] -> title(),
-                QString::number(diagram_list[i] ->folioIndex()+1),
-                diagram_list[i] -> border_and_titleblock.date().toString(Qt::SystemLocaleShortDate));
-    }
-
     border_and_titleblock.draw(p);
     p -> restore();
 }
@@ -123,7 +110,7 @@
  * @param row_rect rectangle where we must draw the new row
  */
 void DiagramFolioList::fillRow(QPainter *qp, const QRectF &row_rect, QString author, QString title,
-                               QString folio, QString date)
+                               QString folio, QString label, QString machine, QString loc, QString indexrev, QString date)
 {
     qreal x = row_rect.topLeft().x();
     qreal y = row_rect.topLeft().y();
@@ -142,33 +129,73 @@
     qp -> drawText(QRectF(x, y, colWidths[0]*row_rect.width(), row_rect.height()), Qt::AlignCenter, folio);
     x += colWidths[0]*row_rect.width();
 
-    if (origFontMetrics.width(title) > 0.95*colWidths[1]*row_rect.width())
-        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[1]*row_rect.width() / origFontMetrics.width(title));
+    if (origFontMetrics.width(label) > 0.95*colWidths[1]*row_rect.width())
+        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[1]*row_rect.width() / origFontMetrics.width(label));
     else
         workingFont.setPointSizeF(origFontSize);
     qp -> setFont(workingFont);
+    qp -> drawText(QRectF(x, y, colWidths[1]*row_rect.width(), row_rect.height()), Qt::AlignCenter, label);
+    x += colWidths[1]*row_rect.width();
+
+
+    if (origFontMetrics.width(title) > 0.95*colWidths[2]*row_rect.width())
+        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[2]*row_rect.width() / origFontMetrics.width(title));
+    else
+        workingFont.setPointSizeF(origFontSize);
+    qp -> setFont(workingFont);
     QString heading = tr("Titre");
     if (title == heading)
-        qp -> drawText(QRectF(x, y, colWidths[1]*row_rect.width(),row_rect.height()), Qt::AlignCenter, title);
+        qp -> drawText(QRectF(x, y, colWidths[2]*row_rect.width(),row_rect.height()), Qt::AlignCenter, title);
     else
-        qp -> drawText(QRectF(x+0.01*row_rect.width(), y, colWidths[1]*row_rect.width()*0.99,
+        qp -> drawText(QRectF(x+0.01*row_rect.width(), y, colWidths[1]*row_rect.width()*10.2,
                        row_rect.height()), Qt::AlignLeft | Qt::AlignVCenter, title);
-    x += colWidths[1]*row_rect.width();
+    x += colWidths[2]*row_rect.width();
+   
+   
+    if (origFontMetrics.width(machine) > 0.95*colWidths[3]*row_rect.width())
+        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[3]*row_rect.width() / origFontMetrics.width(machine));
+    else
+        workingFont.setPointSizeF(origFontSize);
+    qp -> setFont(workingFont);
+    qp -> drawText(QRectF(x, y, colWidths[3]*row_rect.width(), row_rect.height()), Qt::AlignCenter, machine);
+    x += colWidths[3]*row_rect.width();
+   
+   
+    if (origFontMetrics.width(loc) > 0.95*colWidths[4]*row_rect.width())
+        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[4]*row_rect.width() / origFontMetrics.width(loc));
+    else
+        workingFont.setPointSizeF(origFontSize);
+    qp -> setFont(workingFont);
+    qp -> drawText(QRectF(x, y, colWidths[4]*row_rect.width(), row_rect.height()), Qt::AlignCenter, loc);
+    x += colWidths[4]*row_rect.width();
+   
+   
+    if (origFontMetrics.width(indexrev) > 0.95*colWidths[5]*row_rect.width())
+        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[5]*row_rect.width() / origFontMetrics.width(indexrev));
+    else
+        workingFont.setPointSizeF(origFontSize);
+    qp -> setFont(workingFont);
+    qp -> drawText(QRectF(x, y, colWidths[5]*row_rect.width(), row_rect.height()), Qt::AlignCenter, indexrev);
+    x += colWidths[5]*row_rect.width();
+   
+   
+   
 
-    if (origFontMetrics.width(author) > 0.95*colWidths[2]*row_rect.width())
-        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[2]*row_rect.width() / origFontMetrics.width(author));
+    if (origFontMetrics.width(author) > 0.95*colWidths[6]*row_rect.width())
+        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[6]*row_rect.width() / origFontMetrics.width(author));
     else
         workingFont.setPointSizeF(origFontSize);
     qp -> setFont(workingFont);
-    qp -> drawText(QRectF(x, y, colWidths[2]*row_rect.width(), row_rect.height()), Qt::AlignCenter, author);
-    x += colWidths[2]*row_rect.width();
+    qp -> drawText(QRectF(x, y, colWidths[6]*row_rect.width(), row_rect.height()), Qt::AlignCenter, author);
+    x += colWidths[6]*row_rect.width();
+   
 
-    if (origFontMetrics.width(date) > 0.95*colWidths[3]*row_rect.width())
-        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[3]*row_rect.width() / origFontMetrics.width(date));
+    if (origFontMetrics.width(date) > 0.95*colWidths[7]*row_rect.width())
+        workingFont.setPointSizeF(origFontSize * 0.95*colWidths[7]*row_rect.width() / origFontMetrics.width(date));
     else
         workingFont.setPointSizeF(origFontSize);
     qp -> setFont(workingFont);
-    qp -> drawText(QRectF(x, y, colWidths[3]*row_rect.width(), row_rect.height()), Qt::AlignCenter, date);
+    qp -> drawText(QRectF(x, y, colWidths[7]*row_rect.width(), row_rect.height()), Qt::AlignCenter, date);
 }
 
 void DiagramFolioList::buildGrid(QPainter *qp, const QRectF &rect, int rows, int tables, qreal colWidths[])
@@ -178,18 +205,18 @@
     qDeleteAll (list_rectangles_);
     list_rectangles_.clear();
 
-    qreal sum = 0;
-    for (int i = 0; i < 4; i++ )
-        sum += colWidths[i];
-    if ( sum < 0.99 || sum > 1.01 ) {
-        qDebug() << "Invalid input: Column widths do not sum to 1";
-        return;
-    }
+//    qreal sum = 0;
+//    for (int i = 0; i < 8; i++ )
+//        sum += colWidths[i];
+//    if ( sum < 0.99 || sum > 1.01 ) {
+//        qDebug() << "Invalid input: Column widths do not sum to 1";
+//        return;
+//    }
 
     qreal tablesSpacing = rect.height() * 0.02;
     qreal tableWidth = (rect.width() - tablesSpacing*(tables+1) ) / tables;
     qreal rowHeight = (rect.height() - 2*tablesSpacing) / rows;
-    int cols = 4;//colWidths.size();
+    int cols = 8;//colWidths.size();
 
     qreal x0 = tablesSpacing + rect.topLeft().x();
     qreal y0 = tablesSpacing + rect.topLeft().y();
@@ -222,11 +249,15 @@
 void DiagramFolioList::fillHeader(QPainter *qp, const QRectF &row_RectF) {
     QString authorTranslatable(QObject::tr("Auteur"));
     QString titleTranslatable(QObject::tr("Titre"));
-    QString folioTranslatable(QObject::tr("Folio"));
+    QString folioTranslatable(QObject::tr("ID"));
+    QString machineTranslatable(QObject::tr("Machine"));
+    QString locTranslatable(QObject::tr("Localisation"));
+    QString indexrevTranslatable(QObject::tr("Rev"));
+    QString labelTranslatable(QObject::tr("Folio"));
     QString dateTranslatable(QObject::tr("Date"));
 
     qp->save();
     qp->setFont(QETApp::diagramTextsFont(13));
-    fillRow(qp, row_RectF, authorTranslatable, titleTranslatable, folioTranslatable, dateTranslatable);
+    fillRow(qp, row_RectF, authorTranslatable, titleTranslatable, folioTranslatable, labelTranslatable, machineTranslatable, locTranslatable, indexrevTranslatable, dateTranslatable);
     qp->restore();
 }
 
Modified: trunk/sources/diagramfoliolist.h
===================================================================
--- trunk/sources/diagramfoliolist.h    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/diagramfoliolist.h    2016-08-11 18:32:08 UTC (rev 4622)
@@ -31,13 +31,13 @@
     void setId(int i) {id = i;}
     int getId() const {return id;}
 
-    static qreal colWidths[4];
+    static qreal colWidths[8];
 
     protected:
     void drawBackground(QPainter *, const QRectF &);
 
     private:
-    void fillRow(QPainter *, const QRectF &, QString, QString, QString, QString);
+    void fillRow(QPainter *, const QRectF &, QString, QString, QString, QString, QString, QString, QString, QString);
     void buildGrid(QPainter *, const QRectF &, int, int, qreal[]);
     void fillHeader(QPainter *, const QRectF &);
 
 
Modified: trunk/sources/qetproject.cpp
===================================================================
--- trunk/sources/qetproject.cpp    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/qetproject.cpp    2016-08-11 18:32:08 UTC (rev 4622)
@@ -1039,7 +1039,7 @@
         setFolioSheetsQuantity(0);
 
         int diagCount = diagrams().size();
-        for (int i = 0; i <= diagCount/58; i++) {
+        for (int i = 0; i <= diagCount/29; i++) {
 
             //create new diagram
             Diagram *diagram_folio_list = new DiagramFolioList(this);
 
Modified: trunk/sources/titleblock/templatecellwidget.cpp
===================================================================
--- trunk/sources/titleblock/templatecellwidget.cpp    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/titleblock/templatecellwidget.cpp    2016-08-11 18:32:08 UTC (rev 4622)
@@ -437,6 +437,9 @@
         "<li>%{date} : date du folio</li>"
         "<li>%{title} : titre du folio</li>"
         "<li>%{filename} : nom de fichier du projet</li>"
+        "<li>%{machine} : nom du groupe fonctionnel du projet</li>"
+        "<li>%{loc} : nom de la localisation dans le groupe fonctionnel du projet</li>"
+        "<li>%{indexrev} : indice de révision du folio</li>"
         "<li>%{version} : version du projet</li>"
         "<li>%{folio} : indications relatives au folio</li>"
         "<li>%{folio-id} : position du folio dans le projet</li>"
 
Modified: trunk/sources/titleblockproperties.cpp
===================================================================
--- trunk/sources/titleblockproperties.cpp    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/titleblockproperties.cpp    2016-08-11 18:32:08 UTC (rev 4622)
@@ -47,6 +47,9 @@
         ip.author == author &&\
         ip.date == date &&\
         ip.filename == filename &&\
+        ip.machine == machine &&\
+        ip.loc == loc &&\
+        ip.indexrev == indexrev &&\
         ip.version == version &&\
         ip.folio == folio &&\
         ip.auto_page_num == auto_page_num &&\
@@ -74,6 +77,9 @@
     e.setAttribute("author",   author);
     e.setAttribute("title",    title);
     e.setAttribute("filename", filename);
+    e.setAttribute("machine", machine);
+    e.setAttribute("loc", loc);
+    e.setAttribute("indexrev",indexrev);
     e.setAttribute("version", version);
     e.setAttribute("folio",    folio);
     e.setAttribute("auto_page_num", auto_page_num);
@@ -101,6 +107,9 @@
     if (e.hasAttribute("author"))      author   = e.attribute("author");
     if (e.hasAttribute("title"))       title    = e.attribute("title");
     if (e.hasAttribute("filename"))    filename = e.attribute("filename");
+    if (e.hasAttribute("machine"))    machine   = e.attribute("machine");
+    if (e.hasAttribute("loc"))        loc       = e.attribute("loc");
+    if (e.hasAttribute("indexrev"))   indexrev  = e.attribute("indexrev");
     if (e.hasAttribute("version"))    version   = e.attribute("version");
     if (e.hasAttribute("folio"))       folio    = e.attribute("folio");
     if (e.hasAttribute("auto_page_num")) auto_page_num = e.attribute("auto_page_num");
@@ -131,6 +140,9 @@
     settings.setValue(prefix + "title",    title);
     settings.setValue(prefix + "author",   author);
     settings.setValue(prefix + "filename", filename);
+    settings.setValue(prefix + "machine", machine);
+    settings.setValue(prefix + "loc", loc);
+    settings.setValue(prefix + "indexrev", indexrev);
     settings.setValue(prefix + "version", version);
     settings.setValue(prefix + "folio",    folio);
     settings.setValue(prefix + "auto_page_num",    auto_page_num);
@@ -150,7 +162,10 @@
     title    = settings.value(prefix + "title").toString();
     author   = settings.value(prefix + "author").toString();
     filename = settings.value(prefix + "filename").toString();
-    version = settings.value(prefix + "version").toString();
+    machine  = settings.value(prefix + "machine").toString();
+    loc      = settings.value(prefix + "loc").toString();
+    indexrev = settings.value(prefix + "indexrev").toString();
+    version  = settings.value(prefix + "version").toString();
     folio    = settings.value(prefix + "folio", "%id/%total").toString();
     auto_page_num = settings.value(prefix + "auto_page_num").toString();
     setDateFromString(settings.value(prefix + "date").toString());
 
Modified: trunk/sources/titleblockproperties.h
===================================================================
--- trunk/sources/titleblockproperties.h    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/titleblockproperties.h    2016-08-11 18:32:08 UTC (rev 4622)
@@ -54,6 +54,9 @@
     QString author;           ///< Author of the diagram/folio (displayed by the default template)
     QDate date;               ///< Date (displayed by the default template)
     QString filename;         ///< Filename (displayed by the default template)
+    QString machine;          ///< Machine (displayed by the default template)
+    QString loc;              ///< Location(displayed by the default template)
+    QString indexrev;         ///< Revision Index (displayed by the default template)
     QString version;          ///< Version (displayed by the default template)
     QString folio;            ///< Folio information (displayed by the default template)
     QString auto_page_num;
 
Modified: trunk/sources/ui/titleblockpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/titleblockpropertieswidget.cpp    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/ui/titleblockpropertieswidget.cpp    2016-08-11 18:32:08 UTC (rev 4622)
@@ -95,6 +95,9 @@
     ui -> m_title_le  -> setText (properties.title);
     ui -> m_author_le -> setText (properties.author);
     ui -> m_file_le   -> setText (properties.filename);
+    ui -> m_mach      -> setText (properties.machine);
+    ui -> m_loc       -> setText (properties.loc);
+    ui -> m_indice    -> setText (properties.indexrev);
     ui -> m_folio_le  -> setText (properties.folio);
     ui -> m_display_at_cb -> setCurrentIndex(properties.display_at == Qt::BottomEdge ? 0 : 1);
     ui->auto_page_cb->setCurrentText(properties.auto_page_num);
@@ -150,6 +153,9 @@
     prop.title    = ui -> m_title_le  -> text();
     prop.author   = ui -> m_author_le -> text();
     prop.filename = ui -> m_file_le   -> text();
+    prop.machine  = ui -> m_mach      -> text();
+    prop.loc      = ui -> m_loc       -> text();
+    prop.indexrev = ui -> m_indice    -> text();
     prop.folio    = ui -> m_folio_le  -> text();
     prop.display_at = ui -> m_display_at_cb -> currentIndex() == 0 ? Qt::BottomEdge : Qt::RightEdge;
 
@@ -188,6 +194,9 @@
     prop.title    = ui -> m_title_le  -> text();
     prop.author   = ui -> m_author_le -> text();
     prop.filename = ui -> m_file_le   -> text();
+    prop.machine  = ui -> m_mach      -> text();
+    prop.loc      = ui -> m_loc       -> text();
+    prop.indexrev = ui -> m_indice    -> text();
     prop.folio    = "%autonum";
     prop.display_at = ui -> m_display_at_cb -> currentIndex() == 0 ? Qt::BottomEdge : Qt::RightEdge;
 
 
Modified: trunk/sources/ui/titleblockpropertieswidget.ui
===================================================================
--- trunk/sources/ui/titleblockpropertieswidget.ui    2016-08-10 16:48:18 UTC (rev 4621)
+++ trunk/sources/ui/titleblockpropertieswidget.ui    2016-08-11 18:32:08 UTC (rev 4622)
@@ -42,8 +42,8 @@
        <rect>
         <x>0</x>
         <y>0</y>
-        <width>552</width>
-        <height>570</height>
+        <width>538</width>
+        <height>608</height>
        </rect>
       </property>
       <layout class="QVBoxLayout" name="verticalLayout_5">
@@ -123,32 +123,6 @@
              <layout class="QVBoxLayout" name="verticalLayout_2">
               <item>
                <layout class="QGridLayout" name="gridLayout_4">
-                <item row="4" column="1">
-                 <widget class="QLabel" name="label_5">
-                  <property name="text">
-                   <string>Fichier :</string>
-                  </property>
-                 </widget>
-                </item>
-                <item row="6" column="2">
-                 <widget class="QLabel" name="label_7">
-                  <property name="frameShape">
-                   <enum>QFrame::NoFrame</enum>
-                  </property>
-                  <property name="text">
-                   <string>Les variables suivantes sont utilisables dans le champ Folio :
-- %id : numéro du folio courant dans le projet 
-- %total : nombre total de folios dans le projet 
-- %autonum : Folio Auto Numeration</string>
-                  </property>
-                  <property name="scaledContents">
-                   <bool>false</bool>
-                  </property>
-                  <property name="alignment">
-                   <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
-                  </property>
-                 </widget>
-                </item>
                 <item row="3" column="1">
                  <widget class="QLabel" name="label_4">
                   <property name="text">
@@ -159,66 +133,106 @@
                   </property>
                  </widget>
                 </item>
-                <item row="5" column="1">
-                 <widget class="QLabel" name="label_6">
+                <item row="10" column="3">
+                 <layout class="QGridLayout" name="gridLayout">
+                  <item row="0" column="0">
+                   <widget class="QComboBox" name="auto_page_cb">
+                    <property name="sizePolicy">
+                     <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+                      <horstretch>0</horstretch>
+                      <verstretch>0</verstretch>
+                     </sizepolicy>
+                    </property>
+                   </widget>
+                  </item>
+                  <item row="0" column="1">
+                   <widget class="QPushButton" name="m_edit_autofolionum_pb">
+                    <property name="sizePolicy">
+                     <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+                      <horstretch>0</horstretch>
+                      <verstretch>0</verstretch>
+                     </sizepolicy>
+                    </property>
+                    <property name="minimumSize">
+                     <size>
+                      <width>16</width>
+                      <height>16</height>
+                     </size>
+                    </property>
+                    <property name="text">
+                     <string/>
+                    </property>
+                    <property name="icon">
+                     <iconset resource="../../qelectrotech.qrc">
+                      <normaloff>:/ico/16x16/configure.png</normaloff>:/ico/16x16/configure.png</iconset>
+                    </property>
+                   </widget>
+                  </item>
+                 </layout>
+                </item>
+                <item row="12" column="1">
+                 <widget class="QLabel" name="label">
                   <property name="text">
-                   <string>Folio :</string>
+                   <string>Afficher :</string>
                   </property>
                  </widget>
                 </item>
-                <item row="1" column="1">
-                 <widget class="QLabel" name="label_2">
+                <item row="9" column="1">
+                 <widget class="QLabel" name="label_12">
                   <property name="text">
-                   <string>Titre :</string>
+                   <string>Indice Rev</string>
                   </property>
                  </widget>
                 </item>
-                <item row="5" column="2">
-                 <widget class="QLineEdit" name="m_folio_le">
-                  <property name="toolTip">
-                   <string>Disponible en tant que %folio pour les modèles de cartouches</string>
+                <item row="2" column="1">
+                 <widget class="QLabel" name="label_3">
+                  <property name="text">
+                   <string>Auteur :</string>
                   </property>
                  </widget>
                 </item>
-                <item row="1" column="2">
+                <item row="8" column="3">
+                 <widget class="QLineEdit" name="m_loc"/>
+                </item>
+                <item row="6" column="3">
+                 <widget class="QLineEdit" name="m_mach"/>
+                </item>
+                <item row="1" column="3">
                  <widget class="QLineEdit" name="m_title_le">
                   <property name="toolTip">
                    <string>Disponible en tant que %title pour les modèles de cartouches</string>
                   </property>
                  </widget>
                 </item>
-                <item row="8" column="2">
-                 <widget class="QComboBox" name="m_display_at_cb">
+                <item row="5" column="1">
+                 <widget class="QLabel" name="label_6">
+                  <property name="text">
+                   <string>Folio :</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="4" column="1">
+                 <widget class="QLabel" name="label_5">
+                  <property name="text">
+                   <string>Fichier :</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="3">
+                 <widget class="QLineEdit" name="m_author_le">
                   <property name="toolTip">
-                   <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Affiche le cartouche en bas (horizontalement) ou à droite (verticalement) du folio.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+                   <string>Disponible en tant que %author pour les modèles de cartouches</string>
                   </property>
-                  <item>
-                   <property name="text">
-                    <string>en bas</string>
-                   </property>
-                  </item>
-                  <item>
-                   <property name="text">
-                    <string>à droite </string>
-                   </property>
-                  </item>
                  </widget>
                 </item>
-                <item row="4" column="2">
+                <item row="4" column="3">
                  <widget class="QLineEdit" name="m_file_le">
                   <property name="toolTip">
                    <string>Disponible en tant que %filename pour les modèles de cartouches</string>
                   </property>
                  </widget>
                 </item>
-                <item row="2" column="1">
-                 <widget class="QLabel" name="label_3">
-                  <property name="text">
-                   <string>Auteur :</string>
-                  </property>
-                 </widget>
-                </item>
-                <item row="3" column="2">
+                <item row="3" column="3">
                  <layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1,0">
                   <item row="0" column="0">
                    <widget class="QRadioButton" name="m_no_date_rb">
@@ -270,58 +284,21 @@
                   </item>
                  </layout>
                 </item>
-                <item row="2" column="2">
-                 <widget class="QLineEdit" name="m_author_le">
+                <item row="5" column="3">
+                 <widget class="QLineEdit" name="m_folio_le">
                   <property name="toolTip">
-                   <string>Disponible en tant que %author pour les modèles de cartouches</string>
+                   <string>Disponible en tant que %folio pour les modèles de cartouches</string>
                   </property>
                  </widget>
                 </item>
-                <item row="8" column="1">
-                 <widget class="QLabel" name="label">
+                <item row="1" column="1">
+                 <widget class="QLabel" name="label_2">
                   <property name="text">
-                   <string>Afficher :</string>
+                   <string>Titre :</string>
                   </property>
                  </widget>
                 </item>
-                <item row="7" column="2">
-                 <layout class="QGridLayout" name="gridLayout">
-                  <item row="0" column="0">
-                   <widget class="QComboBox" name="auto_page_cb">
-                    <property name="sizePolicy">
-                     <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
-                      <horstretch>0</horstretch>
-                      <verstretch>0</verstretch>
-                     </sizepolicy>
-                    </property>
-                   </widget>
-                  </item>
-                  <item row="0" column="1">
-                   <widget class="QPushButton" name="m_edit_autofolionum_pb">
-                    <property name="sizePolicy">
-                     <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
-                      <horstretch>0</horstretch>
-                      <verstretch>0</verstretch>
-                     </sizepolicy>
-                    </property>
-                    <property name="minimumSize">
-                     <size>
-                      <width>16</width>
-                      <height>16</height>
-                     </size>
-                    </property>
-                    <property name="text">
-                     <string/>
-                    </property>
-                    <property name="icon">
-                     <iconset resource="../../qelectrotech.qrc">
-                      <normaloff>:/ico/16x16/configure.png</normaloff>:/ico/16x16/configure.png</iconset>
-                    </property>
-                   </widget>
-                  </item>
-                 </layout>
-                </item>
-                <item row="7" column="1">
+                <item row="10" column="1">
                  <widget class="QLabel" name="label_9">
                   <property name="sizePolicy">
                    <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
@@ -334,6 +311,59 @@
                   </property>
                  </widget>
                 </item>
+                <item row="12" column="3">
+                 <widget class="QComboBox" name="m_display_at_cb">
+                  <property name="toolTip">
+                   <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Affiche le cartouche en bas (horizontalement) ou à droite (verticalement) du folio.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+                  </property>
+                  <item>
+                   <property name="text">
+                    <string>en bas</string>
+                   </property>
+                  </item>
+                  <item>
+                   <property name="text">
+                    <string>à droite </string>
+                   </property>
+                  </item>
+                 </widget>
+                </item>
+                <item row="11" column="3">
+                 <widget class="QLabel" name="label_7">
+                  <property name="frameShape">
+                   <enum>QFrame::NoFrame</enum>
+                  </property>
+                  <property name="text">
+                   <string>Les variables suivantes sont utilisables dans le champ Folio :
+- %id : numéro du folio courant dans le projet 
+- %total : nombre total de folios dans le projet 
+- %autonum : Folio Auto Numeration</string>
+                  </property>
+                  <property name="scaledContents">
+                   <bool>false</bool>
+                  </property>
+                  <property name="alignment">
+                   <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+                  </property>
+                 </widget>
+                </item>
+                <item row="6" column="1">
+                 <widget class="QLabel" name="label_10">
+                  <property name="text">
+                   <string>Machine :</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="8" column="1">
+                 <widget class="QLabel" name="label_11">
+                  <property name="text">
+                   <string>Localisation</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="9" column="3">
+                 <widget class="QLineEdit" name="m_indice"/>
+                </item>
                </layout>
               </item>
              </layout>

4,625

(24 replies, posted in Import DXF)

Try 
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake  or qt5-qmake
make