mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-10 07:59:58 +01:00
Merge Qt5 branch sources folder to trunk
-Cette ligne, et les suivantes ci-dessous, seront ignorées-- M sources/aboutqet.cpp M sources/bordertitleblock.cpp M sources/conductorproperties.h M sources/configdialog.cpp M sources/configpages.cpp M sources/configpages.h M sources/createdxf.h M sources/diagram.cpp M sources/diagram.h M sources/diagramcommands.cpp M sources/diagramcommands.h M sources/diagramprintdialog.cpp M sources/diagramprintdialog.h M sources/diagramschooser.cpp M sources/diagramschooser.h M sources/diagramview.cpp M sources/diagramview.h M sources/dvevent/dveventaddimage.cpp M sources/dvevent/dveventaddshape.cpp M sources/editor/arceditor.cpp M sources/editor/arceditor.h M sources/editor/editorcommands.cpp M sources/editor/editorcommands.h M sources/editor/elementitemeditor.h M sources/editor/elementprimitivedecorator.cpp M sources/editor/elementscene.cpp M sources/editor/elementscene.h M sources/editor/elementview.cpp M sources/editor/ellipseeditor.cpp M sources/editor/ellipseeditor.h M sources/editor/esevent/eseventaddtext.cpp M sources/editor/esevent/eseventaddtextfield.cpp M sources/editor/esevent/eseventinterface.cpp M sources/editor/graphicspart/customelementpart.h M sources/editor/graphicspart/parttext.cpp M sources/editor/graphicspart/parttext.h M sources/editor/graphicspart/parttextfield.cpp M sources/editor/graphicspart/parttextfield.h M sources/editor/lineeditor.cpp M sources/editor/lineeditor.h M sources/editor/polygoneditor.cpp M sources/editor/qetelementeditor.cpp M sources/editor/qetelementeditor.h M sources/editor/rectangleeditor.cpp M sources/editor/rectangleeditor.h M sources/editor/styleeditor.cpp M sources/editor/styleeditor.h M sources/editor/terminaleditor.cpp M sources/editor/terminaleditor.h M sources/editor/texteditor.cpp M sources/editor/texteditor.h M sources/editor/textfieldeditor.cpp M sources/editor/textfieldeditor.h M sources/editor/ui/elementpropertieseditorwidget.cpp M sources/elementdefinition.cpp M sources/elementdeleter.cpp M sources/elementdeleter.h M sources/elementdialog.cpp M sources/elementscategorieslist.h M sources/elementscategorieswidget.cpp M sources/elementscategorieswidget.h M sources/elementscategory.cpp M sources/elementscategorydeleter.cpp M sources/elementscategorydeleter.h M sources/elementscategoryeditor.cpp M sources/elementscategoryeditor.h M sources/elementscollection.cpp M sources/elementscollectioncache.cpp M sources/elementspanel.cpp M sources/elementspanel.h M sources/elementspanelwidget.cpp M sources/elementspanelwidget.h M sources/elementtextsmover.h M sources/exportdialog.cpp M sources/exportdialog.h M sources/exportproperties.cpp M sources/exportpropertieswidget.cpp M sources/exportpropertieswidget.h M sources/genericpanel.cpp M sources/integrationmoveelementshandler.cpp M sources/integrationmoveelementshandler.h M sources/interactivemoveelementshandler.cpp M sources/nameslistwidget.cpp M sources/nameslistwidget.h M sources/newelementwizard.cpp M sources/newelementwizard.h M sources/nomenclature.cpp M sources/nomenclature.h M sources/projectconfigpages.cpp M sources/projectview.cpp M sources/projectview.h M sources/qet.cpp M sources/qetapp.cpp M sources/qetapp.h M sources/qetdiagrameditor.cpp M sources/qetdiagrameditor.h M sources/qetgraphicsitem/conductor.cpp M sources/qetgraphicsitem/conductortextitem.cpp M sources/qetgraphicsitem/customelement.cpp M sources/qetgraphicsitem/diagramimageitem.cpp M sources/qetgraphicsitem/diagramtextitem.cpp M sources/qetgraphicsitem/diagramtextitem.h M sources/qetgraphicsitem/element.cpp M sources/qetgraphicsitem/ghostelement.cpp M sources/qetgraphicsitem/qetshapeitem.cpp M sources/qetgraphicsitem/terminal.cpp M sources/qetgraphicsitem/terminal.h M sources/qeticons.cpp M sources/qeticons.h M sources/qetmainwindow.cpp M sources/qetmessagebox.cpp M sources/qetmessagebox.h M sources/qetprintpreviewdialog.cpp M sources/qetprintpreviewdialog.h M sources/qetproject.cpp M sources/qetsingleapplication.cpp M sources/qettabbar.h M sources/qfilenameedit.cpp M sources/qtextorientationspinboxwidget.cpp M sources/qtextorientationspinboxwidget.h M sources/qtextorientationwidget.cpp M sources/qtextorientationwidget.h M sources/richtext/richtexteditor.cpp M sources/richtext/richtexteditor_p.h M sources/richtext/ui_addlinkdialog.h M sources/titleblock/dimensionwidget.h M sources/titleblock/gridlayoutanimation.h M sources/titleblock/helpercell.h M sources/titleblock/integrationmovetemplateshandler.cpp M sources/titleblock/integrationmovetemplateshandler.h M sources/titleblock/qettemplateeditor.cpp M sources/titleblock/qettemplateeditor.h M sources/titleblock/templatecellsset.h M sources/titleblock/templatecellwidget.cpp M sources/titleblock/templatecellwidget.h M sources/titleblock/templatecommands.cpp M sources/titleblock/templatedeleter.cpp M sources/titleblock/templatedeleter.h M sources/titleblock/templatelocationchooser.cpp M sources/titleblock/templatelocationchooser.h M sources/titleblock/templatelocationsaver.cpp M sources/titleblock/templatelocationsaver.h M sources/titleblock/templatelogomanager.cpp M sources/titleblock/templatelogomanager.h M sources/titleblock/templateview.cpp M sources/titleblock/templatevisualcell.h M sources/titleblockcell.cpp M sources/titleblocktemplate.cpp M sources/treecoloranimation.h M sources/ui/conductorpropertieswidget.cpp M sources/ui/diagrampropertiesdialog.cpp M sources/ui/diagramselection.cpp M sources/ui/dialogautonum.cpp M sources/ui/dialogwaiting.cpp M sources/ui/elementpropertieswidget.cpp M sources/ui/elementselectorwidget.cpp M sources/ui/linksingleelementwidget.cpp M sources/ui/masterpropertieswidget.cpp M sources/ui/potentialtextsdialog.cpp M sources/ui/projectpropertiesdialog.cpp M sources/ui/selectautonumw.cpp M sources/ui/titleblockpropertieswidget.cpp M sources/ui/xrefpropertieswidget.cpp M sources/undocommand/changeelementinformationcommand.cpp git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3783 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_DIMENSION_WIDGET_H
|
||||
#define TITLEBLOCK_SLASH_DIMENSION_WIDGET_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "dimension.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_GRID_LAYOUT_ANIMATION_H
|
||||
#define TITLEBLOCK_SLASH_GRID_LAYOUT_ANIMATION_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
/**
|
||||
This class allows animating a dimension change for a QGraphicsGridLayout
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_HELPER_CELL_H
|
||||
#define TITLEBLOCK_SLASH_HELPER_CELL_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "qet.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,8 +42,8 @@ IntegrationMoveTitleBlockTemplatesHandler::~IntegrationMoveTitleBlockTemplatesHa
|
||||
@return the action to be done if the target template already exists
|
||||
*/
|
||||
QET::Action IntegrationMoveTitleBlockTemplatesHandler::templateAlreadyExists(const TitleBlockTemplateLocation &src, const TitleBlockTemplateLocation &dst) {
|
||||
QString no_parent_collection_error_message(tr("Impossible d'acc\351der \340 la cat\351gorie parente", "error message"));
|
||||
QString cant_get_xml_description_error_message(tr("Impossible d'obtenir la description XML de ce mod\350le", "error message"));
|
||||
QString no_parent_collection_error_message(tr("Impossible d'accéder à la catégorie parente", "error message"));
|
||||
QString cant_get_xml_description_error_message(tr("Impossible d'obtenir la description XML de ce modèle", "error message"));
|
||||
|
||||
// we'll need the parent collection of both templates
|
||||
TitleBlockTemplatesCollection *src_tbt_parent_collection = src.parentCollection();
|
||||
@@ -80,8 +80,8 @@ QET::Action IntegrationMoveTitleBlockTemplatesHandler::templateAlreadyExists(con
|
||||
@param message Error message.
|
||||
*/
|
||||
QET::Action IntegrationMoveTitleBlockTemplatesHandler::errorWithATemplate(const TitleBlockTemplateLocation &tbt, const QString &message) {
|
||||
QString error_message = QString("Une erreur s'est produite avec le mod\350le %1\240: %2").arg(tbt.toString()).arg(message);
|
||||
QET::MessageBox::critical(
|
||||
QString error_message = QString("Une erreur s'est produite avec le modèle %1 : %2").arg(tbt.toString()).arg(message);
|
||||
QET::QetMessageBox::critical(
|
||||
parent_widget_,
|
||||
tr("Erreur", "message box title"),
|
||||
error_message,
|
||||
@@ -145,14 +145,14 @@ QET::Action IntegrationMoveTitleBlockTemplatesHandler::askUser(const TitleBlockT
|
||||
void IntegrationMoveTitleBlockTemplatesHandler::initDialog() {
|
||||
if (integ_dialog_) return;
|
||||
integ_dialog_ = new QDialog(parent_widget_);
|
||||
integ_dialog_ -> setWindowTitle(tr("Int\351gration d'un mod\350le de cartouche"));
|
||||
integ_dialog_ -> setWindowTitle(tr("Intégration d'un modèle de cartouche"));
|
||||
|
||||
dialog_label_ = new QLabel(
|
||||
QString(
|
||||
tr(
|
||||
"Le mod\350le a d\351j\340 \351t\351 "
|
||||
"int\351gr\351 dans le projet. Toutefois, la version que vous "
|
||||
"tentez d'appliquer semble diff\351rente. Que souhaitez-vous "
|
||||
"Le modèle a déjà été "
|
||||
"intégré dans le projet. Toutefois, la version que vous "
|
||||
"tentez d'appliquer semble différente. Que souhaitez-vous "
|
||||
"faire ?",
|
||||
"dialog content - %1 is a title block template name"
|
||||
)
|
||||
@@ -162,7 +162,7 @@ void IntegrationMoveTitleBlockTemplatesHandler::initDialog() {
|
||||
use_existing_template_ = new QRadioButton(
|
||||
QString(
|
||||
tr(
|
||||
"Utiliser le mod\350le d\351j\340 int\351gr\351",
|
||||
"Utiliser le modèle déjà intégré",
|
||||
"dialog content"
|
||||
)
|
||||
)
|
||||
@@ -171,7 +171,7 @@ void IntegrationMoveTitleBlockTemplatesHandler::initDialog() {
|
||||
integrate_new_template_ = new QRadioButton(
|
||||
QString(
|
||||
tr(
|
||||
"Int\351grer le mod\350le d\351pos\351",
|
||||
"Intégrer le modèle déposé",
|
||||
"dialog content"
|
||||
)
|
||||
)
|
||||
@@ -181,7 +181,7 @@ void IntegrationMoveTitleBlockTemplatesHandler::initDialog() {
|
||||
erase_template_ = new QRadioButton(
|
||||
QString(
|
||||
tr(
|
||||
"\311craser le mod\350le d\351j\340 int\351gr\351",
|
||||
"Écraser le modèle déjà intégré",
|
||||
"dialog content"
|
||||
)
|
||||
)
|
||||
@@ -191,7 +191,7 @@ void IntegrationMoveTitleBlockTemplatesHandler::initDialog() {
|
||||
integrate_both_ = new QRadioButton(
|
||||
QString(
|
||||
tr(
|
||||
"Faire cohabiter les deux mod\350les",
|
||||
"Faire cohabiter les deux modèles",
|
||||
"dialog content"
|
||||
)
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#ifndef TITLEBLOCK_SLASH_INTEGRATION_MOVE_TEMPLATES_HANDLER_H
|
||||
#define TITLEBLOCK_SLASH_INTEGRATION_MOVE_TEMPLATES_HANDLER_H
|
||||
#include "movetemplateshandler.h"
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
/**
|
||||
This class implements the interface defined by
|
||||
MoveTitleBlockTemplatesHandler to ease the integration of title block
|
||||
|
||||
@@ -105,12 +105,12 @@ bool QETTitleBlockTemplateEditor::openForDuplication() const {
|
||||
bool QETTitleBlockTemplateEditor::canClose() {
|
||||
if (undo_stack_ -> isClean()) return(true);
|
||||
// ask the user whether he wants to save the current template
|
||||
QMessageBox::StandardButton answer = QET::MessageBox::question(
|
||||
QMessageBox::StandardButton answer = QET::QetMessageBox::question(
|
||||
this,
|
||||
tr("Enregistrer le mod\350le en cours ?", "dialog title"),
|
||||
tr("Enregistrer le modèle en cours ?", "dialog title"),
|
||||
QString(
|
||||
tr(
|
||||
"Voulez-vous enregistrer le mod\350le %1 ?",
|
||||
"Voulez-vous enregistrer le modèle %1 ?",
|
||||
"dialog content - %1 is a title block template name"
|
||||
)
|
||||
).arg(location_.name()),
|
||||
@@ -167,8 +167,8 @@ void QETTitleBlockTemplateEditor::duplicateCurrentLocation() {
|
||||
bool accepted = false;
|
||||
QString new_template_name = QInputDialog::getText(
|
||||
this,
|
||||
tr("Dupliquer un mod\350le de cartouche", "input dialog title"),
|
||||
tr("Pour dupliquer ce mod\350le, entrez le nom voulu pour sa copie", "input dialog text"),
|
||||
tr("Dupliquer un modèle de cartouche", "input dialog title"),
|
||||
tr("Pour dupliquer ce modèle, entrez le nom voulu pour sa copie", "input dialog text"),
|
||||
QLineEdit::Normal,
|
||||
proposed_name,
|
||||
&accepted
|
||||
@@ -337,16 +337,16 @@ void QETTitleBlockTemplateEditor::initActions() {
|
||||
cut_ = new QAction(QET::Icons::EditCut, tr("Co&uper", "menu entry"), this);
|
||||
copy_ = new QAction(QET::Icons::EditCopy, tr("Cop&ier", "menu entry"), this);
|
||||
paste_ = new QAction(QET::Icons::EditPaste, tr("C&oller", "menu entry"), this);
|
||||
edit_logos_ = new QAction(QET::Icons::InsertImage, tr("G\351rer les logos", "menu entry"), this);
|
||||
edit_info_ = new QAction(QET::Icons::UserInformations, tr("\311diter les informations compl\351mentaires", "menu entry"), this);
|
||||
edit_logos_ = new QAction(QET::Icons::InsertImage, tr("Gérer les logos", "menu entry"), this);
|
||||
edit_info_ = new QAction(QET::Icons::UserInformations, tr("Éditer les informations complémentaires", "menu entry"), this);
|
||||
zoom_in_ = new QAction(QET::Icons::ZoomIn, tr("Zoom avant", "menu entry"), this);
|
||||
zoom_out_ = new QAction(QET::Icons::ZoomOut, tr("Zoom arri\350re", "menu entry"), this);
|
||||
zoom_fit_ = new QAction(QET::Icons::ZoomFitBest, tr("Zoom adapt\351", "menu entry"), this);
|
||||
zoom_out_ = new QAction(QET::Icons::ZoomOut, tr("Zoom arrière", "menu entry"), this);
|
||||
zoom_fit_ = new QAction(QET::Icons::ZoomFitBest, tr("Zoom adapté", "menu entry"), this);
|
||||
zoom_reset_ = new QAction(QET::Icons::ZoomOriginal, tr("Pas de zoom", "menu entry"), this);
|
||||
add_row_ = new QAction(QET::Icons::EditTableInsertRowAbove, tr("Ajouter une &ligne", "menu entry"), this);
|
||||
add_col_ = new QAction(QET::Icons::EditTableInsertColumnRight, tr("Ajouter une &colonne", "menu entry"), this);
|
||||
merge_cells_ = new QAction(QET::Icons::EditTableCellMerge, tr("&Fusionner les cellules", "menu entry"), this);
|
||||
split_cell_ = new QAction(QET::Icons::EditTableCellSplit, tr("&S\351parer les cellules", "menu entry"), this);
|
||||
split_cell_ = new QAction(QET::Icons::EditTableCellSplit, tr("&Séparer les cellules", "menu entry"), this);
|
||||
|
||||
undo_ -> setIcon(QET::Icons::EditUndo);
|
||||
redo_ -> setIcon(QET::Icons::EditRedo);
|
||||
@@ -398,7 +398,7 @@ void QETTitleBlockTemplateEditor::initActions() {
|
||||
*/
|
||||
void QETTitleBlockTemplateEditor::initMenus() {
|
||||
file_menu_ = new QMenu(tr("&Fichier", "menu title"), this);
|
||||
edit_menu_ = new QMenu(tr("&\311dition", "menu title"), this);
|
||||
edit_menu_ = new QMenu(tr("&Édition", "menu title"), this);
|
||||
display_menu_ = new QMenu(tr("Afficha&ge", "menu title"), this);
|
||||
|
||||
file_menu_ -> addAction(new_);
|
||||
@@ -446,7 +446,7 @@ void QETTitleBlockTemplateEditor::initToolbars() {
|
||||
main_toolbar -> addAction(save_as_);
|
||||
addToolBar(Qt::TopToolBarArea, main_toolbar);
|
||||
|
||||
QToolBar *edit_toolbar = new QToolBar(tr("\311dition", "toolbar title"), this);
|
||||
QToolBar *edit_toolbar = new QToolBar(tr("Édition", "toolbar title"), this);
|
||||
edit_toolbar -> setObjectName("tbt_edit_toolbar");
|
||||
edit_toolbar -> addAction(undo_);
|
||||
edit_toolbar -> addAction(redo_);
|
||||
@@ -494,7 +494,7 @@ void QETTitleBlockTemplateEditor::initWidgets() {
|
||||
|
||||
// cell edition widget at the bottom
|
||||
template_cell_editor_widget_ = new TitleBlockTemplateCellWidget(tb_template_);
|
||||
template_cell_editor_dock_widget_ = new QDockWidget(tr("Propri\351t\351s de la cellule", "dock title"), this);
|
||||
template_cell_editor_dock_widget_ = new QDockWidget(tr("Propriétés de la cellule", "dock title"), this);
|
||||
template_cell_editor_dock_widget_ -> setObjectName("tbt_celleditor_dock");
|
||||
template_cell_editor_dock_widget_ -> setFeatures(QDockWidget::AllDockWidgetFeatures);
|
||||
template_cell_editor_dock_widget_ -> setWidget(template_cell_editor_widget_);
|
||||
@@ -562,7 +562,7 @@ QString QETTitleBlockTemplateEditor::currentlyEditedTitle() const {
|
||||
if (!titleblock_title.isEmpty()) {
|
||||
QString tag;
|
||||
if (!undo_stack_ -> isClean()) {
|
||||
tag = tr("[Modifi\351]", "window title tag");
|
||||
tag = tr("[Modifié]", "window title tag");
|
||||
}
|
||||
if (read_only_) {
|
||||
tag = tr("[Lecture seule]", "window title tag");
|
||||
@@ -648,7 +648,7 @@ void QETTitleBlockTemplateEditor::updateEditorTitle() {
|
||||
// base title
|
||||
QString min_title(
|
||||
tr(
|
||||
"QElectroTech - \311diteur de mod\350le de cartouche",
|
||||
"QElectroTech - Éditeur de modèle de cartouche",
|
||||
"titleblock template editor: base window title"
|
||||
)
|
||||
);
|
||||
@@ -739,7 +739,7 @@ bool QETTitleBlockTemplateEditor::saveAs(const QString &filepath) {
|
||||
*/
|
||||
void QETTitleBlockTemplateEditor::open() {
|
||||
TitleBlockTemplateLocation location = getTitleBlockTemplateLocationFromUser(
|
||||
tr("Ouvrir un mod\350le", "File > open dialog window title"),
|
||||
tr("Ouvrir un modèle", "File > open dialog window title"),
|
||||
true
|
||||
);
|
||||
if (location.isValid()) {
|
||||
@@ -761,7 +761,7 @@ void QETTitleBlockTemplateEditor::openFromFile() {
|
||||
tr("Ouvrir un fichier", "dialog title"),
|
||||
initial_dir,
|
||||
tr(
|
||||
"Mod\350les de cartouches QElectroTech (*%1);;"
|
||||
"Modèles de cartouches QElectroTech (*%1);;"
|
||||
"Fichiers XML (*.xml);;"
|
||||
"Tous les fichiers (*)",
|
||||
"filetypes allowed when opening a title block template file - %1 is the .titleblock extension"
|
||||
@@ -799,7 +799,7 @@ bool QETTitleBlockTemplateEditor::save() {
|
||||
*/
|
||||
bool QETTitleBlockTemplateEditor::saveAs() {
|
||||
TitleBlockTemplateLocation location = getTitleBlockTemplateLocationFromUser(
|
||||
tr("Enregistrer le mod\350le sous", "dialog window title"),
|
||||
tr("Enregistrer le modèle sous", "dialog window title"),
|
||||
false
|
||||
);
|
||||
if (location.isValid()) {
|
||||
@@ -821,7 +821,7 @@ bool QETTitleBlockTemplateEditor::saveAsFile() {
|
||||
tr("Enregistrer sous", "dialog title"),
|
||||
initial_dir,
|
||||
tr(
|
||||
"Mod\350les de cartouches QElectroTech (*%1)",
|
||||
"Modèles de cartouches QElectroTech (*%1)",
|
||||
"filetypes allowed when saving a title block template file - %1 is the .titleblock extension"
|
||||
).arg(QString(TITLEBLOCKS_FILE_EXTENSION))
|
||||
);
|
||||
@@ -915,11 +915,11 @@ void QETTitleBlockTemplateEditor::editTemplateInformation() {
|
||||
|
||||
QDialog dialog_author(this);
|
||||
dialog_author.setModal(true);
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
dialog_author.setWindowFlags(Qt::Sheet);
|
||||
#endif
|
||||
dialog_author.setMinimumSize(400, 260);
|
||||
dialog_author.setWindowTitle(tr("\311diter les informations compl\351mentaires", "window title"));
|
||||
dialog_author.setWindowTitle(tr("Éditer les informations complémentaires", "window title"));
|
||||
QVBoxLayout *dialog_layout = new QVBoxLayout(&dialog_author);
|
||||
|
||||
// explanation label
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_QET_TEMPLATE_EDITOR_H
|
||||
#define TITLEBLOCK_SLASH_QET_TEMPLATE_EDITOR_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "qetmainwindow.h"
|
||||
#include "qet.h"
|
||||
#include "templateview.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_TEMPLATE_CELLS_SET_H
|
||||
#define TITLEBLOCK_SLASH_TEMPLATE_CELLS_SET_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
class TitleBlockCell;
|
||||
class TitleBlockTemplateVisualCell;
|
||||
class TitleBlockTemplateView;
|
||||
|
||||
@@ -57,13 +57,13 @@ void TitleBlockTemplateCellWidget::initWidgets() {
|
||||
name_input_ = new QLineEdit();
|
||||
|
||||
// widgets specific to empty cells
|
||||
empty_label_ = new QLabel(tr("Attention : les bordures des cellules vides n'apparaissent pas lors du rendu final sur le sch\351ma."));
|
||||
empty_label_ = new QLabel(tr("Attention : les bordures des cellules vides n'apparaissent pas lors du rendu final sur le schéma."));
|
||||
|
||||
// widgets specific to logo cells
|
||||
logo_label_ = new QLabel(tr("Logo"));
|
||||
logo_input_ = new QComboBox();
|
||||
logo_input_ -> addItem(tr("Aucun logo"));
|
||||
add_logo_input_ = new QPushButton(QET::Icons::InsertImage, tr("G\351rer les logos"));
|
||||
add_logo_input_ = new QPushButton(QET::Icons::InsertImage, tr("Gérer les logos"));
|
||||
|
||||
// widgets specific to text cells
|
||||
label_checkbox_ = new QCheckBox(tr("Afficher un label :"));
|
||||
@@ -78,7 +78,7 @@ void TitleBlockTemplateCellWidget::initWidgets() {
|
||||
horiz_align_label_ = new QLabel(tr("horizontal :"));
|
||||
horiz_align_input_ = new QComboBox();
|
||||
horiz_align_input_ -> addItem(tr("Gauche"), Qt::AlignLeft);
|
||||
horiz_align_input_ -> addItem(tr("Centr\351"), Qt::AlignHCenter);
|
||||
horiz_align_input_ -> addItem(tr("Centré"), Qt::AlignHCenter);
|
||||
horiz_align_input_ -> addItem(tr("Droite"), Qt::AlignRight);
|
||||
horiz_align_indexes_.insert(Qt::AlignLeft, 0);
|
||||
horiz_align_indexes_.insert(Qt::AlignHCenter, 1);
|
||||
@@ -419,7 +419,7 @@ void TitleBlockTemplateCellWidget::emitModification(const QString &attribute, co
|
||||
ModifyTitleBlockCellCommand *command = new ModifyTitleBlockCellCommand(edited_cell_);
|
||||
command -> addModification(attribute, new_value);
|
||||
command -> setText(
|
||||
tr("\311dition d'une cellule : %1", "label of and undo command when editing a cell")
|
||||
tr("Édition d'une cellule : %1", "label of and undo command when editing a cell")
|
||||
.arg(TitleBlockCell::attributeName(attribute))
|
||||
);
|
||||
emit(cellModified(command));
|
||||
@@ -431,7 +431,7 @@ void TitleBlockTemplateCellWidget::emitModification(const QString &attribute, co
|
||||
*/
|
||||
QString TitleBlockTemplateCellWidget::defaultVariablesString() const {
|
||||
QString def_var_string = tr(
|
||||
"Par d\351faut, les variables suivantes sont disponibles :"
|
||||
"Par défaut, les variables suivantes sont disponibles :"
|
||||
"<ul>"
|
||||
"<li>%{author} : auteur du folio</li>"
|
||||
"<li>%{date} : date du folio</li>"
|
||||
@@ -451,14 +451,14 @@ QString TitleBlockTemplateCellWidget::defaultVariablesString() const {
|
||||
QString TitleBlockTemplateCellWidget::labelValueInformationString() const {
|
||||
QString lab_val_inf_string = tr(
|
||||
"Chaque cellule d'un cartouche affiche une valeur, optionnellement "
|
||||
"pr\351c\351d\351e d'un label. Tous deux peuvent \352tre traduits en "
|
||||
"précédée d'un label. Tous deux peuvent être traduits en "
|
||||
"plusieurs langues."
|
||||
"<br/>"
|
||||
"Comme ce que vous \351ditez actuellement est un "
|
||||
"<em>mod\350le</em> de cartouche, ne saisissez pas directement des "
|
||||
"donn\351es brutes : ins\351rez plut\364t des variables sous la forme "
|
||||
"%{nom-de-variable}, qui seront ensuite remplac\351es par les valeurs "
|
||||
"ad\351quates sur le folio."
|
||||
"Comme ce que vous éditez actuellement est un "
|
||||
"<em>modèle</em> de cartouche, ne saisissez pas directement des "
|
||||
"données brutes : insérez plutôt des variables sous la forme "
|
||||
"%{nom-de-variable}, qui seront ensuite remplacées par les valeurs "
|
||||
"adéquates sur le folio."
|
||||
);
|
||||
return(lab_val_inf_string);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_TEMPLATE_CELL_WIDGET_H
|
||||
#define TITLEBLOCK_SLASH_TEMPLATE_CELL_WIDGET_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "qet.h"
|
||||
class ModifyTitleBlockCellCommand;
|
||||
class TitleBlockTemplate;
|
||||
|
||||
@@ -761,7 +761,7 @@ SplitCellsCommand::SplitCellsCommand(const TitleBlockTemplateCellsSet &splitted_
|
||||
setText(
|
||||
QString(
|
||||
QObject::tr(
|
||||
"S\351paration d'une cellule en %1",
|
||||
"Séparation d'une cellule en %1",
|
||||
"label used in the title block template editor undo list; %1 is the number of cells after the split"
|
||||
)
|
||||
).arg(spanned_cells_.count() + 1)
|
||||
@@ -852,7 +852,7 @@ void SplitCellsCommand::redo() {
|
||||
@param parent Parent QUndoCommand
|
||||
*/
|
||||
ChangeTemplateInformationsCommand::ChangeTemplateInformationsCommand(TitleBlockTemplate *tbt, const QString &old_info, const QString &new_info, QUndoCommand *parent) :
|
||||
QUndoCommand(QObject::tr("modification des informations compl\351mentaires", "undo caption"), parent),
|
||||
QUndoCommand(QObject::tr("modification des informations complémentaires", "undo caption"), parent),
|
||||
tbtemplate_(tbt),
|
||||
old_information_(old_info),
|
||||
new_information_(new_info)
|
||||
|
||||
@@ -53,12 +53,12 @@ bool TitleBlockTemplateDeleter::exec() {
|
||||
}
|
||||
|
||||
// require confirmation from the user
|
||||
QMessageBox::StandardButton answer = QET::MessageBox::question(
|
||||
QMessageBox::StandardButton answer = QET::QetMessageBox::question(
|
||||
this,
|
||||
tr("Supprimer le mod\350le de cartouche ?", "message box title"),
|
||||
tr("Supprimer le modèle de cartouche ?", "message box title"),
|
||||
QString(
|
||||
tr(
|
||||
"\312tes-vous s\373r de vouloir supprimer ce mod\350le de cartouche (%1) ?\n",
|
||||
"Êtes-vous s\373r de vouloir supprimer ce modèle de cartouche (%1) ?\n",
|
||||
"message box content"
|
||||
)
|
||||
).arg(name),
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#ifndef TITLEBLOCK_SLASH_TEMPLATE_DELETER_H
|
||||
#define TITLEBLOCK_SLASH_TEMPLATE_DELETER_H
|
||||
#include "templatelocation.h"
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
/**
|
||||
This class is an abstraction layer to delete an existing title block
|
||||
template.
|
||||
|
||||
@@ -94,7 +94,7 @@ void TitleBlockTemplateLocationChooser::init() {
|
||||
|
||||
form_layout_ = new QFormLayout();
|
||||
form_layout_ -> addRow(tr("Collection parente", "used in save as form"), collections_);
|
||||
form_layout_ -> addRow(tr("Mod\350le existant", "used in save as form"), templates_);
|
||||
form_layout_ -> addRow(tr("Modèle existant", "used in save as form"), templates_);
|
||||
setLayout(form_layout_);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_LOCATION_CHOOSER_H
|
||||
#define TITLEBLOCK_SLASH_LOCATION_CHOOSER_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "templatelocation.h"
|
||||
class TitleBlockTemplateCollection;
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ void TitleBlockTemplateLocationSaver::updateTemplates() {
|
||||
if (!current_collection) return;
|
||||
|
||||
TitleBlockTemplateLocationChooser::updateTemplates();
|
||||
templates_ -> insertItem(0, tr("Nouveau mod\350le (entrez son nom)", "combox box entry"), QVariant(false));
|
||||
templates_ -> insertItem(0, tr("Nouveau modèle (entrez son nom)", "combox box entry"), QVariant(false));
|
||||
templates_ -> insertSeparator(1);
|
||||
|
||||
updateNewName();
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_LOCATION_SAVER_H
|
||||
#define TITLEBLOCK_SLASH_LOCATION_SAVER_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "templatelocationchooser.h"
|
||||
class TitleBlockTemplateCollection;
|
||||
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "titleblocktemplate.h"
|
||||
#include "qeticons.h"
|
||||
|
||||
#include <QStandardPaths>
|
||||
|
||||
/**
|
||||
Constructor
|
||||
@param managed_template Title block template this widget manages logos for.
|
||||
@@ -70,12 +72,12 @@ void TitleBlockTemplateLogoManager::emitLogosChangedSignal() {
|
||||
Initialize widgets composing the Logo manager
|
||||
*/
|
||||
void TitleBlockTemplateLogoManager::initWidgets() {
|
||||
open_dialog_dir_ = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation);
|
||||
open_dialog_dir_ = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
||||
|
||||
setWindowTitle(tr("Gestionnaire de logos"));
|
||||
setWindowIcon(QET::Icons::InsertImage);
|
||||
setWindowFlags(Qt::Dialog);
|
||||
logos_label_ = new QLabel(tr("Logos embarqu\351s dans ce mod\350le :"));
|
||||
logos_label_ = new QLabel(tr("Logos embarqués dans ce modèle :"));
|
||||
logos_view_ = new QListWidget();
|
||||
logos_view_ -> setViewMode(QListView::IconMode);
|
||||
logos_view_ -> setGridSize(iconsize() * 1.4);
|
||||
@@ -87,7 +89,7 @@ void TitleBlockTemplateLogoManager::initWidgets() {
|
||||
add_button_ = new QPushButton(QET::Icons::Add, tr("Ajouter un logo"));
|
||||
export_button_ = new QPushButton(QET::Icons::DocumentExport, tr("Exporter ce logo"));
|
||||
delete_button_ = new QPushButton(QET::Icons::Remove, tr("Supprimer ce logo"));
|
||||
logo_box_ = new QGroupBox(tr("Propri\351t\351s"));
|
||||
logo_box_ = new QGroupBox(tr("Propriétés"));
|
||||
logo_name_label_ = new QLabel(tr("Nom :"));
|
||||
logo_name_ = new QLineEdit();
|
||||
rename_button_ = new QPushButton(QET::Icons::EditRename, tr("Renommer"));
|
||||
@@ -185,7 +187,7 @@ QString TitleBlockTemplateLogoManager::confirmLogoName(const QString &initial_na
|
||||
while (managed_template_ -> logos().contains(name)) {
|
||||
if (!rename_dialog) {
|
||||
rename_dialog = new QDialog(this);
|
||||
rename_dialog -> setWindowTitle(tr("Logo d\351j\340 existant"));
|
||||
rename_dialog -> setWindowTitle(tr("Logo déjà existant"));
|
||||
|
||||
rd_label = new QLabel();
|
||||
rd_label -> setWordWrap(true);
|
||||
@@ -212,9 +214,9 @@ QString TitleBlockTemplateLogoManager::confirmLogoName(const QString &initial_na
|
||||
}
|
||||
rd_label -> setText(
|
||||
QString(tr(
|
||||
"Il existe d\351j\340 un logo portant le nom \"%1\" au sein de "
|
||||
"ce mod\350le de cartouche. Voulez-vous le remplacer ou "
|
||||
"pr\351f\351rez-vous sp\351cifier un autre nom pour ce nouveau "
|
||||
"Il existe déjà un logo portant le nom \"%1\" au sein de "
|
||||
"ce modèle de cartouche. Voulez-vous le remplacer ou "
|
||||
"préférez-vous spécifier un autre nom pour ce nouveau "
|
||||
"logo ?"
|
||||
)).arg(name)
|
||||
);
|
||||
@@ -273,7 +275,7 @@ void TitleBlockTemplateLogoManager::addLogo() {
|
||||
// that filepath needs to point to a valid, readable file
|
||||
QFileInfo filepath_info(filepath);
|
||||
if (!filepath_info.exists() || !filepath_info.isReadable()) {
|
||||
QMessageBox::critical(this, tr("Erreur"), tr("Impossible d'ouvrir le fichier sp\351cifi\351"));
|
||||
QMessageBox::critical(this, tr("Erreur"), tr("Impossible d'ouvrir le fichier spécifié"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -305,7 +307,7 @@ void TitleBlockTemplateLogoManager::exportLogo() {
|
||||
|
||||
bool save_logo = managed_template_ -> saveLogoToFile(current_logo, filepath);
|
||||
if (!save_logo) {
|
||||
QMessageBox::critical(this, tr("Erreur"), QString(tr("Impossible d'exporter vers le fichier sp\351cifi\351")));
|
||||
QMessageBox::critical(this, tr("Erreur"), QString(tr("Impossible d'exporter vers le fichier spécifié")));
|
||||
} else {
|
||||
open_dialog_dir_ = QDir(filepath);
|
||||
}
|
||||
@@ -346,7 +348,7 @@ void TitleBlockTemplateLogoManager::renameLogo() {
|
||||
QMessageBox::warning(
|
||||
this,
|
||||
warning_title,
|
||||
tr("Le nouveau nom ne peut pas \352tre vide.")
|
||||
tr("Le nouveau nom ne peut pas être vide.")
|
||||
);
|
||||
return;
|
||||
}
|
||||
@@ -355,7 +357,7 @@ void TitleBlockTemplateLogoManager::renameLogo() {
|
||||
QMessageBox::warning(
|
||||
this,
|
||||
warning_title,
|
||||
tr("Le nom saisi est d\351j\340 utilis\351 par un autre logo.")
|
||||
tr("Le nom saisi est déjà utilisé par un autre logo.")
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_TEMPLATE_LOGO_MANAGER
|
||||
#define TITLEBLOCK_SLASH_TEMPLATE_LOGO_MANAGER
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
class TitleBlockTemplate;
|
||||
|
||||
/**
|
||||
|
||||
@@ -534,13 +534,13 @@ qreal TitleBlockTemplateView::zoomFactor() const {
|
||||
void TitleBlockTemplateView::init() {
|
||||
add_column_before_ = new QAction(QET::Icons::EditTableInsertColumnLeft, tr("Ajouter une colonne (avant)", "context menu"), this);
|
||||
add_row_before_ = new QAction(QET::Icons::EditTableInsertRowAbove, tr("Ajouter une ligne (avant)", "context menu"), this);
|
||||
add_column_after_ = new QAction(QET::Icons::EditTableInsertColumnRight, tr("Ajouter une colonne (apr\350s)", "context menu"), this);
|
||||
add_row_after_ = new QAction(QET::Icons::EditTableInsertRowUnder, tr("Ajouter une ligne (apr\350s)", "context menu"), this);
|
||||
add_column_after_ = new QAction(QET::Icons::EditTableInsertColumnRight, tr("Ajouter une colonne (après)", "context menu"), this);
|
||||
add_row_after_ = new QAction(QET::Icons::EditTableInsertRowUnder, tr("Ajouter une ligne (après)", "context menu"), this);
|
||||
edit_column_dim_ = new QAction( tr("Modifier les dimensions de cette colonne", "context menu"), this);
|
||||
edit_row_dim_ = new QAction( tr("Modifier les dimensions de cette ligne", "context menu"), this);
|
||||
delete_column_ = new QAction(QET::Icons::EditTableDeleteColumn, tr("Supprimer cette colonne", "context menu"), this);
|
||||
delete_row_ = new QAction(QET::Icons::EditTableDeleteRow, tr("Supprimer cette ligne", "context menu"), this);
|
||||
change_preview_width_ = new QAction( tr("Modifier la largeur de cet aper\347u", "context menu"), this);
|
||||
change_preview_width_ = new QAction( tr("Modifier la largeur de cet aperçu", "context menu"), this);
|
||||
|
||||
connect(add_column_before_, SIGNAL(triggered()), this, SLOT(addColumnBefore()));
|
||||
connect(add_row_before_, SIGNAL(triggered()), this, SLOT(addRowBefore()));
|
||||
@@ -781,8 +781,8 @@ void TitleBlockTemplateView::refresh() {
|
||||
*/
|
||||
void TitleBlockTemplateView::changePreviewWidth() {
|
||||
TitleBlockDimensionWidget dialog(false, this);
|
||||
dialog.setWindowTitle(tr("Changer la largeur de l'aper\347u"));
|
||||
dialog.label() -> setText(tr("Largeur de l'aper\347u :"));
|
||||
dialog.setWindowTitle(tr("Changer la largeur de l'aperçu"));
|
||||
dialog.label() -> setText(tr("Largeur de l'aperçu :"));
|
||||
dialog.setValue(TitleBlockDimension(preview_width_));
|
||||
if (dialog.exec() == QDialog::Accepted) {
|
||||
setPreviewWidth(dialog.value().value);
|
||||
@@ -931,14 +931,14 @@ void TitleBlockTemplateView::updateDisplayedMinMaxWidth() {
|
||||
if (max_width != -1) {
|
||||
min_max_width_sentence = QString(
|
||||
tr(
|
||||
"Longueur minimale\240: %1px\nLongueur maximale\240: %2px\n",
|
||||
"Longueur minimale : %1px\nLongueur maximale : %2px\n",
|
||||
"tooltip showing the minimum and/or maximum width of the edited template"
|
||||
)
|
||||
).arg(min_width).arg(max_width);
|
||||
} else {
|
||||
min_max_width_sentence = QString(
|
||||
tr(
|
||||
"Longueur minimale\240: %1px\n",
|
||||
"Longueur minimale : %1px\n",
|
||||
"tooltip showing the minimum width of the edited template"
|
||||
)
|
||||
).arg(min_width);
|
||||
@@ -993,7 +993,7 @@ void TitleBlockTemplateView::updateTotalWidthLabel() {
|
||||
if (!total_width_helper_cell_) return;
|
||||
total_width_helper_cell_ -> label = QString(
|
||||
tr(
|
||||
"Largeur totale pour cet aper\347u : %1px",
|
||||
"Largeur totale pour cet aperçu : %1px",
|
||||
"displayed at the top of the preview when editing a title block template"
|
||||
)
|
||||
).arg(preview_width_);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#ifndef TITLEBLOCK_SLASH_QET_TEMPLATE_VISUAL_CELL_H
|
||||
#define TITLEBLOCK_SLASH_QET_TEMPLATE_VISUAL_CELL_H
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "qet.h"
|
||||
class TitleBlockTemplate;
|
||||
#include "titleblockcell.h"
|
||||
|
||||
Reference in New Issue
Block a user