I played with it yesterday, but it is not that easy to add it.

example
from

<conductor onetextperfolio="1" color2="#ff0000" displaytext="1" terminal1="23" freezeLabel="false" function="" tension-protocol="" bicolor="true" terminal2="{b5bb2186-29f5-4b62-baa7-8267cc4afb93}" horizontal-alignment="AlignBottom" section-conducteur="" formula="" element2="{2d2c36fc-594a-40bb-8b5f-201b9adea815}" type="multi" numsize="7" horizrotatetext="0" dash-size="2" x="0" num="test" y="0" condsize="1" couleur-conducteur="" vertirotatetext="270" vertical-alignment="AlignRight">
                <sequentialNumbers/>
            </conductor>

to

<conductor function="" text_color="#0000ff" horizrotatetext="0" vertirotatetext="270" couleur-conducteur="" numsize="7" num="test" bicolor="true" section-conducteur="" condsize="1" vertical-alignment="AlignRight" color2="#ff0000" type="multi" x="0" horizontal-alignment="AlignBottom" freezeLabel="false" terminal2="{b5bb2186-29f5-4b62-baa7-8267cc4afb93}" tension-protocol="" element2="{2d2c36fc-594a-40bb-8b5f-201b9adea815}" dash-size="2" terminal1="15" formula="" displaytext="1" y="0" onetextperfolio="1">
                <sequentialNumbers/>
            </conductor>

Edit @Simon you can use tag code=xml. nomicons/wink   GeSHi - Generic Syntax Highlighter.

Aleksandr wrote:

Yes, with paths to other pages this works. But with the text number / name of the conductor, such a property does not appear. I'm not very worried about this. I put the slope of the text. It also stands out very well and users like it. Only one thing is bad - you cannot put this turn automatically on the entire project. Or I don’t know how to do it.

OK I think this can work, but !! this has not been tested for errors yet !!! if you want to test this make backups of your files !!!

he is probably referring to the "renderCell"

titleblocktemplate.cpp@1312

Aleksandr wrote:

Yes, with paths to other pages this works. But with the text number / name of the conductor, such a property does not appear. I'm not very worried about this. I put the slope of the text. It also stands out very well and users like it. Only one thing is bad - you cannot put this turn automatically on the entire project. Or I don’t know how to do it.

ya, it's not yet in the software.

/**
 * @brief ConductorPropertiesWidget::properties
 * @return the edited properties
 */
ConductorProperties ConductorPropertiesWidget::properties() const
{
    ConductorProperties properties_;
    if (ui -> m_multiwires_gb  -> isChecked()) properties_.type = ConductorProperties::Multi;
    else if (ui -> m_singlewire_gb -> isChecked()) properties_.type = ConductorProperties::Single;

    properties_.color                   = ui -> m_color_kpb->color();
    properties_.m_bicolor               = ui->m_color_2_gb->isChecked();
    properties_.m_color_2               = ui->m_color_2_kpb->color();
    properties_.m_dash_size             = ui->m_dash_size_sb->value();
    properties_.style                   = ui -> m_line_style_cb->itemData(ui->m_line_style_cb->currentIndex()).value<QPen>().style();
    properties_.m_formula               = ui->m_formula_le->text();
    properties_.text                    = ui -> m_text_le -> text();
    properties_.m_function              = ui -> m_function_le->text();
    properties_.m_tension_protocol      = ui -> m_tension_protocol_le->text();
    properties_.m_wire_color            = ui -> m_wire_color_le->text();
    properties_.m_wire_section          = ui -> m_wire_section_le->text();
    properties_.text_size               = ui -> m_text_size_sb -> value();
    properties_.cond_size               = ui -> m_cond_size_sb -> value();
    properties_.m_show_text             = ui -> m_show_text_cb -> isChecked();
    properties_.m_one_text_per_folio    = ui -> m_one_text_per_folio_cb -> isChecked();
    properties_.verti_rotate_text       = m_verti_select -> value();
    properties_.horiz_rotate_text       = m_horiz_select -> value();
    properties_.m_vertical_alignment    = ui->m_verti_cb->currentIndex() == 0? Qt::AlignLeft : Qt::AlignRight;
    properties_.m_horizontal_alignment  = ui->m_horiz_cb->currentIndex() == 0? Qt::AlignTop : Qt::AlignBottom;

    properties_.singleLineProperties.hasGround  = ui -> m_earth_cb -> isChecked();
    properties_.singleLineProperties.hasNeutral = ui -> m_neutral_cb -> isChecked();
    properties_.singleLineProperties.is_pen     = ui -> m_pen_cb -> isChecked();
    properties_.singleLineProperties.setPhasesCount(ui -> m_phase_cb -> isChecked() ? ui -> m_phase_sb -> value() : 0);

    return properties_;
}

