@ Nuri :
J'ai remarqué pas mal de warnings en compilant ce commit, je pense que les soucis que tu mentionnes viennent de là !
4,801 2017-12-14 13:02:12
Re: Nouveautés de la version de développement 0.7 (554 replies, posted in News)
4,802 2017-12-11 13:05:08
Re: Nouveautés de la version de développement 0.7 (554 replies, posted in News)
@ scorpio810 :
Ah, cela n'agit que sur diagramitemfont.
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.
4,803 2017-12-11 03:00:24
Re: Nouveautés de la version de développement 0.7 (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

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,804 2017-12-10 18:36:25
Re: Nouveautés de la version de développement 0.7 (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 !
[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,805 2017-12-10 14:58:12
Re: Nouveautés de la version de développement 0.7 (554 replies, posted in News)
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 :
4,806 2017-12-10 03:24:40
Re: Nouveautés de la version de développement 0.7 (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,807 2017-12-09 18:28:17
Re: install the DXF converter 2017-Jul-18 (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,808 2017-12-08 18:33:53
Re: install the DXF converter 2017-Jul-18 (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?
4,809 2017-12-08 17:03:11
Re: Modification du sommaire (20 replies, posted in FR : Aide, suggestions, discussions, ...)
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
.
Non, t’inquiète pas je ne risque pas de me fâcher
: 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
4,810 2017-12-08 16:48:03
Re: Modification du sommaire (20 replies, posted in FR : Aide, suggestions, discussions, ...)
@ 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.
4,811 2017-12-08 16:23:14
Re: Modification du sommaire (20 replies, posted in FR : Aide, suggestions, discussions, ...)
L'export DXF me parait moins important qu'un sommaire digne de ce nom ...
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? ![]()
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,812 2017-12-08 15:41:33
Re: install the DXF converter 2017-Jul-18 (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_DBGo to directory :
cd DXFtoQET3_DB/Compilation
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
make -j$(nproc)Make it executable
chmod +x ./DXFtoQETTest if run
./DXFtoQETNow move or copy to QET user folder
mv ./DXFtoQET ~/.qet/Now, the DXF converter can be started from the QET editor menu.
4,813 2017-12-08 15:18:24
Re: Modification du sommaire (20 replies, posted in FR : Aide, suggestions, discussions, ...)
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><html><head/><body><p>Affiche le cartouche en bas (horizontalement) ou à droite (verticalement) du folio.</p></body></html></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><html><head/><body><p>Affiche le cartouche en bas (horizontalement) ou à droite (verticalement) du folio.</p></body></html></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,814 2017-12-07 21:18:06
Re: install the DXF converter 2017-Jul-18 (24 replies, posted in Import DXF)
Try
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake or qt5-qmake
make
4,815 2017-12-07 17:00:38
Re: install the DXF converter 2017-Jul-18 (24 replies, posted in Import DXF)
These can not be installed (libQt5Widgets.so.5, libQt5Gui.so.5, libQt5Sql.so.5, libQt5Core.so.5, libGL.so.1, libpthread.so.0, libstdc ++. So.6, libm. so.6, libgcc_s.so.1, libc.so.6)
libQt5Core.so.5 etc is libs name when you install libqt5core5a package.
open your DXFtoQET3_DB in a terminal
qmake-qt5 # or qmake
make
4,816 2017-12-07 16:51:52
Re: Problème affichage fenêtre configuration (15 replies, posted in FR : Aide, suggestions, discussions, ...)
@ Nuri : oui mais le but de la manœuvre sur le widget "à propos de QET" étant de recenser tous les traducteurs, contributeurs ayant participer aux projet et je préfère conserver même ceux qui ont quitté le projet, certes ont pourrait ré arrangés ces pages.
De plus ont ne vas pas chaque fois augmenter la taille de ce widget pour afficher sans élargissement manuel par l'user tous les contributeurs anciens et nouveaux ( je préfère que tout ceux qui ont contribué soit affichés ... dans le but de ne froisser personne), liste qui devrait grossir dans le futur, et demander un écran 4k juste pour elle. ![]()
Revision: 5149
Author: scorpio810
Date: 2017-12-07 15:41:07 +0100 (Thu, 07 Dec 2017)
Log Message:
-----------
Improve aboutqet widget and layout
4,817 2017-12-07 16:10:49
Re: Problème affichage fenêtre configuration (15 replies, posted in FR : Aide, suggestions, discussions, ...)
Bon, ça pourrait donner ceci et contenter même ceux avec des écrans avec résolution basse.

Ou ça :
4,818 2017-12-07 07:18:34
Re: install the DXF converter 2017-Jul-18 (24 replies, posted in Import DXF)
Don't upgrade your XUBUNTU 16.04 to 17.10, just install needed Qt 5.5.1 libs for compile and build yourself DXFtoQET3_DB.
The goal is to build plugin with your Qt version installed in your distrib.
Best regards,
Laurent
4,819 2017-12-06 15:36:28
Re: Problème affichage fenêtre configuration (15 replies, posted in FR : Aide, suggestions, discussions, ...)
J'ai téléchargé la dernière version
[size=4]QElectroTech V 0.70-dev+svn5147
Compilation : GCC 5.4.0 20160609 - built with Qt 5.5.1 - run with Qt 5.5.1Par contre le problème d'affichage persiste toujours notamment dans la fenêtre A propos de Qelectrotech où le bouton fermer n'apparait pas.
Oui c'est possible je ne l'ai pas retouché celle-la, mais pour le widget configuration du projet, etc ce doit être mieux, non?
4,820 2017-12-06 13:57:13
Re: QElectroTech version 0.6 Release Candidate 3 released (3 replies, posted in News)
Nouveaux builds de la 0.6 Version 0.6 (RC3) +svn5146
4,821 2017-12-06 12:45:57
Re: Problème affichage fenêtre configuration (15 replies, posted in FR : Aide, suggestions, discussions, ...)
Tu devrais voir la nouvelle version sur le PPA dans ton gestionnaire de paquet.
4,822 2017-12-06 00:33:25
Re: Problème affichage fenêtre configuration (15 replies, posted in FR : Aide, suggestions, discussions, ...)
Bonsoir Olivier,
ça devrait être mieux avec la svn 5147 en cours de build.
4,823 2017-12-05 23:52:41
Re: Nouveautés de la version de développement 0.7 (554 replies, posted in News)
Revision: 5141
Author: blacksun
Date: 2017-12-05 21:51:54 +0100 (Tue, 05 Dec 2017)
Log Message:
-----------
Texts group item can be rotate.
The keybord shortcut for texts group alignment change. Now it's ctrl + arrow-left/up/right
Revision: 5142
Author: blacksun
Date: 2017-12-05 22:41:29 +0100 (Tue, 05 Dec 2017)
Log Message:
-----------
Texts group can be removed with the delete key of keybord
4,824 2017-12-05 13:08:02
Re: install the DXF converter 2017-Jul-18 (24 replies, posted in Import DXF)
You need to compile program DXFtoQET3_DB with your Qt libs installed.
4,825 2017-12-05 12:03:23
Re: "erreur d'application" plantage du programme (14 replies, posted in FR : Aide, suggestions, discussions, ...)
bon, là il y a exagération, connecter le disjoncteur au principal EDF, c'est pas conseillé
Clair, pas tres réveillé, et pas trop le temps... je dois me préparer pour aller au taff, le but était de reproduire ton crash.![]()
Et comme tu avais écrit que ça plantait en le reliant sur le rail 10 mn2..
