mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Mise a jour du displayedVersion et du splash screen
Purge des caracteres non-ASCII dans les sources Mise a jour du fichier de configuration Doxyfile, pour generer la documentation git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@582 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
BIN
ico/splash.png
BIN
ico/splash.png
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 26 KiB |
@@ -21,7 +21,7 @@
|
|||||||
class QLabel;
|
class QLabel;
|
||||||
/**
|
/**
|
||||||
Cette classe represente la boite de dialogue
|
Cette classe represente la boite de dialogue
|
||||||
« A propos de QElectroTech »
|
"A propos de QElectroTech".
|
||||||
*/
|
*/
|
||||||
class AboutQET : public QDialog {
|
class AboutQET : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|||||||
@@ -361,40 +361,40 @@ void Conductor::priv_calculeConductor(const QPointF &p1, QET::Orientation o1, co
|
|||||||
if (depart.y() < arrivee.y()) {
|
if (depart.y() < arrivee.y()) {
|
||||||
// trajet descendant
|
// trajet descendant
|
||||||
if ((ori_depart == QET::North && (ori_arrivee == QET::South || ori_arrivee == QET::West)) || (ori_depart == QET::East && ori_arrivee == QET::West)) {
|
if ((ori_depart == QET::North && (ori_arrivee == QET::South || ori_arrivee == QET::West)) || (ori_depart == QET::East && ori_arrivee == QET::West)) {
|
||||||
// cas « 3 »
|
// cas "3"
|
||||||
int ligne_inter_x = qRound(depart.x() + arrivee.x()) / 2;
|
int ligne_inter_x = qRound(depart.x() + arrivee.x()) / 2;
|
||||||
while (ligne_inter_x % Diagram::xGrid) -- ligne_inter_x;
|
while (ligne_inter_x % Diagram::xGrid) -- ligne_inter_x;
|
||||||
points << QPointF(ligne_inter_x, depart.y());
|
points << QPointF(ligne_inter_x, depart.y());
|
||||||
points << QPointF(ligne_inter_x, arrivee.y());
|
points << QPointF(ligne_inter_x, arrivee.y());
|
||||||
} else if ((ori_depart == QET::South && (ori_arrivee == QET::North || ori_arrivee == QET::East)) || (ori_depart == QET::West && ori_arrivee == QET::East)) {
|
} else if ((ori_depart == QET::South && (ori_arrivee == QET::North || ori_arrivee == QET::East)) || (ori_depart == QET::West && ori_arrivee == QET::East)) {
|
||||||
// cas « 4 »
|
// cas "4"
|
||||||
int ligne_inter_y = qRound(depart.y() + arrivee.y()) / 2;
|
int ligne_inter_y = qRound(depart.y() + arrivee.y()) / 2;
|
||||||
while (ligne_inter_y % Diagram::yGrid) -- ligne_inter_y;
|
while (ligne_inter_y % Diagram::yGrid) -- ligne_inter_y;
|
||||||
points << QPointF(depart.x(), ligne_inter_y);
|
points << QPointF(depart.x(), ligne_inter_y);
|
||||||
points << QPointF(arrivee.x(), ligne_inter_y);
|
points << QPointF(arrivee.x(), ligne_inter_y);
|
||||||
} else if ((ori_depart == QET::North || ori_depart == QET::East) && (ori_arrivee == QET::North || ori_arrivee == QET::East)) {
|
} else if ((ori_depart == QET::North || ori_depart == QET::East) && (ori_arrivee == QET::North || ori_arrivee == QET::East)) {
|
||||||
points << QPointF(arrivee.x(), depart.y()); // cas « 2 »
|
points << QPointF(arrivee.x(), depart.y()); // cas "2"
|
||||||
} else {
|
} else {
|
||||||
points << QPointF(depart.x(), arrivee.y()); // cas « 1 »
|
points << QPointF(depart.x(), arrivee.y()); // cas "1"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// trajet montant
|
// trajet montant
|
||||||
if ((ori_depart == QET::West && (ori_arrivee == QET::East || ori_arrivee == QET::South)) || (ori_depart == QET::North && ori_arrivee == QET::South)) {
|
if ((ori_depart == QET::West && (ori_arrivee == QET::East || ori_arrivee == QET::South)) || (ori_depart == QET::North && ori_arrivee == QET::South)) {
|
||||||
// cas « 3 »
|
// cas "3"
|
||||||
int ligne_inter_y = qRound(depart.y() + arrivee.y()) / 2;
|
int ligne_inter_y = qRound(depart.y() + arrivee.y()) / 2;
|
||||||
while (ligne_inter_y % Diagram::yGrid) -- ligne_inter_y;
|
while (ligne_inter_y % Diagram::yGrid) -- ligne_inter_y;
|
||||||
points << QPointF(depart.x(), ligne_inter_y);
|
points << QPointF(depart.x(), ligne_inter_y);
|
||||||
points << QPointF(arrivee.x(), ligne_inter_y);
|
points << QPointF(arrivee.x(), ligne_inter_y);
|
||||||
} else if ((ori_depart == QET::East && (ori_arrivee == QET::West || ori_arrivee == QET::North)) || (ori_depart == QET::South && ori_arrivee == QET::North)) {
|
} else if ((ori_depart == QET::East && (ori_arrivee == QET::West || ori_arrivee == QET::North)) || (ori_depart == QET::South && ori_arrivee == QET::North)) {
|
||||||
// cas « 4 »
|
// cas "4"
|
||||||
int ligne_inter_x = qRound(depart.x() + arrivee.x()) / 2;
|
int ligne_inter_x = qRound(depart.x() + arrivee.x()) / 2;
|
||||||
while (ligne_inter_x % Diagram::xGrid) -- ligne_inter_x;
|
while (ligne_inter_x % Diagram::xGrid) -- ligne_inter_x;
|
||||||
points << QPointF(ligne_inter_x, depart.y());
|
points << QPointF(ligne_inter_x, depart.y());
|
||||||
points << QPointF(ligne_inter_x, arrivee.y());
|
points << QPointF(ligne_inter_x, arrivee.y());
|
||||||
} else if ((ori_depart == QET::West || ori_depart == QET::North) && (ori_arrivee == QET::West || ori_arrivee == QET::North)) {
|
} else if ((ori_depart == QET::West || ori_depart == QET::North) && (ori_arrivee == QET::West || ori_arrivee == QET::North)) {
|
||||||
points << QPointF(depart.x(), arrivee.y()); // cas « 2 »
|
points << QPointF(depart.x(), arrivee.y()); // cas "2"
|
||||||
} else {
|
} else {
|
||||||
points << QPointF(arrivee.x(), depart.y()); // cas « 1 »
|
points << QPointF(arrivee.x(), depart.y()); // cas "1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ QDomDocument Diagram::toXml(bool diagram) {
|
|||||||
QList<Conductor *> list_conductors;
|
QList<Conductor *> list_conductors;
|
||||||
QList<DiagramTextItem *> list_texts;
|
QList<DiagramTextItem *> list_texts;
|
||||||
|
|
||||||
// Determine les elements a « XMLiser »
|
// Determine les elements a "XMLiser"
|
||||||
foreach(QGraphicsItem *qgi, items()) {
|
foreach(QGraphicsItem *qgi, items()) {
|
||||||
if (Element *elmt = qgraphicsitem_cast<Element *>(qgi)) {
|
if (Element *elmt = qgraphicsitem_cast<Element *>(qgi)) {
|
||||||
if (diagram) list_elements << elmt;
|
if (diagram) list_elements << elmt;
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ class Diagram : public QGraphicsScene {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Permet d'ajouter ou enlever le « poseur de conducteur », c'est-a-dire la
|
Permet d'ajouter ou enlever le "poseur de conducteur", c'est-a-dire la
|
||||||
droite en pointilles qui apparait lorsqu'on pose un conducteur entre deux
|
droite en pointilles qui apparait lorsqu'on pose un conducteur entre deux
|
||||||
bornes.
|
bornes.
|
||||||
@param pf true pour ajouter le poseur de conducteur, false pour l'enlever
|
@param pf true pour ajouter le poseur de conducteur, false pour l'enlever
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace QET {
|
|||||||
/// version de QElectroTech (utilisee pour estampiller les projets et elements)
|
/// version de QElectroTech (utilisee pour estampiller les projets et elements)
|
||||||
const QString version = "0.2";
|
const QString version = "0.2";
|
||||||
/// version affichee de QElectroTech
|
/// version affichee de QElectroTech
|
||||||
const QString displayedVersion = version;
|
const QString displayedVersion = "0.2a";
|
||||||
QString license();
|
QString license();
|
||||||
/// Orientation (utilise pour les bornes mais aussi pour les elements)
|
/// Orientation (utilise pour les bornes mais aussi pour les elements)
|
||||||
enum Orientation {North, East, South, West};
|
enum Orientation {North, East, South, West};
|
||||||
|
|||||||
@@ -819,7 +819,7 @@ void QETApp::initConfiguration() {
|
|||||||
Construit l'icone dans le systray et son menu
|
Construit l'icone dans le systray et son menu
|
||||||
*/
|
*/
|
||||||
void QETApp::initSystemTray() {
|
void QETApp::initSystemTray() {
|
||||||
setSplashScreenStep(tr("Chargement... icône du systray", "splash screen caption"));
|
setSplashScreenStep(tr("Chargement... ic\364ne du systray", "splash screen caption"));
|
||||||
// initialisation des menus de l'icone dans le systray
|
// initialisation des menus de l'icone dans le systray
|
||||||
menu_systray = new QMenu(tr("QElectroTech", "systray menu title"));
|
menu_systray = new QMenu(tr("QElectroTech", "systray menu title"));
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ void QETDiagramEditor::toggleFullScreen() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Dialogue « A propos de QElectroTech »
|
Dialogue "A propos de QElectroTech"
|
||||||
Le dialogue en question est cree lors du premier appel de cette fonction.
|
Le dialogue en question est cree lors du premier appel de cette fonction.
|
||||||
En consequence, sa premiere apparition n'est pas immediate. Par la suite,
|
En consequence, sa premiere apparition n'est pas immediate. Par la suite,
|
||||||
le dialogue n'a pas a etre recree et il apparait instantanement. Il est
|
le dialogue n'a pas a etre recree et il apparait instantanement. Il est
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ class RecentFiles;
|
|||||||
Cette classe represente la fenetre principale de QElectroTech et,
|
Cette classe represente la fenetre principale de QElectroTech et,
|
||||||
ipso facto, la plus grande partie de l'interface graphique de QElectroTech.
|
ipso facto, la plus grande partie de l'interface graphique de QElectroTech.
|
||||||
Il s'agit d'un objet QMainWindow avec un QWorkSpace contenant des objets
|
Il s'agit d'un objet QMainWindow avec un QWorkSpace contenant des objets
|
||||||
« DiagramView » en guise de widget central et un « Panel d'Elements » en
|
"DiagramView" en guise de widget central et un "Panel d'Elements" en
|
||||||
guise de widget « Dock ».
|
guise de widget "Dock".
|
||||||
*/
|
*/
|
||||||
class QETDiagramEditor : public QMainWindow {
|
class QETDiagramEditor : public QMainWindow {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class Conductor;
|
|||||||
class Diagram;
|
class Diagram;
|
||||||
class Element;
|
class Element;
|
||||||
/**
|
/**
|
||||||
Classe modelisant la « borne » d'un appareil, c'est-a-dire un
|
Classe modelisant la "borne" d'un appareil, c'est-a-dire un
|
||||||
branchement possible pour un Conducteur.
|
branchement possible pour un Conducteur.
|
||||||
*/
|
*/
|
||||||
class Terminal : public QGraphicsItem {
|
class Terminal : public QGraphicsItem {
|
||||||
|
|||||||
Reference in New Issue
Block a user