mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Correction of some french and english notions and correction of typos. Variable %machine changed in %plant.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5629 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -124,8 +124,8 @@ void NumerotationContextCommands::setNumStrategy(const QString &str) {
|
||||
strategy_ = new FolioNum (diagram_);
|
||||
return;
|
||||
}
|
||||
else if (str=="machine"){
|
||||
strategy_ = new MachineNum (diagram_);
|
||||
else if (str=="plant"){
|
||||
strategy_ = new PlantNum (diagram_);
|
||||
return;
|
||||
}
|
||||
else if (str=="locmach"){
|
||||
@@ -499,32 +499,32 @@ NumerotationContext FolioNum::previous(const NumerotationContext &nc, const int
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
MachineNum::MachineNum (Diagram *d):
|
||||
PlantNum::PlantNum (Diagram *d):
|
||||
NumStrategy (d)
|
||||
{}
|
||||
|
||||
/**
|
||||
* @brief MachineNum::toRepresentedString
|
||||
* @brief PlantNum::toRepresentedString
|
||||
* @return the represented string of folio
|
||||
*/
|
||||
QString MachineNum::toRepresentedString(const QString str) const {
|
||||
QString PlantNum::toRepresentedString(const QString str) const {
|
||||
Q_UNUSED(str);
|
||||
return "%M";
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief MachineNum::next
|
||||
* @brief PlantNum::next
|
||||
* @return the next NumerotationContext nc at position i
|
||||
*/
|
||||
NumerotationContext MachineNum::next (const NumerotationContext &nc, const int i) const {
|
||||
NumerotationContext PlantNum::next (const NumerotationContext &nc, const int i) const {
|
||||
return (nextString(nc, i));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief MachineNum::previous
|
||||
* @brief PlantNum::previous
|
||||
* @return the previous NumerotationContext nc at posiiton i
|
||||
*/
|
||||
NumerotationContext MachineNum::previous(const NumerotationContext &nc, const int i) const {
|
||||
NumerotationContext PlantNum::previous(const NumerotationContext &nc, const int i) const {
|
||||
return (nextString(nc, i));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user