diff --git a/ico/48x48/view-pim-journal.png b/ico/48x48/view-pim-journal.png new file mode 100644 index 000000000..122eb8a09 Binary files /dev/null and b/ico/48x48/view-pim-journal.png differ diff --git a/qelectrotech.qrc b/qelectrotech.qrc index d2af002da..d1d56f9c4 100644 --- a/qelectrotech.qrc +++ b/qelectrotech.qrc @@ -225,5 +225,6 @@ ico/24x16/gr.png ico/24x16/it.png ico/22x22/applications-development-translation.png + ico/48x48/view-pim-journal.png diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index eedab0031..0ba67a5da 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -215,7 +215,7 @@ void QETDiagramEditor::actions() { infos_diagram = new QAction(QET::Icons::DialogInformation, tr("Propri\351t\351s du sch\351ma"), this); add_text = new QAction(QET::Icons::PartTextField, tr("Ajouter un champ de texte"), this); add_column = new QAction(QET::Icons::EditTableInsertColumnRight, tr("Ajouter une colonne"), this); - add_image = new QAction(QET::Icons::adding_image, tr("Ajouter une image"), this); + add_image = new QAction(QET::Icons::adding_image, tr("Ajouter une image"), this); remove_column = new QAction(QET::Icons::EditTableDeleteColumn, tr("Enlever une colonne"), this); add_row = new QAction(QET::Icons::EditTableInsertRowUnder, tr("Ajouter une ligne"), this); remove_row = new QAction(QET::Icons::EditTableDeleteRow, tr("Enlever une ligne"), this); @@ -224,7 +224,8 @@ void QETDiagramEditor::actions() { prj_add_diagram = new QAction(QET::Icons::DiagramAdd, tr("Ajouter un sch\351ma"), this); prj_del_diagram = new QAction(QET::Icons::DiagramDelete, tr("Supprimer le sch\351ma"), this); prj_clean = new QAction(QET::Icons::EditClear, tr("Nettoyer le projet"), this); - prj_diagramNum = new QAction(QET::Icons::ConductorSettings, tr("Annoter les sch\351mas"), this); + prj_diagramNum = new QAction(QET::Icons::ConductorSettings, tr("Annoter les sch\351mas"), this); + prj_diagramList = new QAction(QET::Icons::listDrawings, tr("Ajouter un sommaire"), this); prj_nomenclature = new QAction(QET::Icons::DocumentExport, tr("Exporter une nomenclature (beta)"), this); zoom_in = new QAction(QET::Icons::ZoomIn, tr("Zoom avant"), this); @@ -372,7 +373,8 @@ void QETDiagramEditor::actions() { connect(prj_add_diagram, SIGNAL(triggered()), this, SLOT(addDiagramToProject()) ); connect(prj_del_diagram, SIGNAL(triggered()), this, SLOT(removeDiagramFromProject()) ); connect(prj_clean, SIGNAL(triggered()), this, SLOT(cleanCurrentProject()) ); - connect(prj_diagramNum, SIGNAL(triggered()), this, SLOT(diagramNumProject()) ); + connect(prj_diagramNum, SIGNAL(triggered()), this, SLOT(diagramNumProject()) ); + //connect(prj_diagramList, SIGNAL(triggered()), this, SLOT(addNewDiagramFolioList()) ); connect(prj_nomenclature, SIGNAL(triggered()), this, SLOT(nomenclatureProject()) ); connect(zoom_in, SIGNAL(triggered()), this, SLOT(slot_zoomIn()) ); connect(zoom_out, SIGNAL(triggered()), this, SLOT(slot_zoomOut()) ); @@ -491,6 +493,7 @@ void QETDiagramEditor::menus() { menu_project -> addAction(prj_clean); menu_project -> addSeparator(); menu_project -> addAction(prj_diagramNum); + menu_project -> addAction(prj_diagramList); menu_project -> addAction(prj_nomenclature); main_bar -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils principale")); @@ -1135,6 +1138,7 @@ void QETDiagramEditor::slot_updateActions() { prj_del_diagram -> setEnabled(editable_project); prj_clean -> setEnabled(editable_project); prj_diagramNum -> setEnabled(editable_project); + prj_diagramList -> setEnabled(opened_project); prj_nomenclature -> setEnabled(editable_project); import_diagram -> setEnabled(editable_project); export_diagram -> setEnabled(opened_diagram); @@ -1153,7 +1157,7 @@ void QETDiagramEditor::slot_updateActions() { remove_column -> setEnabled(editable_diagram); add_row -> setEnabled(editable_diagram); remove_row -> setEnabled(editable_diagram); - add_image ->setEnabled(editable_diagram); + add_image ->setEnabled(editable_diagram); //display the beta feature only in debug mode #ifdef QT_NO_DEBUG @@ -1203,7 +1207,7 @@ void QETDiagramEditor::slot_updateComplexActions() { rotate_selection -> setEnabled(editable_diagram && dv -> diagram() -> canRotateSelection()); selection_prop -> setEnabled(deletable_items); prj_diagramNum -> setEnabled(editable_diagram); - + // actions ayant besoin de textes selectionnes int selected_texts = dv ? (dv -> diagram() -> selectedTexts().count()) : 0; int selected_conductor_texts = dv ? (dv -> diagram() -> selectedConductorTexts().count()) : 0; diff --git a/sources/qetdiagrameditor.h b/sources/qetdiagrameditor.h index dc827a63d..384ce9ed0 100644 --- a/sources/qetdiagrameditor.h +++ b/sources/qetdiagrameditor.h @@ -206,6 +206,7 @@ class QETDiagramEditor : public QETMainWindow { QAction *prj_del_diagram; ///< Delete a diagram from the current project QAction *prj_clean; ///< Clean the content of the curent project by removing useless items QAction *prj_diagramNum; ///< Numerotation des schemas + QAction *prj_diagramList; ///< Sommaire des schemas QAction *prj_nomenclature; ///< generate nomenclature QAction *zoom_in; ///< Zoom in QAction *zoom_out; ///< Zoom out diff --git a/sources/qeticons.cpp b/sources/qeticons.cpp index 7495fecaf..784eb0a7e 100644 --- a/sources/qeticons.cpp +++ b/sources/qeticons.cpp @@ -170,6 +170,7 @@ namespace QET { QIcon ru; QIcon sl; QIcon translation; + QIcon listDrawings; } } @@ -419,5 +420,6 @@ void QET::Icons::initIcons() { ro .addFile(":/ico/24x16/ro.png"); ru .addFile(":/ico/24x16/ru.png"); sl .addFile(":/ico/24x16/sl.png"); - translation .addFile(":/ico/22x22/applications-development-translation.png"); + translation .addFile(":/ico/22x22/applications-development-translation.png"); + listDrawings .addFile(":/ico/48x48/view-pim-journal.png"); } diff --git a/sources/qeticons.h b/sources/qeticons.h index a4a839b79..6669a26e9 100644 --- a/sources/qeticons.h +++ b/sources/qeticons.h @@ -179,6 +179,7 @@ namespace QET { extern QIcon ru; extern QIcon sl; extern QIcon translation; + extern QIcon listDrawings; } } #endif diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 7ba8487dd..d5bf52799 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -842,7 +842,7 @@ Diagram *QETProject::addNewDiagramFolioList() { diagram_folio_list -> border_and_titleblock.importBorder(defaultBorderProperties()); diagram_folio_list -> border_and_titleblock.importTitleBlock(defaultTitleBlockProperties()); diagram_folio_list -> defaultConductorProperties = defaultConductorProperties(); - QString title = "List of Drawings"; + QString title = (tr("Liste des Sch\351mas")); diagram_folio_list -> border_and_titleblock.setTitle(title); addDiagram(diagram_folio_list);