Compare commits

...

23 Commits

Author SHA1 Message Date
Laurent Trinques 34cc26a325 Revert "ElementEditor elmt_info_cb sorting changed" 2024-12-21 12:59:43 +01:00
Laurent Trinques ba14c6112e Merge pull request #316 from plc-user/master
Fix typo and some whitespace
2024-12-19 16:22:45 +01:00
Laurent Trinques cb8256bd48 Add de binary translation, thanks ChuckNr11 for update translation 2024-12-19 10:52:13 +01:00
Laurent Trinques 3dd512b587 Merge pull request #314 from ChuckNr11/master
ElementEditor elmt_info_cb sorting changed
2024-12-19 10:41:58 +01:00
Laurent Trinques 31c0267cd5 Merge pull request #315 from plc-user/master
Fix missing company-titleblocks in properties-dialog
2024-12-19 09:58:37 +01:00
plc-user 88b2955b00 Fix typo and some whitespace 2024-12-18 16:48:11 +01:00
plc-user 46378ca2a7 Fix missing company-titleblocks in properties-dialog 2024-12-18 15:18:34 +01:00
Achim c7481011e8 german language file adapted 2024-12-16 16:01:37 +01:00
Achim 15d9708c46 a few small corrections 2024-12-16 16:00:50 +01:00
Achim 3b32daf15d ComboBox change sorting
alphabetical sorting in the ComboBox changed according to the order in
the elementInfoKeys list
2024-12-16 15:55:16 +01:00
ChuckNr11 0a658d5d61 Merge branch 'qelectrotech:master' into master 2024-12-15 22:17:14 +01:00
Laurent Trinques a140c5ad39 Update CMakeLists.txt
Publish Edge Snap / publish_amd64 (push) Failing after 15s
2024-12-15 15:05:23 +01:00
Laurent Trinques 4894284520 Fix segfault due to calling method of uninitialized object, thanks
ladmanj

