mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Translate comment
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2736 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Constructeur
|
Constructeur
|
||||||
@param parent Le QWidget parent de la boite de dialogue
|
@param parent The parent of the dialog QWidget
|
||||||
*/
|
*/
|
||||||
AboutQET::AboutQET(QWidget *parent) : QDialog(parent) {
|
AboutQET::AboutQET(QWidget *parent) : QDialog(parent) {
|
||||||
// Titre, taille, comportement...
|
// Titre, taille, comportement...
|
||||||
@@ -60,7 +60,7 @@ AboutQET::~AboutQET() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return Le titre QElectroTech avec son icone
|
@return The title QElectroTech with its icon
|
||||||
*/
|
*/
|
||||||
QWidget *AboutQET::title() const {
|
QWidget *AboutQET::title() const {
|
||||||
QWidget *icon_and_title = new QWidget();
|
QWidget *icon_and_title = new QWidget();
|
||||||
@@ -87,7 +87,7 @@ QWidget *AboutQET::title() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return Le widget contenu par l'onglet "A propos"
|
@return The widget content tab "About"
|
||||||
*/
|
*/
|
||||||
QWidget *AboutQET::aboutTab() const {
|
QWidget *AboutQET::aboutTab() const {
|
||||||
QLabel *about = new QLabel(
|
QLabel *about = new QLabel(
|
||||||
@@ -106,7 +106,7 @@ QWidget *AboutQET::aboutTab() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return Le widget contenu par l'onglet "Auteurs"
|
@return The widget content by "Authors" tab
|
||||||
*/
|
*/
|
||||||
QWidget *AboutQET::authorsTab() const {
|
QWidget *AboutQET::authorsTab() const {
|
||||||
QLabel *authors = new QLabel();
|
QLabel *authors = new QLabel();
|
||||||
@@ -122,7 +122,7 @@ QWidget *AboutQET::authorsTab() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return Le widget contenu par l'onglet "Traducteurs"
|
@return The widget content via the "Translators" tab
|
||||||
*/
|
*/
|
||||||
QWidget *AboutQET::translatorsTab() const {
|
QWidget *AboutQET::translatorsTab() const {
|
||||||
QLabel *translators = new QLabel();
|
QLabel *translators = new QLabel();
|
||||||
@@ -158,7 +158,7 @@ QWidget *AboutQET::translatorsTab() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return Le widget contenu par l'onglet "Contributeurs"
|
@return The widget content via the "Contributors" tab
|
||||||
*/
|
*/
|
||||||
QWidget *AboutQET::contributorsTab() const {
|
QWidget *AboutQET::contributorsTab() const {
|
||||||
QLabel *contributors = new QLabel();
|
QLabel *contributors = new QLabel();
|
||||||
@@ -184,7 +184,7 @@ QWidget *AboutQET::contributorsTab() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return Le widget contenu par l'onglet "Accord de Licence"
|
@return The widget content via the "License Agreement" tab
|
||||||
*/
|
*/
|
||||||
QWidget *AboutQET::licenseTab() const {
|
QWidget *AboutQET::licenseTab() const {
|
||||||
QWidget *license = new QWidget();
|
QWidget *license = new QWidget();
|
||||||
@@ -205,11 +205,11 @@ QWidget *AboutQET::licenseTab() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Ajoute une personne a la liste des auteurs
|
Adds a person to the list of authors
|
||||||
@param label QLabel auquel sera ajoute la personne
|
@param label QLabel which will add the person
|
||||||
@param name Nom de la personne
|
@param name Name of person
|
||||||
@param email Adresse e-mail de la personne
|
@param email E-mail address of the person
|
||||||
@param work Fonction / travail effectue par la personne
|
@param work Function / work done by the person
|
||||||
*/
|
*/
|
||||||
void AboutQET::addAuthor(QLabel *label, const QString &name, const QString &email, const QString &work) const {
|
void AboutQET::addAuthor(QLabel *label, const QString &name, const QString &email, const QString &work) const {
|
||||||
QString new_text = label -> text();
|
QString new_text = label -> text();
|
||||||
|
|||||||
@@ -38,105 +38,105 @@ BasicMoveElementsHandler::~BasicMoveElementsHandler() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@param action Action a renvoyer si un item existe deja
|
@param action Action return if an item already exists
|
||||||
*/
|
*/
|
||||||
void BasicMoveElementsHandler::setActionIfItemAlreadyExists(QET::Action action) {
|
void BasicMoveElementsHandler::setActionIfItemAlreadyExists(QET::Action action) {
|
||||||
already_exists_ = action;
|
already_exists_ = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@param action Action a renvoyer si un item n'est pas lisible
|
@param action Action return if an item is not readable
|
||||||
*/
|
*/
|
||||||
void BasicMoveElementsHandler::setActionIfItemIsNotReadable(QET::Action action) {
|
void BasicMoveElementsHandler::setActionIfItemIsNotReadable(QET::Action action) {
|
||||||
not_readable_ = action;
|
not_readable_ = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@param action Action a renvoyer si un item n'est pas accessible en ecriture
|
@param action Action return if an item is not writable
|
||||||
*/
|
*/
|
||||||
void BasicMoveElementsHandler::setActionIfItemIsNotWritable(QET::Action action) {
|
void BasicMoveElementsHandler::setActionIfItemIsNotWritable(QET::Action action) {
|
||||||
not_writable_ = action;
|
not_writable_ = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@param action Action a renvoyer si un item provoque une erreur
|
@param action Action if a return item causes an error
|
||||||
*/
|
*/
|
||||||
void BasicMoveElementsHandler::setActionIfItemTriggersAnError(QET::Action action) {
|
void BasicMoveElementsHandler::setActionIfItemTriggersAnError(QET::Action action) {
|
||||||
error_ = action;
|
error_ = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@param name Nom a renvoyer pour une eventuelle operation de renommage
|
@param name Name refer to a possible renaming operation
|
||||||
Il est toutefois deconseille de proceder a un renommage systematique, vu que
|
However, it is not recommended to proceed to a systematic renaming, as
|
||||||
cette propriete est invariable.
|
this property is invariable.
|
||||||
*/
|
*/
|
||||||
void BasicMoveElementsHandler::setNameForRenamingOperation(const QString &name) {
|
void BasicMoveElementsHandler::setNameForRenamingOperation(const QString &name) {
|
||||||
rename_ = name;
|
rename_ = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer si la categorie cible existe deja
|
@return the action to be performed if the target category already exists
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::categoryAlreadyExists(ElementsCategory *, ElementsCategory *) {
|
QET::Action BasicMoveElementsHandler::categoryAlreadyExists(ElementsCategory *, ElementsCategory *) {
|
||||||
return(already_exists_);
|
return(already_exists_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer si l'element cible existe deja
|
@return the action performed if the target element already exists
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::elementAlreadyExists(ElementDefinition *, ElementDefinition *) {
|
QET::Action BasicMoveElementsHandler::elementAlreadyExists(ElementDefinition *, ElementDefinition *) {
|
||||||
return(already_exists_);
|
return(already_exists_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer si la categorie existe deja
|
@return the action to take if the category already exists
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::categoryIsNotReadable(ElementsCategory *) {
|
QET::Action BasicMoveElementsHandler::categoryIsNotReadable(ElementsCategory *) {
|
||||||
return(not_readable_);
|
return(not_readable_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer si l'element existe deja
|
@return the action to take if the element already exists
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::elementIsNotReadable(ElementDefinition *) {
|
QET::Action BasicMoveElementsHandler::elementIsNotReadable(ElementDefinition *) {
|
||||||
return(not_readable_);
|
return(not_readable_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer si la categorie cible n'est pas accessible
|
@return the action to be performed if the target category is not accessible
|
||||||
en ecriture
|
in writing
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::categoryIsNotWritable(ElementsCategory *) {
|
QET::Action BasicMoveElementsHandler::categoryIsNotWritable(ElementsCategory *) {
|
||||||
return(not_writable_);
|
return(not_writable_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer si l'element cible n'est pas accessible
|
@return the action performed if the target element is not accessible
|
||||||
en ecriture
|
in writing
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::elementIsNotWritable(ElementDefinition *) {
|
QET::Action BasicMoveElementsHandler::elementIsNotWritable(ElementDefinition *) {
|
||||||
return(not_writable_);
|
return(not_writable_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer lorsque l'erreur decrite dans la QString
|
@return the action to be performed when the error described in the QString
|
||||||
s'est produite avec la categorie indiquee
|
occurred with dieters category
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::errorWithACategory(ElementsCategory *, const QString &) {
|
QET::Action BasicMoveElementsHandler::errorWithACategory(ElementsCategory *, const QString &) {
|
||||||
return(error_);
|
return(error_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return l'action a effectuer lorsque l'erreur decrite dans la QString
|
@return the action to be performed when the error described in the QString
|
||||||
s'est produite avec l'element indique
|
occurred with the element indicates
|
||||||
*/
|
*/
|
||||||
QET::Action BasicMoveElementsHandler::errorWithAnElement(ElementDefinition *, const QString &) {
|
QET::Action BasicMoveElementsHandler::errorWithAnElement(ElementDefinition *, const QString &) {
|
||||||
return(error_);
|
return(error_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@return le nom a utiliser pour le renommage si une methode de cet objet
|
@return the name to use for renaming if a method of this object
|
||||||
a precedemment renvoye QET::Rename.
|
has previously sent back QET::Rename.
|
||||||
*/
|
*/
|
||||||
QString BasicMoveElementsHandler::nameForRenamingOperation() {
|
QString BasicMoveElementsHandler::nameForRenamingOperation() {
|
||||||
return(rename_);
|
return(rename_);
|
||||||
|
|||||||
Reference in New Issue
Block a user