mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Fix indentation
This commit is contained in:
committed by
Laurent Trinques
parent
01d97246ce
commit
41b0434c20
@@ -89,14 +89,13 @@ class Diagram : public QGraphicsScene
|
|||||||
static int xKeyGrid;
|
static int xKeyGrid;
|
||||||
/// Key grid y step size
|
/// Key grid y step size
|
||||||
static int yKeyGrid;
|
static int yKeyGrid;
|
||||||
/// Key grid fine x step size
|
/// Key grid fine x step size
|
||||||
static int xKeyGridFine;
|
static int xKeyGridFine;
|
||||||
/// Key grid fine y step size
|
/// Key grid fine y step size
|
||||||
static int yKeyGridFine;
|
static int yKeyGridFine;
|
||||||
/// margin around the diagram
|
/// margin around the diagram
|
||||||
static const qreal margin;
|
static const qreal margin;
|
||||||
/// background color of diagram
|
/// background color of diagram
|
||||||
|
|
||||||
static QColor background_color;
|
static QColor background_color;
|
||||||
/// Hash containing max values for folio sequential autonums in this diagram
|
/// Hash containing max values for folio sequential autonums in this diagram
|
||||||
QHash <QString, QStringList> m_elmt_unitfolio_max;
|
QHash <QString, QStringList> m_elmt_unitfolio_max;
|
||||||
@@ -146,21 +145,21 @@ class Diagram : public QGraphicsScene
|
|||||||
QUuid uuid();
|
QUuid uuid();
|
||||||
void setEventInterface (DiagramEventInterface *event_interface);
|
void setEventInterface (DiagramEventInterface *event_interface);
|
||||||
void clearEventInterface();
|
void clearEventInterface();
|
||||||
|
|
||||||
//methods related to autonum
|
//methods related to autonum
|
||||||
QString conductorsAutonumName() const;
|
QString conductorsAutonumName() const;
|
||||||
void setConductorsAutonumName(const QString &name);
|
void setConductorsAutonumName(const QString &name);
|
||||||
|
|
||||||
static bool clipboardMayContainDiagram();
|
static bool clipboardMayContainDiagram();
|
||||||
|
|
||||||
// methods related to parent project
|
// methods related to parent project
|
||||||
QETProject *project() const;
|
QETProject *project() const;
|
||||||
int folioIndex() const;
|
int folioIndex() const;
|
||||||
qreal declaredQElectroTechVersion(bool = true) const;
|
qreal declaredQElectroTechVersion(bool = true) const;
|
||||||
void showMe() {emit showDiagram(this);}
|
void showMe() {emit showDiagram(this);}
|
||||||
bool isReadOnly() const;
|
bool isReadOnly() const;
|
||||||
|
|
||||||
// methods related to conductor creation
|
// methods related to conductor creation
|
||||||
void setConductor(bool);
|
void setConductor(bool);
|
||||||
void setConductorStart (QPointF);
|
void setConductorStart (QPointF);
|
||||||
void setConductorStop(QPointF);
|
void setConductorStop(QPointF);
|
||||||
@@ -176,11 +175,11 @@ class Diagram : public QGraphicsScene
|
|||||||
|
|
||||||
void refreshContents();
|
void refreshContents();
|
||||||
|
|
||||||
// methods related to graphics items addition/removal on the diagram
|
// methods related to graphics items addition/removal on the diagram
|
||||||
virtual void addItem (QGraphicsItem *item);
|
virtual void addItem (QGraphicsItem *item);
|
||||||
virtual void removeItem (QGraphicsItem *item);
|
virtual void removeItem (QGraphicsItem *item);
|
||||||
|
|
||||||
// methods related to graphics options
|
// methods related to graphics options
|
||||||
ExportProperties applyProperties(const ExportProperties &);
|
ExportProperties applyProperties(const ExportProperties &);
|
||||||
void setDisplayGrid(bool);
|
void setDisplayGrid(bool);
|
||||||
bool displayGrid();
|
bool displayGrid();
|
||||||
@@ -215,13 +214,13 @@ class Diagram : public QGraphicsScene
|
|||||||
QUndoStack &undoStack();
|
QUndoStack &undoStack();
|
||||||
QGIManager &qgiManager();
|
QGIManager &qgiManager();
|
||||||
|
|
||||||
//methods related to element label Update Policy
|
//methods related to element label Update Policy
|
||||||
void freezeElements(bool freeze);
|
void freezeElements(bool freeze);
|
||||||
void unfreezeElements();
|
void unfreezeElements();
|
||||||
void setFreezeNewElements(bool);
|
void setFreezeNewElements(bool);
|
||||||
bool freezeNewElements();
|
bool freezeNewElements();
|
||||||
|
|
||||||
//methods related to conductor label Update Policy
|
//methods related to conductor label Update Policy
|
||||||
void freezeConductors(bool freeze);
|
void freezeConductors(bool freeze);
|
||||||
void setFreezeNewConductors(bool);
|
void setFreezeNewConductors(bool);
|
||||||
bool freezeNewConductors();
|
bool freezeNewConductors();
|
||||||
@@ -241,7 +240,7 @@ class Diagram : public QGraphicsScene
|
|||||||
void loadElmtFolioSeq();
|
void loadElmtFolioSeq();
|
||||||
void loadCndFolioSeq();
|
void loadCndFolioSeq();
|
||||||
|
|
||||||
// methods related to graphics items selection
|
// methods related to graphics items selection
|
||||||
void selectAll();
|
void selectAll();
|
||||||
void deselectAll();
|
void deselectAll();
|
||||||
void invertSelection();
|
void invertSelection();
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class ElementScene : public QGraphicsScene
|
|||||||
QString m_informations; /// Extra informations
|
QString m_informations; /// Extra informations
|
||||||
QString m_elmt_type; /// element type
|
QString m_elmt_type; /// element type
|
||||||
DiagramContext m_elmt_kindInfo,
|
DiagramContext m_elmt_kindInfo,
|
||||||
m_elmt_information; /// element kind info
|
m_elmt_information; /// element kind info
|
||||||
QGIManager m_qgi_manager;
|
QGIManager m_qgi_manager;
|
||||||
QUndoStack m_undo_stack;
|
QUndoStack m_undo_stack;
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ class ElementScene : public QGraphicsScene
|
|||||||
ElementPrimitiveDecorator *m_decorator = nullptr;
|
ElementPrimitiveDecorator *m_decorator = nullptr;
|
||||||
|
|
||||||
int m_x_grid,
|
int m_x_grid,
|
||||||
m_y_grid;
|
m_y_grid;
|
||||||
|
|
||||||
// methods
|
// methods
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user