Reapply "Auto-break conductor"

This reverts commit 905afc1bbc.
This commit is contained in:
Laurent Trinques
2026-08-08 07:03:50 +02:00
parent b6e43f78d0
commit e8f80697f3
5 changed files with 293 additions and 8 deletions
+4
View File
@@ -90,6 +90,7 @@ class QETProject : public QObject
};
Q_PROPERTY(bool autoConductor READ autoConductor WRITE setAutoConductor)
Q_PROPERTY(bool autoBreakConductor READ autoBreakConductor WRITE setAutoBreakConductor)
// constructors, destructor
public:
@@ -181,9 +182,11 @@ class QETProject : public QObject
void setFreezeNewConductors(bool);
bool autoConductor () const;
bool autoBreakConductor () const;
bool autoElement () const;
bool autoFolio () const;
void setAutoConductor (bool ac);
void setAutoBreakConductor (bool abc);
void setAutoElement (bool ae);
void autoFolioNumberingNewFolios ();
void autoFolioNumberingSelectedFolios(int, int, const QString&);
@@ -318,6 +321,7 @@ class QETProject : public QObject
QHash <QString, NumerotationContext> m_element_autonum; //Title and NumContext hash
QString m_current_element_autonum;
bool m_auto_conductor = true;
bool m_auto_break_conductor = false;
XmlElementCollection *m_elements_collection = nullptr;
bool m_freeze_new_elements = false;
bool m_freeze_new_conductors = false;