mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-13 04:19: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:
@@ -68,7 +68,7 @@ void ConductorPropertiesWidget::setProperties(const ConductorProperties &propert
|
||||
m_properties = properties;
|
||||
|
||||
setColorButton(m_properties.color);
|
||||
int index = ui -> m_line_style_cb->findData(m_properties.style);
|
||||
int index = ui -> m_line_style_cb -> findData(QPen(m_properties.style));
|
||||
if (index != -1) ui -> m_line_style_cb -> setCurrentIndex(index);
|
||||
|
||||
ui -> m_text_le -> setText (m_properties.text);
|
||||
@@ -97,8 +97,8 @@ ConductorProperties ConductorPropertiesWidget::properties() const {
|
||||
if (ui -> m_multi_rb -> isChecked()) properties_.type = ConductorProperties::Multi;
|
||||
else if (ui -> m_single_rb -> isChecked()) properties_.type = ConductorProperties::Single;
|
||||
|
||||
properties_.color = ui->m_color_pb->palette().color(QPalette::Button);
|
||||
properties_.style = static_cast<Qt::PenStyle>(ui->m_line_style_cb->itemData(ui->m_line_style_cb->currentIndex()).toInt());
|
||||
properties_.color = ui -> m_color_pb->palette().color(QPalette::Button);
|
||||
properties_.style = ui -> m_line_style_cb->itemData(ui->m_line_style_cb->currentIndex()).value<QPen>().style();
|
||||
properties_.text = ui -> m_text_le -> text();
|
||||
properties_.text_size = ui -> m_text_size_sb -> value();
|
||||
properties_.m_show_text = ui -> m_show_text_cb -> isChecked();
|
||||
@@ -155,9 +155,9 @@ void ConductorPropertiesWidget::initWidget() {
|
||||
m_horiz_select = QETApp::createTextOrientationSpinBoxWidget();
|
||||
ui -> m_text_angle_gl -> addWidget(m_horiz_select, 2, 1, Qt::AlignHCenter);
|
||||
|
||||
ui -> m_line_style_cb -> addItem(tr("Trait plein", "conductor style: solid line"), Qt::SolidLine);
|
||||
ui -> m_line_style_cb -> addItem(tr("Trait en pointill\351s", "conductor style: dashed line"), Qt::DashLine);
|
||||
ui -> m_line_style_cb -> addItem(tr("Traits et points", "conductor style: dashed and dotted line"), Qt::DashDotLine);
|
||||
ui -> m_line_style_cb -> addItem(tr("Trait plein", "conductor style: solid line"), QPen(Qt::SolidLine));
|
||||
ui -> m_line_style_cb -> addItem(tr("Trait en pointillés", "conductor style: dashed line"), QPen(Qt::DashLine));
|
||||
ui -> m_line_style_cb -> addItem(tr("Traits et points", "conductor style: dashed and dotted line"), QPen(Qt::DashDotLine));
|
||||
|
||||
ui -> m_update_preview_pb -> setHidden(true);
|
||||
//Check this checkbox for init the associated groupbox
|
||||
|
||||
@@ -42,11 +42,11 @@ DiagramPropertiesDialog::DiagramPropertiesDialog(Diagram *diagram, QWidget *pare
|
||||
ConductorProperties conductors = diagram -> defaultConductorProperties;
|
||||
|
||||
setWindowModality(Qt::WindowModal);
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
setWindowFlags(Qt::Sheet);
|
||||
#endif
|
||||
|
||||
setWindowTitle(tr("Propri\351t\351s du sch\351ma", "window title"));
|
||||
setWindowTitle(tr("Propriétés du schéma", "window title"));
|
||||
|
||||
//Border widget
|
||||
BorderPropertiesWidget *border_infos = new BorderPropertiesWidget(border, this);
|
||||
|
||||
@@ -57,7 +57,7 @@ void diagramselection::load_TableDiagram() {
|
||||
ui -> tableDiagram -> setEditTriggers (QAbstractItemView::NoEditTriggers);
|
||||
QStringList titles;
|
||||
titles.clear();
|
||||
titles << tr("S\351lection") << tr("Nom");
|
||||
titles << tr("Sélection") << tr("Nom");
|
||||
ui-> tableDiagram -> setHorizontalHeaderLabels( titles );
|
||||
|
||||
// List Diagrams
|
||||
@@ -66,7 +66,7 @@ void diagramselection::load_TableDiagram() {
|
||||
QTableWidgetItem *item_State = new QTableWidgetItem();
|
||||
|
||||
QString diagram_title = list_diagram_.at(i) -> title();
|
||||
if (diagram_title.isEmpty()) diagram_title = tr("Sch\351ma sans titre");
|
||||
if (diagram_title.isEmpty()) diagram_title = tr("Schéma sans titre");
|
||||
|
||||
item_Name -> setData(Qt::DisplayRole, diagram_title);
|
||||
item_State -> setData(Qt::CheckStateRole, Qt::Checked);
|
||||
@@ -99,8 +99,8 @@ QList<Diagram *> diagramselection::list_of_DiagramSelected() {
|
||||
*/
|
||||
void diagramselection::on_tableDiagram_customContextMenuRequested(const QPoint &pos){
|
||||
QMenu menu(this);
|
||||
QAction *desl = menu.addAction( tr("D\351s\351lectionner tout") );
|
||||
menu.addAction(QIcon(":/ico/16x16/dialog-ok.png"), tr("S\351lectionner tout") );
|
||||
QAction *desl = menu.addAction( tr("Désélectionner tout") );
|
||||
menu.addAction(QIcon(":/ico/16x16/dialog-ok.png"), tr("Sélectionner tout") );
|
||||
|
||||
// Exec Menu
|
||||
QAction *ret = menu.exec(ui -> tableDiagram -> viewport() -> mapToGlobal(pos));
|
||||
|
||||
@@ -61,7 +61,7 @@ void DialogAutoNum::on_pushButton_delete_clicked() {
|
||||
if(i+1 < listDiag.count()) diagramsTitle += ", ";
|
||||
}
|
||||
// Ask if user is sure to delete the conductor numerotation
|
||||
QMessageBox::StandardButton answer = QET::MessageBox::critical(
|
||||
QMessageBox::StandardButton answer = QET::QetMessageBox::critical(
|
||||
this,
|
||||
tr("Suppression des annotations conducteurs", "Attention"),
|
||||
QString(
|
||||
@@ -94,7 +94,7 @@ void DialogAutoNum::on_pushButton_annotation_clicked(){
|
||||
if(i+1 < listDiag.count()) diagramsTitle += ", ";
|
||||
}
|
||||
// Ask if user is sure to numerate the conductor
|
||||
QET::MessageBox::warning(
|
||||
QET::QetMessageBox::warning(
|
||||
this,
|
||||
tr("Annotation des conducteurs", "Attention"),
|
||||
QString(
|
||||
|
||||
@@ -46,6 +46,7 @@ DialogWaiting::~DialogWaiting() {
|
||||
*/
|
||||
void DialogWaiting::setProgressBar(int val){
|
||||
ui->progressBar->setValue(val);
|
||||
qApp->processEvents();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -53,25 +53,25 @@ QWidget* elementpropertieswidget::generalWidget() {
|
||||
// type de l'element
|
||||
QString description_string;
|
||||
if (ghost_element) {
|
||||
description_string += tr("\311l\351ment manquant");
|
||||
description_string += tr("Élément manquant");
|
||||
} else {
|
||||
description_string += tr("\311l\351ment");
|
||||
description_string += tr("Élément");
|
||||
}
|
||||
description_string += "\n";
|
||||
|
||||
// some element characteristic
|
||||
description_string += QString(tr("Nom\240: %1\n")).arg(element_ -> name());
|
||||
description_string += QString(tr("Nom : %1\n")).arg(element_ -> name());
|
||||
int folio_index = diagram_ -> folioIndex();
|
||||
if (folio_index != -1) {
|
||||
description_string += QString(tr("Folio\240: %1\n")).arg(folio_index + 1);
|
||||
description_string += QString(tr("Folio : %1\n")).arg(folio_index + 1);
|
||||
}
|
||||
description_string += QString(tr("Position\240: %1\n")).arg(diagram_ -> convertPosition(element_ -> scenePos()).toString());
|
||||
description_string += QString(tr("Dimensions\240: %1\327%2\n")).arg(element_ -> size().width()).arg(element_ -> size().height());
|
||||
description_string += QString(tr("Bornes\240: %1\n")).arg(element_ -> terminals().count());
|
||||
description_string += QString(tr("Champs de texte\240: %1\n")).arg(element_ -> texts().count());
|
||||
description_string += QString(tr("Position : %1\n")).arg(diagram_ -> convertPosition(element_ -> scenePos()).toString());
|
||||
description_string += QString(tr("Dimensions : %1\327%2\n")).arg(element_ -> size().width()).arg(element_ -> size().height());
|
||||
description_string += QString(tr("Bornes : %1\n")).arg(element_ -> terminals().count());
|
||||
description_string += QString(tr("Champs de texte : %1\n")).arg(element_ -> texts().count());
|
||||
|
||||
if (custom_element) {
|
||||
description_string += QString(tr("Emplacement\240: %1\n")).arg(custom_element -> location().toString());
|
||||
description_string += QString(tr("Emplacement : %1\n")).arg(custom_element -> location().toString());
|
||||
}
|
||||
|
||||
// widget himself
|
||||
@@ -91,7 +91,7 @@ QWidget* elementpropertieswidget::generalWidget() {
|
||||
//button widget
|
||||
find_in_panel = new QPushButton(QET::Icons::ZoomDraw, tr("Retrouver dans le panel"), general_widget);
|
||||
connect(find_in_panel, SIGNAL(clicked()), this, SLOT(findInPanel()));
|
||||
edit_element = new QPushButton(QET::Icons::ElementEdit, tr("\311diter l'\351l\351ment"), general_widget);
|
||||
edit_element = new QPushButton(QET::Icons::ElementEdit, tr("Éditer l'élément"), general_widget);
|
||||
connect(edit_element, SIGNAL(clicked()), this, SLOT(editElement()));
|
||||
QHBoxLayout *hlayout_ = new QHBoxLayout;
|
||||
hlayout_->addWidget(find_in_panel);
|
||||
@@ -108,7 +108,7 @@ QWidget* elementpropertieswidget::generalWidget() {
|
||||
*/
|
||||
void elementpropertieswidget::buildInterface() {
|
||||
|
||||
setWindowTitle(tr("Propri\351t\351s de l'\351l\351ment"));
|
||||
setWindowTitle(tr("Propriétés de l'élément"));
|
||||
tab_ = new QTabWidget(this);
|
||||
|
||||
//Add tab according to the element
|
||||
@@ -127,13 +127,13 @@ void elementpropertieswidget::buildInterface() {
|
||||
break;
|
||||
case Element::Master:
|
||||
mpw_ = new MasterPropertiesWidget(element_, this);
|
||||
tab_ -> addTab(mpw_, tr("R\351f\351rence crois\351e (maitre)"));
|
||||
tab_ -> addTab(mpw_, tr("Référence croisée (maitre)"));
|
||||
eiw_ = new ElementInfoWidget(element_, this);
|
||||
tab_ -> addTab(eiw_, tr("Informations"));
|
||||
break;
|
||||
case Element::Slave:
|
||||
lsew_ = new LinkSingleElementWidget(element_, this);
|
||||
tab_ -> addTab(lsew_, tr("R\351f\351rence crois\351e (esclave)"));
|
||||
tab_ -> addTab(lsew_, tr("Référence croisée (esclave)"));
|
||||
break;
|
||||
case Element::Terminale:
|
||||
break;
|
||||
@@ -141,7 +141,7 @@ void elementpropertieswidget::buildInterface() {
|
||||
break;
|
||||
}
|
||||
|
||||
tab_ -> addTab(generalWidget(), tr("G\351n\351ral"));
|
||||
tab_ -> addTab(generalWidget(), tr("Général"));
|
||||
|
||||
dbb = new QDialogButtonBox(QDialogButtonBox::Apply | QDialogButtonBox::Cancel | QDialogButtonBox::Reset,
|
||||
Qt::Horizontal, this);
|
||||
|
||||
@@ -168,7 +168,7 @@ void ElementSelectorWidget::buildInterface() {
|
||||
str_list << c->properties().text;
|
||||
|
||||
if (QET::eachStrIsEqual(str_list)) {
|
||||
button_text = tr("N\260 fil : ") + str_list.first() + "\n";
|
||||
button_text = tr("N° fil : ") + str_list.first() + "\n";
|
||||
//Replace the last empty string by the conductor text
|
||||
in_filter.pop_back();
|
||||
in_filter << str_list.first();
|
||||
@@ -194,7 +194,7 @@ void ElementSelectorWidget::buildInterface() {
|
||||
|
||||
//Push button to highlight element
|
||||
QPushButton *pb = new QPushButton(QET::Icons::ZoomDraw,"", widget);
|
||||
pb -> setToolTip(tr("Voir l'\351l\351ment"));
|
||||
pb -> setToolTip(tr("Voir l'élément"));
|
||||
|
||||
QHBoxLayout *hl = new QHBoxLayout(widget);
|
||||
hl -> setContentsMargins(0,0,0,0);
|
||||
|
||||
@@ -116,8 +116,8 @@ void LinkSingleElementWidget::buildList() {
|
||||
void LinkSingleElementWidget::buildUnlinkButton() {
|
||||
unlink_widget = new QWidget(this);
|
||||
QHBoxLayout *unlink_layout = new QHBoxLayout(unlink_widget);
|
||||
QLabel *lb = new QLabel(tr("Cet \351l\351ment est d\351j\340 li\351."), unlink_widget);
|
||||
QPushButton *pb = new QPushButton(tr("D\351lier"), unlink_widget);
|
||||
QLabel *lb = new QLabel(tr("Cet élément est déjà lié."), unlink_widget);
|
||||
QPushButton *pb = new QPushButton(tr("Délier"), unlink_widget);
|
||||
connect(pb, SIGNAL(clicked()), this, SLOT(unlinkClicked()));
|
||||
unlink_layout->addWidget(lb);
|
||||
unlink_layout->addStretch();
|
||||
|
||||
@@ -137,7 +137,7 @@ void MasterPropertiesWidget::buildInterface() {
|
||||
QString widget_text;
|
||||
QString title = elmt->diagram()->title();
|
||||
if (title.isEmpty()) title = tr("Sans titre");
|
||||
widget_text += QString(tr("Folio\240 %1 (%2), position %3.")).arg(elmt->diagram()->folioIndex() + 1)
|
||||
widget_text += QString(tr("Folio %1 (%2), position %3.")).arg(elmt->diagram()->folioIndex() + 1)
|
||||
.arg(title)
|
||||
.arg(elmt->diagram() -> convertPosition(elmt -> scenePos()).toString());
|
||||
QListWidgetItem *lwi_ = new QListWidgetItem(elmt->pixmap(), widget_text);
|
||||
@@ -151,7 +151,7 @@ void MasterPropertiesWidget::buildInterface() {
|
||||
QString widget_text;
|
||||
QString title = elmt->diagram()->title();
|
||||
if (title.isEmpty()) title = tr("Sans titre");
|
||||
widget_text += QString(tr("Folio\240 %1 (%2), position %3.")).arg(elmt->diagram()->folioIndex() + 1)
|
||||
widget_text += QString(tr("Folio %1 (%2), position %3.")).arg(elmt->diagram()->folioIndex() + 1)
|
||||
.arg(title)
|
||||
.arg(elmt->diagram() -> convertPosition(elmt -> scenePos()).toString());
|
||||
QListWidgetItem *lwi_ = new QListWidgetItem(elmt->pixmap(), widget_text);
|
||||
|
||||
@@ -64,7 +64,7 @@ void PotentialTextsDialog::buildRadioList() {
|
||||
|
||||
//create a new radio button for each text of @conductorList
|
||||
for (QMultiMap<int, QString>::ConstIterator it = m_texts.constEnd()-1; it != m_texts.constBegin()-1; --it) {
|
||||
QRadioButton *rb= new QRadioButton(it.value() + tr(" : est pr\351sent ") + QString::number(it.key()) + tr(" fois."), this);
|
||||
QRadioButton *rb= new QRadioButton(it.value() + tr(" : est présent ") + QString::number(it.key()) + tr(" fois."), this);
|
||||
if (it == m_texts.constEnd()-1) {
|
||||
rb -> setChecked(true);
|
||||
m_selected_text = it.value();
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
*/
|
||||
ProjectPropertiesDialog::ProjectPropertiesDialog(QETProject *project, QWidget *parent) {
|
||||
m_properties_dialog = new ConfigDialog (parent);
|
||||
m_properties_dialog -> setWindowTitle(QObject::tr("Propri\351t\351s du projet", "window title"));
|
||||
m_properties_dialog -> setWindowTitle(QObject::tr("Propriétés du projet", "window title"));
|
||||
m_properties_dialog -> addPage(new ProjectMainConfigPage (project));
|
||||
m_properties_dialog -> addPage(new NewDiagramPage (project));
|
||||
m_properties_dialog -> addPage(new ProjectAutoNumConfigPage (project));
|
||||
|
||||
@@ -133,21 +133,21 @@ void SelectAutonumW::on_buttonBox_clicked(QAbstractButton *button) {
|
||||
break;
|
||||
//help dialog
|
||||
case QDialogButtonBox::HelpRole:
|
||||
QMessageBox::information (this, tr("Autonum\351rotation", "title window"),
|
||||
tr("C'est ici que vous pouvez d\351finir la mani\350re dont sera num\351rot\351 les nouveaux conducteurs.\n"
|
||||
"-Une num\351rotation est compos\351e d'une variable minimum.\n"
|
||||
"-Vous pouvez ajouter ou supprimer une variable de num\351rotation par le biais des boutons - et +.\n"
|
||||
"-Une variable de num\351rotation comprant: un type, une valeur et une incr\351mentation.\n"
|
||||
QMessageBox::information (this, tr("Autonumérotation", "title window"),
|
||||
tr("C'est ici que vous pouvez définir la manière dont sera numéroté les nouveaux conducteurs.\n"
|
||||
"-Une numérotation est composée d'une variable minimum.\n"
|
||||
"-Vous pouvez ajouter ou supprimer une variable de numérotation par le biais des boutons - et +.\n"
|
||||
"-Une variable de numérotation comprant: un type, une valeur et une incrémentation.\n"
|
||||
|
||||
"\n-les types \"Chiffre 1\", \"Chiffre 01\" et \"Chiffre 001\", repr\351sente un type num\351rique d\351finie dans le champs \"Valeur\", "
|
||||
"qui s'incr\351mente \340 chaque nouveau conducteur de la valeur du champ \"Incr\351mentation\".\n"
|
||||
"-\"Chiffre 01\" et \"Chiffre 001\", sont respectivement repr\351sent\351 sur le sch\351ma par deux et trois digits minimum.\n"
|
||||
"Si le chiffre d\351finie dans le champs Valeur poss\351de moins de digits que le type choisit,"
|
||||
"celui-ci sera pr\351c\351d\351 par un ou deux 0 afin de respecter son type.\n"
|
||||
"\n-les types \"Chiffre 1\", \"Chiffre 01\" et \"Chiffre 001\", représente un type numérique définie dans le champs \"Valeur\", "
|
||||
"qui s'incrémente à chaque nouveau conducteur de la valeur du champ \"Incrémentation\".\n"
|
||||
"-\"Chiffre 01\" et \"Chiffre 001\", sont respectivement représenté sur le schéma par deux et trois digits minimum.\n"
|
||||
"Si le chiffre définie dans le champs Valeur posséde moins de digits que le type choisit,"
|
||||
"celui-ci sera précédé par un ou deux 0 afin de respecter son type.\n"
|
||||
|
||||
"\n-Le type \"Texte\", repr\351sente un texte fixe.\nLe champs \"Incr\351mentation\" n'est pas utilis\351.\n"
|
||||
"\n-Le type \"Texte\", représente un texte fixe.\nLe champs \"Incrémentation\" n'est pas utilisé.\n"
|
||||
|
||||
"\n-Le type \"N\260 folio\" repr\351sente le n\260 du folio en cours.\nLes autres champs ne sont pas utilis\351s.",
|
||||
"\n-Le type \"N° folio\" représente le n° du folio en cours.\nLes autres champs ne sont pas utilisés.",
|
||||
"help dialog about the autonumerotation"));
|
||||
|
||||
//apply the context in the diagram displayed by @diagram_chooser.
|
||||
|
||||
@@ -214,7 +214,7 @@ void TitleBlockPropertiesWidget::setTitleBlockTemplatesCollection(TitleBlockTemp
|
||||
*/
|
||||
void TitleBlockPropertiesWidget::setTitleBlockTemplatesList(const QStringList &tbt) {
|
||||
ui -> m_tbt_cb ->clear();
|
||||
ui -> m_tbt_cb -> addItem(QET::Icons::TitleBlock, tr("Mod\350le par d\351faut"));
|
||||
ui -> m_tbt_cb -> addItem(QET::Icons::TitleBlock, tr("Modèle par défaut"));
|
||||
foreach (QString tbt_name, tbt) {
|
||||
ui -> m_tbt_cb -> addItem(QET::Icons::TitleBlock, tbt_name, tbt_name);
|
||||
}
|
||||
@@ -232,8 +232,8 @@ void TitleBlockPropertiesWidget::initDialog(const bool ¤t_date) {
|
||||
setTitleBlockTemplatesVisible(false);
|
||||
ui -> m_current_date_rb -> setVisible(current_date);
|
||||
|
||||
m_tbt_edit = new QAction(tr("\311diter ce mod\350le", "menu entry"), this);
|
||||
m_tbt_duplicate = new QAction(tr("Dupliquer et editer ce mod\350le", "menu entry"), this);
|
||||
m_tbt_edit = new QAction(tr("Éditer ce modèle", "menu entry"), this);
|
||||
m_tbt_duplicate = new QAction(tr("Dupliquer et editer ce modèle", "menu entry"), this);
|
||||
|
||||
connect(m_tbt_edit, SIGNAL(triggered()), this, SLOT(editCurrentTitleBlockTemplate()));
|
||||
connect(m_tbt_duplicate, SIGNAL(triggered()), this, SLOT(duplicateCurrentTitleBlockTemplate()));
|
||||
|
||||
@@ -91,7 +91,7 @@ void XRefPropertiesWidget::buildUi() {
|
||||
ui -> m_type_cb -> addItem(tr("Bobine"), "coil");
|
||||
ui -> m_type_cb -> addItem(tr("Organe de protection"), "protection");
|
||||
ui -> m_snap_to_cb -> addItem(tr("En bas de page"), "bottom");
|
||||
ui -> m_snap_to_cb -> addItem(tr("Sous le label de l'\351l\351ment"), "label");
|
||||
ui -> m_snap_to_cb -> addItem(tr("Sous le label de l'élément"), "label");
|
||||
m_previous_type_index = ui -> m_type_cb -> currentIndex();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user