mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-13 08:13:14 +02:00
Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 34cc26a325 | |||
| ba14c6112e | |||
| cb8256bd48 | |||
| 3dd512b587 | |||
| 31c0267cd5 | |||
| 88b2955b00 | |||
| 46378ca2a7 | |||
| c7481011e8 | |||
| 15d9708c46 | |||
| 3b32daf15d | |||
| 0a658d5d61 | |||
| a140c5ad39 | |||
| 4894284520 | |||
| efc8745bc7 | |||
| 406af16e94 | |||
| e3e48d3966 | |||
| 0e646aed0b | |||
| 52d56c18a2 | |||
| d3f132adc6 | |||
| 7b50f10749 | |||
| 64bb2308d8 |
+1
-1
@@ -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,
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
+1
-1
Submodule elements updated: 01365becda...62e471ff0e
Binary file not shown.
@@ -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);
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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,13 +113,13 @@ 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);
|
||||||
|
|
||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user