Mod doc set style de same

This commit is contained in:
Simon De Backer
2020-08-16 11:19:36 +02:00
parent 90417ae509
commit d4ee161c07
274 changed files with 6823 additions and 6756 deletions

View File

@@ -23,9 +23,9 @@
#include "eseventaddarc.h"
/**
* @brief ESEventAddArc::ESEventAddArc
* @param scene
*/
@brief ESEventAddArc::ESEventAddArc
@param scene
*/
ESEventAddArc::ESEventAddArc(ElementScene *scene) :
ESEventInterface(scene),
m_arc(nullptr),
@@ -33,18 +33,18 @@ ESEventAddArc::ESEventAddArc(ElementScene *scene) :
{}
/**
* @brief ESEventAddArc::~ESEventAddArc
*/
@brief ESEventAddArc::~ESEventAddArc
*/
ESEventAddArc::~ESEventAddArc() {
if (m_running || m_abort)
delete m_arc;
}
/**
* @brief ESEventAddPolygon::mousePressEvent
* @param event
* @return
*/
@brief ESEventAddPolygon::mousePressEvent
@param event
@return
*/
bool ESEventAddArc::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
if (event -> button() == Qt::LeftButton)
@@ -79,10 +79,10 @@ bool ESEventAddArc::mousePressEvent(QGraphicsSceneMouseEvent *event)
}
/**
* @brief ESEventAddArc::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddArc::mouseMoveEvent
@param event
@return
*/
bool ESEventAddArc::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
updateHelpCross(event -> scenePos());
if (!m_arc) return false;
@@ -94,10 +94,10 @@ bool ESEventAddArc::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddArc::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddArc::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddArc::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::RightButton) {
if (m_arc) {delete m_arc; m_arc = nullptr;}
@@ -108,10 +108,10 @@ bool ESEventAddArc::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddArc::keyPressEvent
* @param event
* @return
*/
@brief ESEventAddArc::keyPressEvent
@param event
@return
*/
bool ESEventAddArc::keyPressEvent(QKeyEvent *event) {
if (m_arc && event->key() == Qt::Key_Space) {
m_inverted = m_inverted ? false : true;
@@ -123,9 +123,9 @@ bool ESEventAddArc::keyPressEvent(QKeyEvent *event) {
}
/**
* @brief ESEventAddArc::updateArc
* Redraw the arc with curent value
*/
@brief ESEventAddArc::updateArc
Redraw the arc with curent value
*/
void ESEventAddArc::updateArc()
{
qreal width = (m_mouse_pos.x() - m_origin.x())*2;

View File

@@ -25,9 +25,9 @@ class PartArc;
class QGraphicsSceneMouseEvent;
/**
* @brief The ESEventAddArc class
* This ESEvent manage creation of arc in an ElementScene
*/
@brief The ESEventAddArc class
This ESEvent manage creation of arc in an ElementScene
*/
class ESEventAddArc : public ESEventInterface
{
public:

View File

@@ -23,9 +23,9 @@
#include <QUndoStack>
/**
* @brief ESEventAddDynamicTextField::ESEventAddDynamicTextField
* @param scene
*/
@brief ESEventAddDynamicTextField::ESEventAddDynamicTextField
@param scene
*/
ESEventAddDynamicTextField::ESEventAddDynamicTextField(ElementScene *scene) :
ESEventInterface(scene)
{
@@ -35,17 +35,17 @@ ESEventAddDynamicTextField::ESEventAddDynamicTextField(ElementScene *scene) :
}
/**
* @brief ESEventAddDynamicTextField::~ESEventAddDynamicTextField
*/
@brief ESEventAddDynamicTextField::~ESEventAddDynamicTextField
*/
ESEventAddDynamicTextField::~ESEventAddDynamicTextField() {
delete m_text;
}
/**
* @brief ESEventAddDynamicTextField::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddDynamicTextField::mouseMoveEvent
@param event
@return
*/
bool ESEventAddDynamicTextField::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
{
QPointF pos = m_scene->snapToGrid(event->scenePos());
@@ -55,10 +55,10 @@ bool ESEventAddDynamicTextField::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
}
/**
* @brief ESEventAddDynamicTextField::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddDynamicTextField::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddDynamicTextField::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
if (event->button() == Qt::LeftButton)

View File

@@ -25,9 +25,9 @@ class PartDynamicTextField;
class QGraphicsSceneMouseEvent;
/**
* @brief The ESEventAddDynamicTextField class
* This ESEvent manage creation of dynamic text field in an ElementScene
*/
@brief The ESEventAddDynamicTextField class
This ESEvent manage creation of dynamic text field in an ElementScene
*/
class ESEventAddDynamicTextField : public ESEventInterface
{
public:

View File

@@ -23,17 +23,17 @@
#include "elementscene.h"
/**
* @brief ESEventAddEllipse::ESEventAddEllipse
* @param scene
*/
@brief ESEventAddEllipse::ESEventAddEllipse
@param scene
*/
ESEventAddEllipse::ESEventAddEllipse(ElementScene *scene) :
ESEventInterface(scene),
m_ellipse(nullptr)
{}
/**
* @brief ESEventAddEllipse::~ESEventAddEllipse
*/
@brief ESEventAddEllipse::~ESEventAddEllipse
*/
ESEventAddEllipse::~ESEventAddEllipse() {
if (m_running || m_abort){
delete m_ellipse;
@@ -41,10 +41,10 @@ ESEventAddEllipse::~ESEventAddEllipse() {
}
/**
* @brief ESEventAddEllipse::mousePressEvent
* @param event
* @return
*/
@brief ESEventAddEllipse::mousePressEvent
@param event
@return
*/
bool ESEventAddEllipse::mousePressEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::LeftButton) {
if(!m_running) m_running = true;
@@ -72,10 +72,10 @@ bool ESEventAddEllipse::mousePressEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddRect::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddRect::mouseMoveEvent
@param event
@return
*/
bool ESEventAddEllipse::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
updateHelpCross(event -> scenePos());
if (!m_ellipse) return false;
@@ -94,10 +94,10 @@ bool ESEventAddEllipse::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddEllipse::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddEllipse::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddEllipse::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::RightButton) {
if (m_ellipse) {delete m_ellipse; m_ellipse = nullptr;}

View File

@@ -26,9 +26,9 @@ class PartEllipse;
class QGraphicsSceneMouseEvent;
/**
* @brief The ESEventAddEllipse class
* This ESEvent manage creation of ellpise in an ElementScene
*/
@brief The ESEventAddEllipse class
This ESEvent manage creation of ellpise in an ElementScene
*/
class ESEventAddEllipse : public ESEventInterface
{
public:

View File

@@ -25,29 +25,29 @@
#include "editorcommands.h"
/**
* @brief ESEventAddLine::ESEventAddLine
* Constructor
* @param scene : scene where we operate this action
*/
@brief ESEventAddLine::ESEventAddLine
Constructor
@param scene : scene where we operate this action
*/
ESEventAddLine::ESEventAddLine(ElementScene *scene) :
ESEventInterface (scene),
m_line (nullptr)
{}
/**
* @brief ESEventAddLine::~ESEventAddLine
* destructor
*/
@brief ESEventAddLine::~ESEventAddLine
destructor
*/
ESEventAddLine::~ESEventAddLine() {
if (m_running || m_abort)
delete m_line;
}
/**
* @brief ESEventAddLine::mousePressEvent
* @param event
* @return
*/
@brief ESEventAddLine::mousePressEvent
@param event
@return
*/
bool ESEventAddLine::mousePressEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::LeftButton) {
@@ -76,10 +76,10 @@ bool ESEventAddLine::mousePressEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddLine::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddLine::mouseMoveEvent
@param event
@return
*/
bool ESEventAddLine::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
{
updateHelpCross (event -> scenePos());
@@ -92,10 +92,10 @@ bool ESEventAddLine::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
}
/**
* @brief ESEventAddLine::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddLine::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddLine::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::RightButton) {
if (m_line) {delete m_line; m_line = nullptr;}

View File

@@ -25,9 +25,9 @@ class PartLine;
class QGraphicsSceneMouseEvent;
/**
* @brief The ESEventAddLine class
* This ESEvent manage creation of line in a ElementScene
*/
@brief The ESEventAddLine class
This ESEvent manage creation of line in a ElementScene
*/
class ESEventAddLine : public ESEventInterface
{
public:

View File

@@ -23,27 +23,27 @@
#include "editorcommands.h"
/**
* @brief ESEventAddPolygon::ESEventAddPolygon
* @param scene
*/
@brief ESEventAddPolygon::ESEventAddPolygon
@param scene
*/
ESEventAddPolygon::ESEventAddPolygon(ElementScene *scene) :
ESEventInterface(scene),
m_polygon(nullptr)
{}
/**
* @brief ESEventAddPolygon::~ESEventAddPolygon
*/
@brief ESEventAddPolygon::~ESEventAddPolygon
*/
ESEventAddPolygon::~ESEventAddPolygon() {
if (m_running || m_abort)
delete m_polygon;
}
/**
* @brief ESEventAddPolygon::mousePressEvent
* @param event
* @return
*/
@brief ESEventAddPolygon::mousePressEvent
@param event
@return
*/
bool ESEventAddPolygon::mousePressEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::LeftButton) {
if(!m_running) m_running = true;
@@ -63,10 +63,10 @@ bool ESEventAddPolygon::mousePressEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddPolygon::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddPolygon::mouseMoveEvent
@param event
@return
*/
bool ESEventAddPolygon::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
updateHelpCross(event -> scenePos());
if (!m_polygon) return false;
@@ -76,10 +76,10 @@ bool ESEventAddPolygon::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddPolygon::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddPolygon::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddPolygon::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::RightButton) {
if (m_polygon) {
@@ -99,10 +99,10 @@ bool ESEventAddPolygon::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddPolygon::mouseDoubleClickEvent
* @param event
* @return
*/
@brief ESEventAddPolygon::mouseDoubleClickEvent
@param event
@return
*/
bool ESEventAddPolygon::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
{
if (event -> button() == Qt::LeftButton)

View File

@@ -25,9 +25,9 @@ class PartPolygon;
class QGraphicsSceneMouseEvent;
/**
* @brief The ESEventAddPolygon class
* This ESEvent manage creation of polygon in an ElementScene
*/
@brief The ESEventAddPolygon class
This ESEvent manage creation of polygon in an ElementScene
*/
class ESEventAddPolygon : public ESEventInterface
{
public:

View File

@@ -23,27 +23,27 @@
#include "editorcommands.h"
/**
* @brief ESEventAddRect::ESEventAddRect
* @param scene
*/
@brief ESEventAddRect::ESEventAddRect
@param scene
*/
ESEventAddRect::ESEventAddRect(ElementScene *scene) :
ESEventInterface(scene),
m_rect(nullptr)
{}
/**
* @brief ESEventAddRect::~ESEventAddRect
*/
@brief ESEventAddRect::~ESEventAddRect
*/
ESEventAddRect::~ESEventAddRect() {
if (m_running || m_abort)
delete m_rect;
}
/**
* @brief ESEventAddRect::mousePressEvent
* @param event
* @return
*/
@brief ESEventAddRect::mousePressEvent
@param event
@return
*/
bool ESEventAddRect::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
if (event -> button() == Qt::LeftButton)
@@ -75,10 +75,10 @@ bool ESEventAddRect::mousePressEvent(QGraphicsSceneMouseEvent *event)
}
/**
* @brief ESEventAddRect::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddRect::mouseMoveEvent
@param event
@return
*/
bool ESEventAddRect::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
updateHelpCross(event -> scenePos());
if (!m_rect) return false;
@@ -89,10 +89,10 @@ bool ESEventAddRect::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddRect::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddRect::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddRect::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::RightButton) {
if (m_rect) {delete m_rect; m_rect = nullptr;}

View File

@@ -23,9 +23,9 @@
#include "eseventaddterminal.h"
/**
* @brief ESEventAddTerminal::ESEventAddTerminal
* @param scene
*/
@brief ESEventAddTerminal::ESEventAddTerminal
@param scene
*/
ESEventAddTerminal::ESEventAddTerminal(ElementScene *scene) :
ESEventInterface(scene)
{
@@ -35,17 +35,17 @@ ESEventAddTerminal::ESEventAddTerminal(ElementScene *scene) :
}
/**
* @brief ESEventAddTerminal::~ESEventAddTerminal
*/
@brief ESEventAddTerminal::~ESEventAddTerminal
*/
ESEventAddTerminal::~ESEventAddTerminal() {
delete m_terminal;
}
/**
* @brief ESEventAddTerminal::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddTerminal::mouseMoveEvent
@param event
@return
*/
bool ESEventAddTerminal::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
QPointF pos = m_scene -> snapToGrid(event -> scenePos());
updateHelpCross(pos);
@@ -54,10 +54,10 @@ bool ESEventAddTerminal::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddTerminal::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddTerminal::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
if (event -> button() == Qt::LeftButton) {
m_scene -> undoStack().push(new AddPartCommand(QObject::tr("Borne"), m_scene, m_terminal));
@@ -80,10 +80,10 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddTerminal::keyPressEvent
* @param event
* @return
*/
@brief ESEventAddTerminal::keyPressEvent
@param event
@return
*/
bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) {
if (event -> key() == Qt::Key_Space) {
switch (m_terminal->orientation()) {

View File

@@ -25,9 +25,9 @@ class PartTerminal;
class QGraphicsSceneMouseEvent;
/**
* @brief The ESEventAddTerminal class
* This ESEvent manage creation of terminal in an ElementScene
*/
@brief The ESEventAddTerminal class
This ESEvent manage creation of terminal in an ElementScene
*/
class ESEventAddTerminal : public ESEventInterface
{
public:

View File

@@ -23,9 +23,9 @@
#include "elementscene.h"
/**
* @brief ESEventAddText::ESEventAddText
* @param scene
*/
@brief ESEventAddText::ESEventAddText
@param scene
*/
ESEventAddText::ESEventAddText(ElementScene *scene) :
ESEventInterface(scene)
{
@@ -35,17 +35,17 @@ ESEventAddText::ESEventAddText(ElementScene *scene) :
}
/**
* @brief ESEventAddText::~ESEventAddText
*/
@brief ESEventAddText::~ESEventAddText
*/
ESEventAddText::~ESEventAddText() {
delete m_text;
}
/**
* @brief ESEventAddText::mouseMoveEvent
* @param event
* @return
*/
@brief ESEventAddText::mouseMoveEvent
@param event
@return
*/
bool ESEventAddText::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
QPointF pos = m_scene -> snapToGrid(event -> scenePos());
updateHelpCross(pos);
@@ -54,10 +54,10 @@ bool ESEventAddText::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
}
/**
* @brief ESEventAddText::mouseReleaseEvent
* @param event
* @return
*/
@brief ESEventAddText::mouseReleaseEvent
@param event
@return
*/
bool ESEventAddText::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
if (event->button() == Qt::LeftButton) {
m_scene -> undoStack().push(new AddPartCommand(QObject::tr("Texte"), m_scene, m_text));

View File

@@ -25,9 +25,9 @@ class PartText;
class QGraphicsSceneMouseEvent;
/**
* @brief The ESEventAddText class
* This ESEvent manage creation of text in an ElementScene
*/
@brief The ESEventAddText class
This ESEvent manage creation of text in an ElementScene
*/
class ESEventAddText : public ESEventInterface
{
public:

View File

@@ -32,9 +32,9 @@ ESEventInterface::ESEventInterface(ElementScene *scene) :
}
/**
* @brief ESEventInterface::init
* Init this event interface
*/
@brief ESEventInterface::init
Init this event interface
*/
void ESEventInterface::init()
{
m_scene->setBehavior(ElementScene::Behavior::AddPart);
@@ -42,9 +42,9 @@ void ESEventInterface::init()
}
/**
* @brief ESEventInterface::~ESEventInterface
* Destructor
*/
@brief ESEventInterface::~ESEventInterface
Destructor
*/
ESEventInterface::~ESEventInterface()
{
delete m_help_horiz;
@@ -80,11 +80,11 @@ bool ESEventInterface::wheelEvent(QGraphicsSceneWheelEvent *event) {
}
/**
* @brief ESEventInterface::keyPressEvent
* By default, press escape key abort the curent action
* @param event
* @return
*/
@brief ESEventInterface::keyPressEvent
By default, press escape key abort the curent action
@param event
@return
*/
bool ESEventInterface::keyPressEvent(QKeyEvent *event) {
if (event->key() == Qt::Key_Escape) {
m_running = false;