https://github.com/qelectrotech/qelectrotech-source-mirror/issues/311
2024-12-15 14:41:34 +01:00
Laurent Trinques efc8745bc7 Update packaging_script_AppImage.sh 2024-12-15 09:35:26 +01:00
Laurent Trinques 406af16e94 Update org.qelectrotech.QElectroTech.json 2024-12-15 09:32:16 +01:00
Laurent Trinques e3e48d3966 Fix snapcraft.yaml
Publish Edge Snap / publish_amd64 (push) Failing after 14s
2024-12-14 16:09:07 +01:00
Laurent Trinques 0e646aed0b Update translations_stat.pl
Publish Edge Snap / publish_amd64 (push) Failing after 16s
2024-12-14 14:25:35 +01:00
Laurent Trinques 52d56c18a2 Try to fix icon on Wayland 2024-12-14 13:31:42 +01:00
Laurent Trinques d3f132adc6 Try to fix icon on Wayland 2024-12-14 13:28:17 +01:00
Achim 7b50f10749 ElementEditor elmt_info_cb sorting changed
alphabetical sorting in the ComboBox changed according to the order in
the elementInfoKeys list
2024-12-08 19:36:22 +01:00
Laurent Trinques 64bb2308d8 git submodule update --remote elements
Publish Edge Snap / publish_amd64 (push) Failing after 15s
2024-12-07 17:05:23 +01:00
Laurent Trinques dd3cee5d8e Merge pull request #313 from plc-user/master
Publish Edge Snap / publish_amd64 (push) Failing after 15s
fix typos and whitespace
2024-11-24 08:15:23 +01:00
plc-user 6dcb6ebcb7 fix typos and whitespace 2024-11-23 21:17:39 +01:00
20 changed files with 39 additions and 36 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ install(DIRECTORY elements DESTINATION share/qelectrotech)
install(DIRECTORY examples DESTINATION share/qelectrotech) install(DIRECTORY examples DESTINATION share/qelectrotech)
install(DIRECTORY titleblocks DESTINATION share/qelectrotech) install(DIRECTORY titleblocks DESTINATION share/qelectrotech)
install(FILES LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog DESTINATION share/doc/qelectrotech) install(FILES LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog DESTINATION share/doc/qelectrotech)
install(FILES misc/qelectrotech.desktop DESTINATION share/applications) install(FILES misc/org.qelectrotech.qelectrotech.desktop DESTINATION share/applications)
install(FILES misc/qelectrotech.xml DESTINATION share/mime/packages) install(FILES misc/qelectrotech.xml DESTINATION share/mime/packages)
install(FILES misc/qelectrotech.appdata.xml DESTINATION ${QET_APPDATA_PATH}) install(FILES misc/qelectrotech.appdata.xml DESTINATION ${QET_APPDATA_PATH})
install(FILES ${QM_FILES} DESTINATION ${QET_LANG_PATH}) install(FILES ${QM_FILES} DESTINATION ${QET_LANG_PATH})
@@ -5,7 +5,7 @@
"runtime-version": "5.15-23.08", "runtime-version": "5.15-23.08",
"sdk": "org.kde.Sdk", "sdk": "org.kde.Sdk",
"command": "qelectrotech", "command": "qelectrotech",
"rename-desktop-file": "qelectrotech.desktop", "rename-desktop-file": "org.qelectrotech.qelectrotech.desktop",
"rename-appdata-file": "qelectrotech.appdata.xml", "rename-appdata-file": "qelectrotech.appdata.xml",
"rename-icon": "qelectrotech", "rename-icon": "qelectrotech",
"copy-icon": true, "copy-icon": true,
+1 -1
View File
@@ -93,7 +93,7 @@ parts:
craftctl default craftctl default
# patch desktop file with correct icon path # patch desktop file with correct icon path
SED_CMD="sed -i -E s|^Icon=(.*)|Icon=\${SNAP}/usr/local/share/icons/hicolor/128x128/apps/\1.png|g" SED_CMD="sed -i -E s|^Icon=(.*)|Icon=\${SNAP}/usr/local/share/icons/hicolor/128x128/apps/\1.png|g"
$SED_CMD usr/local/share/applications/qelectrotech.desktop $SED_CMD usr/local/share/applications/org.qelectrotech.qelectrotech.desktop
cleanup: cleanup:
after: [qelectrotech, qet-tb-generator] after: [qelectrotech, qet-tb-generator]
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -33,7 +33,7 @@ my $no = '[no]';
my $todo = 'TODO'; my $todo = 'TODO';
our $default_language = 'fr'; our $default_language = 'fr';
our @misc_desktop_files = qw(misc/qelectrotech.desktop); our @misc_desktop_files = qw(misc/org.qelectrotech.qelectrotech.desktop);
our @misc_xml_files = qw(misc/qelectrotech.xml); our @misc_xml_files = qw(misc/qelectrotech.xml);
our @readme_files = qw(CREDIT README INSTALL ELEMENTS.LICENSE build-aux/linux/fedora/README.elements); our @readme_files = qw(CREDIT README INSTALL ELEMENTS.LICENSE build-aux/linux/fedora/README.elements);
our @ordered_languages = qw(fr en es pt cs pl ca de it ar sl hr el nl be ru ro da pt_BR hu sr tr nb ja mn uk zh); our @ordered_languages = qw(fr en es pt cs pl ca de it ar sl hr el nl be ru ro da pt_BR hu sr tr nb ja mn uk zh);
+2 -2
View File
@@ -39,9 +39,9 @@ rm -Rf qelectrotech/usr/share/{elements,examples,titleblocks,lang,man,doc}
cp ../build/qelectrotech qelectrotech/usr/bin/ cp ../build/qelectrotech qelectrotech/usr/bin/
cp -r ../{elements,examples,titleblocks,lang,man} qelectrotech/usr/share/ cp -r ../{elements,examples,titleblocks,lang,man} qelectrotech/usr/share/
./linuxdeployqt-continuous-x86_64.AppImage qelectrotech/usr/share/qelectrotech.desktop -appimage -bundle-non-qt-libs -verbose=1 -extra-plugins=iconengines ./linuxdeployqt-continuous-x86_64.AppImage qelectrotech/usr/share/org.qelectrotech.qelectrotech.desktop -appimage -bundle-non-qt-libs -verbose=1 -extra-plugins=iconengines
rm qelectrotech/AppRun rm qelectrotech/AppRun
sed -i 's/'"QElectroTech_*.*/QElectroTech_$tagName-r$HEAD"'/' qelectrotech/qelectrotech.desktop sed -i 's/'"QElectroTech_*.*/QElectroTech_$tagName-r$HEAD"'/' qelectrotech/org.qelectrotech.qelectrotech.desktop
cp AppRun qelectrotech/ cp AppRun qelectrotech/
rm QElectroTech_*.AppImage rm QElectroTech_*.AppImage
+1 -1
View File
@@ -281,7 +281,7 @@ mime_package.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_PACKAGE_PATH})
mime_package.files = misc/qelectrotech.xml mime_package.files = misc/qelectrotech.xml
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH}) desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
desktop.files = misc/qelectrotech.desktop desktop.files = misc/org.qelectrotech.qelectrotech.desktop
appdata.path = $$join(INSTALL_PREFIX,,,$${QET_APPDATA_PATH}) appdata.path = $$join(INSTALL_PREFIX,,,$${QET_APPDATA_PATH})
appdata.files = misc/qelectrotech.appdata.xml appdata.files = misc/qelectrotech.appdata.xml
@@ -399,7 +399,7 @@ ElementsLocation ElementCollectionHandler::createDir(ElementsLocation &parent, c
@brief ElementCollectionHandler::importFromProject @brief ElementCollectionHandler::importFromProject
Import the element represented by location to the embedded collection Import the element represented by location to the embedded collection
of project at the same path. of project at the same path.
location must represente an element owned by a project embedded collection location must represent an element owned by a project embedded collection
@param project : project where copy the element @param project : project where copy the element
@param location : location to copy @param location : location to copy
@return true if import with success @return true if import with success
@@ -529,7 +529,7 @@ void ElementsCollectionWidget::newElement()
elmt_wizard.exec(); elmt_wizard.exec();
foreach (QETElementEditor *element_editor, foreach (QETElementEditor *element_editor,
QETApp::instance()->elementEditors()) QETApp::instance()->elementEditors())
connect(element_editor, connect(element_editor,
&QETElementEditor::saveToLocation, &QETElementEditor::saveToLocation,
this, this,
@@ -713,7 +713,7 @@ void ElementsCollectionWidget::locationWasSaved(
const ElementsLocation& location) const ElementsLocation& location)
{ {
//Because this method update an item in the model, location must //Because this method update an item in the model, location must
//represente an existing element (in file system of project) //represent an existing element (in file system of project)
if (!location.exist()) if (!location.exist())
return; return;
@@ -591,7 +591,7 @@ bool ElementsLocation::isWritable() const
/** /**
@brief ElementsLocation::projectCollection @brief ElementsLocation::projectCollection
@return @return
If this location represente a item in an embedded project collection, If this location represents an item in an embedded project collection,
return this collection else return nullptr. return this collection else return nullptr.
*/ */
XmlElementCollection *ElementsLocation::projectCollection() const XmlElementCollection *ElementsLocation::projectCollection() const
+2
View File
@@ -1558,7 +1558,9 @@ void QETDiagramEditor::slot_updateActions()
m_csv_export -> setEnabled(editable_project); m_csv_export -> setEnabled(editable_project);
m_project_export_conductor_num-> setEnabled(opened_project); m_project_export_conductor_num-> setEnabled(opened_project);
m_terminal_strip_dialog -> setEnabled(editable_project); m_terminal_strip_dialog -> setEnabled(editable_project);
#ifdef QET_EXPORT_PROJECT_DB
m_export_project_db -> setEnabled(editable_project); m_export_project_db -> setEnabled(editable_project);
#endif
m_project_terminalBloc -> setEnabled(editable_project); m_project_terminalBloc -> setEnabled(editable_project);
+1 -1
View File
@@ -22,7 +22,7 @@
#include <QHash> #include <QHash>
/** /**
* Inside this namespace you will fin all information used in QElectrotech for * Inside this namespace you will find all information used in QElectrotech for
* element, conductor and diagram. * element, conductor and diagram.
* Each information have 3 values : * Each information have 3 values :
* #1 the info key = the key of an information as a QString used in the code (example : label) * #1 the info key = the key of an information as a QString used in the code (example : label)
+1 -1
View File
@@ -510,7 +510,7 @@ void QETProject::setDefaultTitleBlockProperties(const TitleBlockProperties &titl
collection = QETApp::commonTitleBlockTemplatesCollection(); collection = QETApp::commonTitleBlockTemplatesCollection();
break; break;
case QET::Company : case QET::Company :
// collection = QETApp::companyTitleBlockTemplatesCollection(); collection = QETApp::companyTitleBlockTemplatesCollection();
break; break;
case QET::Custom : case QET::Custom :
collection = QETApp::customTitleBlockTemplatesCollection(); collection = QETApp::customTitleBlockTemplatesCollection();
+1
View File
@@ -57,6 +57,7 @@ NewDiagramPage::NewDiagramPage(QETProject *project,
// default titleblock properties // default titleblock properties
QList <TitleBlockTemplatesCollection *> c; QList <TitleBlockTemplatesCollection *> c;
c << QETApp::commonTitleBlockTemplatesCollection() c << QETApp::commonTitleBlockTemplatesCollection()
<< QETApp::companyTitleBlockTemplatesCollection()
<< QETApp::customTitleBlockTemplatesCollection(); << QETApp::customTitleBlockTemplatesCollection();
if (m_project) c << m_project->embeddedTitleBlockTemplatesCollection(); if (m_project) c << m_project->embeddedTitleBlockTemplatesCollection();
ipw = new TitleBlockPropertiesWidget( ipw = new TitleBlockPropertiesWidget(
+2 -2
View File
@@ -66,9 +66,9 @@ public slots:
QETProject *m_project; ///< Project to edit properties QETProject *m_project; ///< Project to edit properties
BorderPropertiesWidget *bpw; ///< Widget to edit default diagram dimensions BorderPropertiesWidget *bpw; ///< Widget to edit default diagram dimensions
TitleBlockPropertiesWidget *ipw; ///< Widget to edit default title block properties TitleBlockPropertiesWidget *ipw; ///< Widget to edit default title block properties
ConductorPropertiesWidget *m_cpw; ///< Widget to edit default conductor properties ConductorPropertiesWidget *m_cpw; ///< Widget to edit default conductor properties
ReportPropertieWidget *rpw; ///< Widget to edit default report label ReportPropertieWidget *rpw; ///< Widget to edit default report label
XRefPropertiesWidget *xrefpw; ///< Widget to edit default xref properties XRefPropertiesWidget *xrefpw; ///< Widget to edit default xref properties
TitleBlockProperties savedTbp; ///< Used to save current TBP and retrieve later TitleBlockProperties savedTbp; ///< Used to save current TBP and retrieve later
}; };
+1 -1
View File
@@ -57,7 +57,7 @@ DiagramPropertiesDialog::DiagramPropertiesDialog(Diagram *diagram, QWidget *pare
TitleBlockPropertiesWidget *titleblock_infos; TitleBlockPropertiesWidget *titleblock_infos;
if (QETProject *parent_project = diagram -> project()) if (QETProject *parent_project = diagram -> project())
titleblock_infos = new TitleBlockPropertiesWidget(parent_project -> embeddedTitleBlockTemplatesCollection(), titleblock, false, diagram->project(), this); titleblock_infos = new TitleBlockPropertiesWidget(parent_project -> embeddedTitleBlockTemplatesCollection(), titleblock, false, diagram->project(), this);
else else
titleblock_infos = new TitleBlockPropertiesWidget(titleblock, false, diagram->project(), this); titleblock_infos = new TitleBlockPropertiesWidget(titleblock, false, diagram->project(), this);
+2 -2
View File
@@ -970,7 +970,7 @@ QModelIndex DynamicElementTextModel::indexFromGroup(
/** /**
@brief DynamicElementTextModel::indexIsText @brief DynamicElementTextModel::indexIsText
@param index @param index
@return True if index represente a text, both for the column 0 and 1. @return True if index represents a text, both for the column 0 and 1.
Return false if index is a child of an index associated to a text. Return false if index is a child of an index associated to a text.
*/ */
bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const
@@ -1000,7 +1000,7 @@ bool DynamicElementTextModel::indexIsText(const QModelIndex &index) const
/** /**
@brief DynamicElementTextModel::indexIsGroup @brief DynamicElementTextModel::indexIsGroup
@param index @param index
@return True if index represente a group, both for the column 0 and 1. @return True if index represents a group, both for the column 0 and 1.
Return false if index is a child of an index associated to a group. Return false if index is a child of an index associated to a group.
*/ */
bool DynamicElementTextModel::indexIsGroup(const QModelIndex &index) const bool DynamicElementTextModel::indexIsGroup(const QModelIndex &index) const
+17 -17
View File
@@ -49,7 +49,7 @@ TitleBlockPropertiesWidget::TitleBlockPropertiesWidget(
/** /**
@brief TitleBlockPropertiesWidget::TitleBlockPropertiesWidget @brief TitleBlockPropertiesWidget::TitleBlockPropertiesWidget
default constructor with tempalte list default constructor with template list
@param tbt_collection template list @param tbt_collection template list
@param titleblock properties to edit @param titleblock properties to edit
@param current_date if true, display the radio button "current date" @param current_date if true, display the radio button "current date"
@@ -113,17 +113,17 @@ TitleBlockPropertiesWidget::~TitleBlockPropertiesWidget()
*/ */
void TitleBlockPropertiesWidget::setProperties( void TitleBlockPropertiesWidget::setProperties(
const TitleBlockProperties &properties) { const TitleBlockProperties &properties) {
ui -> m_title_le -> setText (properties.title); ui -> m_title_le -> setText (properties.title);
ui -> m_author_le -> setText (properties.author); ui -> m_author_le -> setText (properties.author);
ui -> m_file_le -> setText (properties.filename); ui -> m_file_le -> setText (properties.filename);
ui -> m_plant -> setText (properties.plant); ui -> m_plant -> setText (properties.plant);
ui -> m_loc -> setText (properties.locmach); ui -> m_loc -> setText (properties.locmach);
ui -> m_indice -> setText (properties.indexrev); ui -> m_indice -> setText (properties.indexrev);
ui -> m_folio_le -> setText (properties.folio); ui -> m_folio_le -> setText (properties.folio);
ui -> m_display_at_cb -> setCurrentIndex(properties.display_at == Qt::BottomEdge ? 0 : 1); ui -> m_display_at_cb -> setCurrentIndex(properties.display_at == Qt::BottomEdge ? 0 : 1);
ui->auto_page_cb->setCurrentText(properties.auto_page_num); ui->auto_page_cb->setCurrentText(properties.auto_page_num);
//About date //About date
ui -> m_date_now_pb -> setDisabled(true); ui -> m_date_now_pb -> setDisabled(true);
ui -> m_date_edit -> setDisabled(true); ui -> m_date_edit -> setDisabled(true);
ui -> m_date_edit -> setDate(QDate::currentDate()); ui -> m_date_edit -> setDate(QDate::currentDate());
@@ -172,13 +172,13 @@ void TitleBlockPropertiesWidget::setProperties(
TitleBlockProperties TitleBlockPropertiesWidget::properties() const TitleBlockProperties TitleBlockPropertiesWidget::properties() const
{ {
TitleBlockProperties prop; TitleBlockProperties prop;
prop.title = ui -> m_title_le -> text(); prop.title = ui -> m_title_le -> text();
prop.author = ui -> m_author_le -> text(); prop.author = ui -> m_author_le -> text();
prop.filename = ui -> m_file_le -> text(); prop.filename = ui -> m_file_le -> text();
prop.plant = ui -> m_plant -> text(); prop.plant = ui -> m_plant -> text();
prop.locmach = ui -> m_loc -> text(); prop.locmach = ui -> m_loc -> text();
prop.indexrev = ui -> m_indice -> text(); prop.indexrev = ui -> m_indice -> text();
prop.folio = ui -> m_folio_le -> text(); prop.folio = ui -> m_folio_le -> text();
prop.display_at = ui -> m_display_at_cb -> currentIndex() == 0 ? Qt::BottomEdge : Qt::RightEdge; prop.display_at = ui -> m_display_at_cb -> currentIndex() == 0 ? Qt::BottomEdge : Qt::RightEdge;
if (ui->m_no_date_rb->isChecked()) { if (ui->m_no_date_rb->isChecked()) {
@@ -218,7 +218,7 @@ TitleBlockProperties TitleBlockPropertiesWidget::propertiesAutoNum(
prop.title = ui -> m_title_le -> text(); prop.title = ui -> m_title_le -> text();
prop.author = ui -> m_author_le -> text(); prop.author = ui -> m_author_le -> text();
prop.filename = ui -> m_file_le -> text(); prop.filename = ui -> m_file_le -> text();
prop.plant = ui -> m_plant -> text(); prop.plant = ui -> m_plant -> text();
prop.locmach = ui -> m_loc -> text(); prop.locmach = ui -> m_loc -> text();
prop.indexrev = ui -> m_indice -> text(); prop.indexrev = ui -> m_indice -> text();
prop.folio = "%autonum"; prop.folio = "%autonum";