De-Backer wrote:

extra info:
https://doc.qt.io/qt-5/scalability.html
https://doc.qt.io/qt-5/qdesktopwidget.html

https://stackoverflow.com/questions/246 … tion-in-qt
QUiLoader: basically put the * .ui files in resources and then get the right one, see "calculator builder" in Examples

another alternative ui

I forgot to add patch.

you mean this?

you can do this.

you mean this?

otherwise there is still room here

extra info:
https://doc.qt.io/qt-5/scalability.html
https://doc.qt.io/qt-5/qdesktopwidget.html

https://stackoverflow.com/questions/246 … tion-in-qt
QUiLoader: basically put the * .ui files in resources and then get the right one, see "calculator builder" in Examples

another alternative ui

Is this sometimes a solution for you?

for the developer:
this is a quick and not thoughtful change please don't consider this ok.

462

(11 replies, posted in Elements)

thank you i will add it to the new Elements

463

(11 replies, posted in Elements)

what is the new address for the license

http://qelectrotech.org/wiki/doc/elements_license

is Not Found
The requested URL was not found on this server.

464

(8 replies, posted in Code)

I screwed up the zoom function

see 71abaf92cb81aeb832caac2372da2d60944f64b9

465

(11 replies, posted in Elements)

some translations

466

(8 replies, posted in Code)

my os "openSUSE  Tumbleweed" is giving problems...

Project ERROR: Unknown module(s) in QT: KWidgetsAddons KCoreAddons

qmake don't find the dir of KWidgetsAddons KCoreAddons.

467

(8 replies, posted in Code)

what are the settings for Debug mode build for you?
Debug mode does not work for me.

468

(8 replies, posted in Code)

no longer compiles from
commit ec5203253223ace22ca194b6abbe9f56f4bac76c

commit 8c6b4120f55a8f4d4916c517478413ab6cf74fd8 works

does it work for the other Qt versions?

469

(14 replies, posted in Code)

De-Backer wrote:

update

or
simple but no buffer flush

470

(14 replies, posted in Code)

update

471

(14 replies, posted in Code)

scorpio810 wrote:
Application de  fix deprecated warning QTextStream& QTextStreamFunctions::endl(QTextStream&)
error: le patch a échoué : sources/nomenclature.cpp:66
error: sources/nomenclature.cpp : le patch ne s'applique pas
le patch a échoué à 0001 fix deprecated warning QTextStream& QTextStreamFunctions::endl(QTextStream&)

Qt version?

472

(14 replies, posted in Code)

for the next warning:

sources/genericpanel.cpp: In member function ‘virtual void GenericPanel::projectInformationsChanged(QETProject*)’:
sources/genericpanel.cpp:533:38: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = GenericPanel::PanelOption; QFlags<T>::Zero = int QFlags<GenericPanel::PanelOption>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
  533 |  addProject(project, nullptr, nullptr);
      |                                      ^
In file included from /usr/include/qt5/QtCore/qglobal.h:1302,
                 from /usr/include/qt5/QtXml/qtxmlglobal.h:43,
                 from /usr/include/qt5/QtXml/qdom.h:43,
                 from /usr/include/qt5/QtXml/QDomElement:1,
                 from sources/qet.h:21,
                 from sources/genericpanel.h:20,
                 from sources/genericpanel.cpp:18:
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
  123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
      |                                                                                ^~~~~~

I would like to know the default constructor in file "sources/genericpanel.h"

    enum PanelOption {
        AddChildDiagrams              =   1,
        AddChildTemplatesCollection   =   2,
        AddChildTemplates             =   4,
        AddAllChildTemplates          =   6,
        AddAllChild                   =  63,
        All                           = 127
    };
    Q_DECLARE_FLAGS(PanelOptions, PanelOption)

and if there is an extra enum, what should it be and what checks should be.

AddAllChild ?

473

(14 replies, posted in Code)

This is part 2
and proposal to make the Copyright Date dynamic (separate patch)

474

(14 replies, posted in Code)

Sorry I'm back with some patches this time for Qt5.15
This is part 1.

475

(11 replies, posted in Elements)

source:
https://economie.fgov.be/fr/publication … al-sur-les

questions:
- Where should the folder (s) be placed in the library
- Are there specific rules for folders?
- Are there specific rules for elements?

And I would also link the symbols of the one-wire scheme to the symbols of the situation plan.

folder
+one-wire scheme
  - symbols A (link_type="master")
+situation plan
  - symbols A (link_type="slave")

I still have to start drawing but I would have liked some tips.